/*
* Copyright 2018-2023 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 DescribeStateMachineForExecutionResult extends com.amazonaws.AmazonWebServiceResult
* The Amazon Resource Name (ARN) of the state machine associated with the execution.
*
* The name of the state machine associated with the execution.
*
* The Amazon States Language definition of the state machine. See Amazon States
* Language.
*
* The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.
*
* The date and time the state machine associated with an execution was updated. For a newly created state machine,
* this is the creation date.
*
* Selects whether X-Ray tracing is enabled.
*
* The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned
* only if the
* A user-defined or an auto-generated string that identifies a
* The revision identifier for the state machine. The first revision ID when you create the state machine is null.
*
* Use the state machine
* The Amazon Resource Name (ARN) of the state machine associated with the execution.
*
* The Amazon Resource Name (ARN) of the state machine associated with the execution.
*
* The Amazon Resource Name (ARN) of the state machine associated with the execution.
*
* The name of the state machine associated with the execution.
*
* The name of the state machine associated with the execution.
*
* The name of the state machine associated with the execution.
*
* The Amazon States Language definition of the state machine. See Amazon States
* Language.
*
* The Amazon States Language definition of the state machine. See Amazon States
* Language.
*
* The Amazon States Language definition of the state machine. See Amazon States
* Language.
*
* The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.
*
* The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.
*
* The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution.
*
* The date and time the state machine associated with an execution was updated. For a newly created state machine,
* this is the creation date.
*
* The date and time the state machine associated with an execution was updated. For a newly created state machine,
* this is the creation date.
*
* The date and time the state machine associated with an execution was updated. For a newly created state machine,
* this is the creation date.
*
* Selects whether X-Ray tracing is enabled.
*
* Selects whether X-Ray tracing is enabled.
*
* Selects whether X-Ray tracing is enabled.
*
* The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned
* only if the
* The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned
* only if the
* The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned
* only if the
* A user-defined or an auto-generated string that identifies a
* A user-defined or an auto-generated string that identifies a
* A user-defined or an auto-generated string that identifies a
* The revision identifier for the state machine. The first revision ID when you create the state machine is null.
*
* Use the state machine executionArn
is a child workflow execution that was started by a Distributed Map state.
* Map
state. This field is returned only
* if the executionArn
is a child workflow execution that was started by a Distributed Map state.
* revisionId
parameter to compare the revision of a state machine with the
* configuration of the state machine used for executions without performing a diff of the properties, such as
* definition
and roleArn
.
* executionArn
is a child workflow execution that was started by a Distributed Map state.
* executionArn
is a child workflow execution that was started by a
* Distributed Map state.
*/
public void setMapRunArn(String mapRunArn) {
this.mapRunArn = mapRunArn;
}
/**
* executionArn
is a child workflow execution that was started by a Distributed Map state.
* executionArn
is a child workflow execution that was started by a
* Distributed Map state.
*/
public String getMapRunArn() {
return this.mapRunArn;
}
/**
* executionArn
is a child workflow execution that was started by a Distributed Map state.
* executionArn
is a child workflow execution that was started by a
* Distributed Map state.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStateMachineForExecutionResult withMapRunArn(String mapRunArn) {
setMapRunArn(mapRunArn);
return this;
}
/**
* Map
state. This field is returned only
* if the executionArn
is a child workflow execution that was started by a Distributed Map state.
* Map
state. This field is returned
* only if the executionArn
is a child workflow execution that was started by a Distributed Map
* state.
*/
public void setLabel(String label) {
this.label = label;
}
/**
* Map
state. This field is returned only
* if the executionArn
is a child workflow execution that was started by a Distributed Map state.
* Map
state. This field is
* returned only if the executionArn
is a child workflow execution that was started by a
* Distributed Map state.
*/
public String getLabel() {
return this.label;
}
/**
* Map
state. This field is returned only
* if the executionArn
is a child workflow execution that was started by a Distributed Map state.
* Map
state. This field is returned
* only if the executionArn
is a child workflow execution that was started by a Distributed Map
* state.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStateMachineForExecutionResult withLabel(String label) {
setLabel(label);
return this;
}
/**
* revisionId
parameter to compare the revision of a state machine with the
* configuration of the state machine used for executions without performing a diff of the properties, such as
* definition
and roleArn
.
*
* Use the state machine revisionId
parameter to compare the revision of a state machine with
* the configuration of the state machine used for executions without performing a diff of the properties,
* such as definition
and roleArn
.
*/
public void setRevisionId(String revisionId) {
this.revisionId = revisionId;
}
/**
*
* The revision identifier for the state machine. The first revision ID when you create the state machine is null. *
*
* Use the state machine revisionId
parameter to compare the revision of a state machine with the
* configuration of the state machine used for executions without performing a diff of the properties, such as
* definition
and roleArn
.
*
* Use the state machine revisionId
parameter to compare the revision of a state machine with
* the configuration of the state machine used for executions without performing a diff of the properties,
* such as definition
and roleArn
.
*/
public String getRevisionId() {
return this.revisionId;
}
/**
*
* The revision identifier for the state machine. The first revision ID when you create the state machine is null. *
*
* Use the state machine revisionId
parameter to compare the revision of a state machine with the
* configuration of the state machine used for executions without performing a diff of the properties, such as
* definition
and roleArn
.
*
* Use the state machine revisionId
parameter to compare the revision of a state machine with
* the configuration of the state machine used for executions without performing a diff of the properties,
* such as definition
and roleArn
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStateMachineForExecutionResult withRevisionId(String revisionId) {
setRevisionId(revisionId);
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 (getStateMachineArn() != null)
sb.append("StateMachineArn: ").append(getStateMachineArn()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getDefinition() != null)
sb.append("Definition: ").append("***Sensitive Data Redacted***").append(",");
if (getRoleArn() != null)
sb.append("RoleArn: ").append(getRoleArn()).append(",");
if (getUpdateDate() != null)
sb.append("UpdateDate: ").append(getUpdateDate()).append(",");
if (getLoggingConfiguration() != null)
sb.append("LoggingConfiguration: ").append(getLoggingConfiguration()).append(",");
if (getTracingConfiguration() != null)
sb.append("TracingConfiguration: ").append(getTracingConfiguration()).append(",");
if (getMapRunArn() != null)
sb.append("MapRunArn: ").append(getMapRunArn()).append(",");
if (getLabel() != null)
sb.append("Label: ").append(getLabel()).append(",");
if (getRevisionId() != null)
sb.append("RevisionId: ").append(getRevisionId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeStateMachineForExecutionResult == false)
return false;
DescribeStateMachineForExecutionResult other = (DescribeStateMachineForExecutionResult) obj;
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.getDefinition() == null ^ this.getDefinition() == null)
return false;
if (other.getDefinition() != null && other.getDefinition().equals(this.getDefinition()) == false)
return false;
if (other.getRoleArn() == null ^ this.getRoleArn() == null)
return false;
if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
return false;
if (other.getUpdateDate() == null ^ this.getUpdateDate() == null)
return false;
if (other.getUpdateDate() != null && other.getUpdateDate().equals(this.getUpdateDate()) == false)
return false;
if (other.getLoggingConfiguration() == null ^ this.getLoggingConfiguration() == null)
return false;
if (other.getLoggingConfiguration() != null && other.getLoggingConfiguration().equals(this.getLoggingConfiguration()) == false)
return false;
if (other.getTracingConfiguration() == null ^ this.getTracingConfiguration() == null)
return false;
if (other.getTracingConfiguration() != null && other.getTracingConfiguration().equals(this.getTracingConfiguration()) == false)
return false;
if (other.getMapRunArn() == null ^ this.getMapRunArn() == null)
return false;
if (other.getMapRunArn() != null && other.getMapRunArn().equals(this.getMapRunArn()) == false)
return false;
if (other.getLabel() == null ^ this.getLabel() == null)
return false;
if (other.getLabel() != null && other.getLabel().equals(this.getLabel()) == false)
return false;
if (other.getRevisionId() == null ^ this.getRevisionId() == null)
return false;
if (other.getRevisionId() != null && other.getRevisionId().equals(this.getRevisionId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getStateMachineArn() == null) ? 0 : getStateMachineArn().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getDefinition() == null) ? 0 : getDefinition().hashCode());
hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
hashCode = prime * hashCode + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
hashCode = prime * hashCode + ((getLoggingConfiguration() == null) ? 0 : getLoggingConfiguration().hashCode());
hashCode = prime * hashCode + ((getTracingConfiguration() == null) ? 0 : getTracingConfiguration().hashCode());
hashCode = prime * hashCode + ((getMapRunArn() == null) ? 0 : getMapRunArn().hashCode());
hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().hashCode());
hashCode = prime * hashCode + ((getRevisionId() == null) ? 0 : getRevisionId().hashCode());
return hashCode;
}
@Override
public DescribeStateMachineForExecutionResult clone() {
try {
return (DescribeStateMachineForExecutionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}