All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.stepfunctions.model.ExecutionListItem Maven / Gradle / Ivy

/*
 * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.stepfunctions.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains details about an execution. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ExecutionListItem implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) that id entifies the execution. *

*/ private String executionArn; /** *

* The Amazon Resource Name (ARN) of the executed state machine. *

*/ private String stateMachineArn; /** *

* The name of the execution. *

*

* A name must not contain: *

*
    *
  • *

    * white space *

    *
  • *
  • *

    * brackets < > { } [ ] *

    *
  • *
  • *

    * wildcard characters ? * *

    *
  • *
  • *

    * special characters " # % \ ^ | ~ ` $ & , ; : / *

    *
  • *
  • *

    * control characters (U+0000-001F, U+007F-009F) *

    *
  • *
*

* To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. *

*/ private String name; /** *

* The current status of the execution. *

*/ private String status; /** *

* The date the execution started. *

*/ private java.util.Date startDate; /** *

* If the execution already ended, the date the execution stopped. *

*/ private java.util.Date stopDate; /** *

* The Amazon Resource Name (ARN) that id entifies the execution. *

* * @param executionArn * The Amazon Resource Name (ARN) that id entifies the execution. */ public void setExecutionArn(String executionArn) { this.executionArn = executionArn; } /** *

* The Amazon Resource Name (ARN) that id entifies the execution. *

* * @return The Amazon Resource Name (ARN) that id entifies the execution. */ public String getExecutionArn() { return this.executionArn; } /** *

* The Amazon Resource Name (ARN) that id entifies the execution. *

* * @param executionArn * The Amazon Resource Name (ARN) that id entifies the execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionListItem withExecutionArn(String executionArn) { setExecutionArn(executionArn); return this; } /** *

* The Amazon Resource Name (ARN) of the executed state machine. *

* * @param stateMachineArn * The Amazon Resource Name (ARN) of the executed state machine. */ public void setStateMachineArn(String stateMachineArn) { this.stateMachineArn = stateMachineArn; } /** *

* The Amazon Resource Name (ARN) of the executed state machine. *

* * @return The Amazon Resource Name (ARN) of the executed state machine. */ public String getStateMachineArn() { return this.stateMachineArn; } /** *

* The Amazon Resource Name (ARN) of the executed state machine. *

* * @param stateMachineArn * The Amazon Resource Name (ARN) of the executed state machine. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionListItem withStateMachineArn(String stateMachineArn) { setStateMachineArn(stateMachineArn); return this; } /** *

* The name of the execution. *

*

* A name must not contain: *

*
    *
  • *

    * white space *

    *
  • *
  • *

    * brackets < > { } [ ] *

    *
  • *
  • *

    * wildcard characters ? * *

    *
  • *
  • *

    * special characters " # % \ ^ | ~ ` $ & , ; : / *

    *
  • *
  • *

    * control characters (U+0000-001F, U+007F-009F) *

    *
  • *
*

* To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. *

* * @param name * The name of the execution.

*

* A name must not contain: *

*
    *
  • *

    * white space *

    *
  • *
  • *

    * brackets < > { } [ ] *

    *
  • *
  • *

    * wildcard characters ? * *

    *
  • *
  • *

    * special characters " # % \ ^ | ~ ` $ & , ; : / *

    *
  • *
  • *

    * control characters (U+0000-001F, U+007F-009F) *

    *
  • *
*

* To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. */ public void setName(String name) { this.name = name; } /** *

* The name of the execution. *

*

* A name must not contain: *

*
    *
  • *

    * white space *

    *
  • *
  • *

    * brackets < > { } [ ] *

    *
  • *
  • *

    * wildcard characters ? * *

    *
  • *
  • *

    * special characters " # % \ ^ | ~ ` $ & , ; : / *

    *
  • *
  • *

    * control characters (U+0000-001F, U+007F-009F) *

    *
  • *
*

* To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. *

* * @return The name of the execution.

*

* A name must not contain: *

*
    *
  • *

    * white space *

    *
  • *
  • *

    * brackets < > { } [ ] *

    *
  • *
  • *

    * wildcard characters ? * *

    *
  • *
  • *

    * special characters " # % \ ^ | ~ ` $ & , ; : / *

    *
  • *
  • *

    * control characters (U+0000-001F, U+007F-009F) *

    *
  • *
*

* To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. */ public String getName() { return this.name; } /** *

* The name of the execution. *

*

* A name must not contain: *

*
    *
  • *

    * white space *

    *
  • *
  • *

    * brackets < > { } [ ] *

    *
  • *
  • *

    * wildcard characters ? * *

    *
  • *
  • *

    * special characters " # % \ ^ | ~ ` $ & , ; : / *

    *
  • *
  • *

    * control characters (U+0000-001F, U+007F-009F) *

    *
  • *
*

* To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. *

* * @param name * The name of the execution.

*

* A name must not contain: *

*
    *
  • *

    * white space *

    *
  • *
  • *

    * brackets < > { } [ ] *

    *
  • *
  • *

    * wildcard characters ? * *

    *
  • *
  • *

    * special characters " # % \ ^ | ~ ` $ & , ; : / *

    *
  • *
  • *

    * control characters (U+0000-001F, U+007F-009F) *

    *
  • *
*

* To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionListItem withName(String name) { setName(name); return this; } /** *

* The current status of the execution. *

* * @param status * The current status of the execution. * @see ExecutionStatus */ public void setStatus(String status) { this.status = status; } /** *

* The current status of the execution. *

* * @return The current status of the execution. * @see ExecutionStatus */ public String getStatus() { return this.status; } /** *

* The current status of the execution. *

* * @param status * The current status of the execution. * @return Returns a reference to this object so that method calls can be chained together. * @see ExecutionStatus */ public ExecutionListItem withStatus(String status) { setStatus(status); return this; } /** *

* The current status of the execution. *

* * @param status * The current status of the execution. * @see ExecutionStatus */ public void setStatus(ExecutionStatus status) { withStatus(status); } /** *

* The current status of the execution. *

* * @param status * The current status of the execution. * @return Returns a reference to this object so that method calls can be chained together. * @see ExecutionStatus */ public ExecutionListItem withStatus(ExecutionStatus status) { this.status = status.toString(); return this; } /** *

* The date the execution started. *

* * @param startDate * The date the execution started. */ public void setStartDate(java.util.Date startDate) { this.startDate = startDate; } /** *

* The date the execution started. *

* * @return The date the execution started. */ public java.util.Date getStartDate() { return this.startDate; } /** *

* The date the execution started. *

* * @param startDate * The date the execution started. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionListItem withStartDate(java.util.Date startDate) { setStartDate(startDate); return this; } /** *

* If the execution already ended, the date the execution stopped. *

* * @param stopDate * If the execution already ended, the date the execution stopped. */ public void setStopDate(java.util.Date stopDate) { this.stopDate = stopDate; } /** *

* If the execution already ended, the date the execution stopped. *

* * @return If the execution already ended, the date the execution stopped. */ public java.util.Date getStopDate() { return this.stopDate; } /** *

* If the execution already ended, the date the execution stopped. *

* * @param stopDate * If the execution already ended, the date the execution stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionListItem withStopDate(java.util.Date stopDate) { setStopDate(stopDate); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getExecutionArn() != null) sb.append("ExecutionArn: ").append(getExecutionArn()).append(","); if (getStateMachineArn() != null) sb.append("StateMachineArn: ").append(getStateMachineArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStartDate() != null) sb.append("StartDate: ").append(getStartDate()).append(","); if (getStopDate() != null) sb.append("StopDate: ").append(getStopDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExecutionListItem == false) return false; ExecutionListItem other = (ExecutionListItem) obj; if (other.getExecutionArn() == null ^ this.getExecutionArn() == null) return false; if (other.getExecutionArn() != null && other.getExecutionArn().equals(this.getExecutionArn()) == false) return false; if (other.getStateMachineArn() == null ^ this.getStateMachineArn() == null) return false; if (other.getStateMachineArn() != null && other.getStateMachineArn().equals(this.getStateMachineArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStartDate() == null ^ this.getStartDate() == null) return false; if (other.getStartDate() != null && other.getStartDate().equals(this.getStartDate()) == false) return false; if (other.getStopDate() == null ^ this.getStopDate() == null) return false; if (other.getStopDate() != null && other.getStopDate().equals(this.getStopDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExecutionArn() == null) ? 0 : getExecutionArn().hashCode()); hashCode = prime * hashCode + ((getStateMachineArn() == null) ? 0 : getStateMachineArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStartDate() == null) ? 0 : getStartDate().hashCode()); hashCode = prime * hashCode + ((getStopDate() == null) ? 0 : getStopDate().hashCode()); return hashCode; } @Override public ExecutionListItem clone() { try { return (ExecutionListItem) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.stepfunctions.model.transform.ExecutionListItemMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy