/* * 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; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Contains details about the start of the execution. *

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

* The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as bytes in * UTF-8 encoding. *

*/ private String input; /** *

* Contains details about the input for an execution history event. *

*/ private HistoryEventExecutionDataDetails inputDetails; /** *

* The Amazon Resource Name (ARN) of the IAM role used for executing Lambda tasks. *

*/ private String roleArn; /** *

* The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine * execution. *

*/ private String stateMachineAliasArn; /** *

* The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state machine * execution. *

*/ private String stateMachineVersionArn; /** *

* The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as bytes in * UTF-8 encoding. *

* * @param input * The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as * bytes in UTF-8 encoding. */ public void setInput(String input) { this.input = input; } /** *

* The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as bytes in * UTF-8 encoding. *

* * @return The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as * bytes in UTF-8 encoding. */ public String getInput() { return this.input; } /** *

* The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as bytes in * UTF-8 encoding. *

* * @param input * The JSON data input to the execution. Length constraints apply to the payload size, and are expressed as * bytes in UTF-8 encoding. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionStartedEventDetails withInput(String input) { setInput(input); return this; } /** *

* Contains details about the input for an execution history event. *

* * @param inputDetails * Contains details about the input for an execution history event. */ public void setInputDetails(HistoryEventExecutionDataDetails inputDetails) { this.inputDetails = inputDetails; } /** *

* Contains details about the input for an execution history event. *

* * @return Contains details about the input for an execution history event. */ public HistoryEventExecutionDataDetails getInputDetails() { return this.inputDetails; } /** *

* Contains details about the input for an execution history event. *

* * @param inputDetails * Contains details about the input for an execution history event. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionStartedEventDetails withInputDetails(HistoryEventExecutionDataDetails inputDetails) { setInputDetails(inputDetails); return this; } /** *

* The Amazon Resource Name (ARN) of the IAM role used for executing Lambda tasks. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role used for executing Lambda tasks. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The Amazon Resource Name (ARN) of the IAM role used for executing Lambda tasks. *

* * @return The Amazon Resource Name (ARN) of the IAM role used for executing Lambda tasks. */ public String getRoleArn() { return this.roleArn; } /** *

* The Amazon Resource Name (ARN) of the IAM role used for executing Lambda tasks. *

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

* The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine * execution. *

* * @param stateMachineAliasArn * The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine * execution. */ public void setStateMachineAliasArn(String stateMachineAliasArn) { this.stateMachineAliasArn = stateMachineAliasArn; } /** *

* The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine * execution. *

* * @return The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine * execution. */ public String getStateMachineAliasArn() { return this.stateMachineAliasArn; } /** *

* The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine * execution. *

* * @param stateMachineAliasArn * The Amazon Resource Name (ARN) that identifies a state machine alias used for starting the state machine * execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionStartedEventDetails withStateMachineAliasArn(String stateMachineAliasArn) { setStateMachineAliasArn(stateMachineAliasArn); return this; } /** *

* The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state machine * execution. *

* * @param stateMachineVersionArn * The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state machine * execution. */ public void setStateMachineVersionArn(String stateMachineVersionArn) { this.stateMachineVersionArn = stateMachineVersionArn; } /** *

* The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state machine * execution. *

* * @return The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state * machine execution. */ public String getStateMachineVersionArn() { return this.stateMachineVersionArn; } /** *

* The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state machine * execution. *

* * @param stateMachineVersionArn * The Amazon Resource Name (ARN) that identifies a state machine version used for starting the state machine * execution. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecutionStartedEventDetails withStateMachineVersionArn(String stateMachineVersionArn) { setStateMachineVersionArn(stateMachineVersionArn); 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 (getInput() != null) sb.append("Input: ").append("***Sensitive Data Redacted***").append(","); if (getInputDetails() != null) sb.append("InputDetails: ").append(getInputDetails()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getStateMachineAliasArn() != null) sb.append("StateMachineAliasArn: ").append(getStateMachineAliasArn()).append(","); if (getStateMachineVersionArn() != null) sb.append("StateMachineVersionArn: ").append(getStateMachineVersionArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExecutionStartedEventDetails == false) return false; ExecutionStartedEventDetails other = (ExecutionStartedEventDetails) obj; if (other.getInput() == null ^ this.getInput() == null) return false; if (other.getInput() != null && other.getInput().equals(this.getInput()) == false) return false; if (other.getInputDetails() == null ^ this.getInputDetails() == null) return false; if (other.getInputDetails() != null && other.getInputDetails().equals(this.getInputDetails()) == 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.getStateMachineAliasArn() == null ^ this.getStateMachineAliasArn() == null) return false; if (other.getStateMachineAliasArn() != null && other.getStateMachineAliasArn().equals(this.getStateMachineAliasArn()) == false) return false; if (other.getStateMachineVersionArn() == null ^ this.getStateMachineVersionArn() == null) return false; if (other.getStateMachineVersionArn() != null && other.getStateMachineVersionArn().equals(this.getStateMachineVersionArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getInputDetails() == null) ? 0 : getInputDetails().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getStateMachineAliasArn() == null) ? 0 : getStateMachineAliasArn().hashCode()); hashCode = prime * hashCode + ((getStateMachineVersionArn() == null) ? 0 : getStateMachineVersionArn().hashCode()); return hashCode; } @Override public ExecutionStartedEventDetails clone() { try { return (ExecutionStartedEventDetails) 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.ExecutionStartedEventDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }