
com.amazonaws.services.stepfunctions.model.DescribeExecutionResult 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeExecutionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) that id entifies the execution.
*
*/
private String executionArn;
/**
*
* The Amazon Resource Name (ARN) of the executed stated 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 is started.
*
*/
private java.util.Date startDate;
/**
*
* If the execution has already ended, the date the execution stopped.
*
*/
private java.util.Date stopDate;
/**
*
* The string that contains the JSON input data of the execution.
*
*/
private String input;
/**
*
* The JSON output data of the execution.
*
*
*
* This field is set only if the execution succeeds. If the execution fails, this field is null.
*
*
*/
private String output;
/**
*
* 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 DescribeExecutionResult withExecutionArn(String executionArn) {
setExecutionArn(executionArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the executed stated machine.
*
*
* @param stateMachineArn
* The Amazon Resource Name (ARN) of the executed stated machine.
*/
public void setStateMachineArn(String stateMachineArn) {
this.stateMachineArn = stateMachineArn;
}
/**
*
* The Amazon Resource Name (ARN) of the executed stated machine.
*
*
* @return The Amazon Resource Name (ARN) of the executed stated machine.
*/
public String getStateMachineArn() {
return this.stateMachineArn;
}
/**
*
* The Amazon Resource Name (ARN) of the executed stated machine.
*
*
* @param stateMachineArn
* The Amazon Resource Name (ARN) of the executed stated machine.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExecutionResult 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 DescribeExecutionResult 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 DescribeExecutionResult 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 DescribeExecutionResult withStatus(ExecutionStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The date the execution is started.
*
*
* @param startDate
* The date the execution is started.
*/
public void setStartDate(java.util.Date startDate) {
this.startDate = startDate;
}
/**
*
* The date the execution is started.
*
*
* @return The date the execution is started.
*/
public java.util.Date getStartDate() {
return this.startDate;
}
/**
*
* The date the execution is started.
*
*
* @param startDate
* The date the execution is started.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExecutionResult withStartDate(java.util.Date startDate) {
setStartDate(startDate);
return this;
}
/**
*
* If the execution has already ended, the date the execution stopped.
*
*
* @param stopDate
* If the execution has already ended, the date the execution stopped.
*/
public void setStopDate(java.util.Date stopDate) {
this.stopDate = stopDate;
}
/**
*
* If the execution has already ended, the date the execution stopped.
*
*
* @return If the execution has already ended, the date the execution stopped.
*/
public java.util.Date getStopDate() {
return this.stopDate;
}
/**
*
* If the execution has already ended, the date the execution stopped.
*
*
* @param stopDate
* If the execution has already ended, the date the execution stopped.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExecutionResult withStopDate(java.util.Date stopDate) {
setStopDate(stopDate);
return this;
}
/**
*
* The string that contains the JSON input data of the execution.
*
*
* @param input
* The string that contains the JSON input data of the execution.
*/
public void setInput(String input) {
this.input = input;
}
/**
*
* The string that contains the JSON input data of the execution.
*
*
* @return The string that contains the JSON input data of the execution.
*/
public String getInput() {
return this.input;
}
/**
*
* The string that contains the JSON input data of the execution.
*
*
* @param input
* The string that contains the JSON input data of the execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExecutionResult withInput(String input) {
setInput(input);
return this;
}
/**
*
* The JSON output data of the execution.
*
*
*
* This field is set only if the execution succeeds. If the execution fails, this field is null.
*
*
*
* @param output
* The JSON output data of the execution.
*
* This field is set only if the execution succeeds. If the execution fails, this field is null.
*
*/
public void setOutput(String output) {
this.output = output;
}
/**
*
* The JSON output data of the execution.
*
*
*
* This field is set only if the execution succeeds. If the execution fails, this field is null.
*
*
*
* @return The JSON output data of the execution.
*
* This field is set only if the execution succeeds. If the execution fails, this field is null.
*
*/
public String getOutput() {
return this.output;
}
/**
*
* The JSON output data of the execution.
*
*
*
* This field is set only if the execution succeeds. If the execution fails, this field is null.
*
*
*
* @param output
* The JSON output data of the execution.
*
* This field is set only if the execution succeeds. If the execution fails, this field is null.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeExecutionResult withOutput(String output) {
setOutput(output);
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()).append(",");
if (getInput() != null)
sb.append("Input: ").append("***Sensitive Data Redacted***").append(",");
if (getOutput() != null)
sb.append("Output: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeExecutionResult == false)
return false;
DescribeExecutionResult other = (DescribeExecutionResult) 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;
if (other.getInput() == null ^ this.getInput() == null)
return false;
if (other.getInput() != null && other.getInput().equals(this.getInput()) == false)
return false;
if (other.getOutput() == null ^ this.getOutput() == null)
return false;
if (other.getOutput() != null && other.getOutput().equals(this.getOutput()) == 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());
hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode());
hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode());
return hashCode;
}
@Override
public DescribeExecutionResult clone() {
try {
return (DescribeExecutionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}