/* * 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 implements Serializable, Cloneable { /** *

* The Amazon Resource Name (ARN) of the state machine associated with the execution. *

*/ private String stateMachineArn; /** *

* The name of the state machine associated with the execution. *

*/ private String name; /** *

* The Amazon States Language definition of the state machine. See Amazon States * Language. *

*/ private String definition; /** *

* The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution. *

*/ private String roleArn; /** *

* The date and time the state machine associated with an execution was updated. For a newly created state machine, * this is the creation date. *

*/ private java.util.Date updateDate; private LoggingConfiguration loggingConfiguration; /** *

* Selects whether X-Ray tracing is enabled. *

*/ private TracingConfiguration tracingConfiguration; /** *

* The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned * only if the executionArn is a child workflow execution that was started by a Distributed Map state. *

*/ private String mapRunArn; /** *

* A user-defined or an auto-generated string that identifies a Map state. This field is returned only * if the executionArn is a child workflow execution that was started by a Distributed Map state. *

*/ private String label; /** *

* 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. *

*/ private String revisionId; /** *

* The Amazon Resource Name (ARN) of the state machine associated with the execution. *

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

* The Amazon Resource Name (ARN) of the state machine associated with the execution. *

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

* The Amazon Resource Name (ARN) of the state machine associated with the execution. *

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

* The name of the state machine associated with the execution. *

* * @param name * The name of the state machine associated with the execution. */ public void setName(String name) { this.name = name; } /** *

* The name of the state machine associated with the execution. *

* * @return The name of the state machine associated with the execution. */ public String getName() { return this.name; } /** *

* The name of the state machine associated with the execution. *

* * @param name * The name of the state machine associated with the execution. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStateMachineForExecutionResult withName(String name) { setName(name); return this; } /** *

* The Amazon States Language definition of the state machine. See Amazon States * Language. *

* * @param definition * The Amazon States Language definition of the state machine. See Amazon * States Language. */ public void setDefinition(String definition) { this.definition = definition; } /** *

* The Amazon States Language definition of the state machine. See Amazon States * Language. *

* * @return The Amazon States Language definition of the state machine. See Amazon * States Language. */ public String getDefinition() { return this.definition; } /** *

* The Amazon States Language definition of the state machine. See Amazon States * Language. *

* * @param definition * The Amazon States Language definition of the state machine. See Amazon * States Language. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStateMachineForExecutionResult withDefinition(String definition) { setDefinition(definition); return this; } /** *

* The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution. *

* * @return The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution. */ public String getRoleArn() { return this.roleArn; } /** *

* The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role of the State Machine for the execution. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStateMachineForExecutionResult withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* The date and time the state machine associated with an execution was updated. For a newly created state machine, * this is the creation date. *

* * @param updateDate * The date and time the state machine associated with an execution was updated. For a newly created state * machine, this is the creation date. */ public void setUpdateDate(java.util.Date updateDate) { this.updateDate = updateDate; } /** *

* The date and time the state machine associated with an execution was updated. For a newly created state machine, * this is the creation date. *

* * @return The date and time the state machine associated with an execution was updated. For a newly created state * machine, this is the creation date. */ public java.util.Date getUpdateDate() { return this.updateDate; } /** *

* The date and time the state machine associated with an execution was updated. For a newly created state machine, * this is the creation date. *

* * @param updateDate * The date and time the state machine associated with an execution was updated. For a newly created state * machine, this is the creation date. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStateMachineForExecutionResult withUpdateDate(java.util.Date updateDate) { setUpdateDate(updateDate); return this; } /** * @param loggingConfiguration */ public void setLoggingConfiguration(LoggingConfiguration loggingConfiguration) { this.loggingConfiguration = loggingConfiguration; } /** * @return */ public LoggingConfiguration getLoggingConfiguration() { return this.loggingConfiguration; } /** * @param loggingConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStateMachineForExecutionResult withLoggingConfiguration(LoggingConfiguration loggingConfiguration) { setLoggingConfiguration(loggingConfiguration); return this; } /** *

* Selects whether X-Ray tracing is enabled. *

* * @param tracingConfiguration * Selects whether X-Ray tracing is enabled. */ public void setTracingConfiguration(TracingConfiguration tracingConfiguration) { this.tracingConfiguration = tracingConfiguration; } /** *

* Selects whether X-Ray tracing is enabled. *

* * @return Selects whether X-Ray tracing is enabled. */ public TracingConfiguration getTracingConfiguration() { return this.tracingConfiguration; } /** *

* Selects whether X-Ray tracing is enabled. *

* * @param tracingConfiguration * Selects whether X-Ray tracing is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStateMachineForExecutionResult withTracingConfiguration(TracingConfiguration tracingConfiguration) { setTracingConfiguration(tracingConfiguration); return this; } /** *

* The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned * only if the executionArn is a child workflow execution that was started by a Distributed Map state. *

* * @param mapRunArn * The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is * returned only if the executionArn is a child workflow execution that was started by a * Distributed Map state. */ public void setMapRunArn(String mapRunArn) { this.mapRunArn = mapRunArn; } /** *

* The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned * only if the executionArn is a child workflow execution that was started by a Distributed Map state. *

* * @return The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is * returned only if the executionArn is a child workflow execution that was started by a * Distributed Map state. */ public String getMapRunArn() { return this.mapRunArn; } /** *

* The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. This field is returned * only if the executionArn is a child workflow execution that was started by a Distributed Map state. *

* * @param mapRunArn * The Amazon Resource Name (ARN) of the Map Run that started the child workflow execution. 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 withMapRunArn(String mapRunArn) { setMapRunArn(mapRunArn); return this; } /** *

* A user-defined or an auto-generated string that identifies a Map state. This field is returned only * if the executionArn is a child workflow execution that was started by a Distributed Map state. *

* * @param label * A user-defined or an auto-generated string that identifies a 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; } /** *

* A user-defined or an auto-generated string that identifies a Map state. This field is returned only * if the executionArn is a child workflow execution that was started by a Distributed Map state. *

* * @return A user-defined or an auto-generated string that identifies a 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; } /** *

* A user-defined or an auto-generated string that identifies a Map state. This field is returned only * if the executionArn is a child workflow execution that was started by a Distributed Map state. *

* * @param label * A user-defined or an auto-generated string that identifies a 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; } /** *

* 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. *

* * @param 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. */ 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. *

* * @return 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. */ 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. *

* * @param 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. * @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); } } }