/* * 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 StartSyncExecutionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

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

*/ private String executionArn; /** *

* The Amazon Resource Name (ARN) that identifies the state machine. *

*/ private String stateMachineArn; /** *

* The name of the execution. *

*/ private String name; /** *

* 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 current status of the execution. *

*/ private String status; /** *

* The error code of the failure. *

*/ private String error; /** *

* A more detailed explanation of the cause of the failure. *

*/ private String cause; /** *

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

*/ private String input; private CloudWatchEventsExecutionDataDetails inputDetails; /** *

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

* *

* This field is set only if the execution succeeds. If the execution fails, this field is null. *

*
*/ private String output; private CloudWatchEventsExecutionDataDetails outputDetails; /** *

* The X-Ray trace header that was passed to the execution. *

*/ private String traceHeader; /** *

* An object that describes workflow billing details, including billed duration and memory use. *

*/ private BillingDetails billingDetails; /** *

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

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

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

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

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

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

* The Amazon Resource Name (ARN) that identifies the state machine. *

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

* The Amazon Resource Name (ARN) that identifies the state machine. *

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

* The Amazon Resource Name (ARN) that identifies the state machine. *

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

* The name of the execution. *

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

* The name of the execution. *

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

* The name of the execution. *

* * @param name * The name of the execution. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSyncExecutionResult withName(String name) { setName(name); 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 StartSyncExecutionResult 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 StartSyncExecutionResult withStopDate(java.util.Date stopDate) { setStopDate(stopDate); return this; } /** *

* The current status of the execution. *

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

* The current status of the execution. *

* * @return The current status of the execution. * @see SyncExecutionStatus */ 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 SyncExecutionStatus */ public StartSyncExecutionResult withStatus(String status) { setStatus(status); return this; } /** *

* 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 SyncExecutionStatus */ public StartSyncExecutionResult withStatus(SyncExecutionStatus status) { this.status = status.toString(); return this; } /** *

* The error code of the failure. *

* * @param error * The error code of the failure. */ public void setError(String error) { this.error = error; } /** *

* The error code of the failure. *

* * @return The error code of the failure. */ public String getError() { return this.error; } /** *

* The error code of the failure. *

* * @param error * The error code of the failure. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSyncExecutionResult withError(String error) { setError(error); return this; } /** *

* A more detailed explanation of the cause of the failure. *

* * @param cause * A more detailed explanation of the cause of the failure. */ public void setCause(String cause) { this.cause = cause; } /** *

* A more detailed explanation of the cause of the failure. *

* * @return A more detailed explanation of the cause of the failure. */ public String getCause() { return this.cause; } /** *

* A more detailed explanation of the cause of the failure. *

* * @param cause * A more detailed explanation of the cause of the failure. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSyncExecutionResult withCause(String cause) { setCause(cause); return this; } /** *

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

* * @param input * The string that contains the JSON input data of 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 string that contains the JSON input data of the execution. Length constraints apply to the payload size, and * are expressed as bytes in UTF-8 encoding. *

* * @return The string that contains the JSON input data of 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 string that contains the JSON input data of the execution. Length constraints apply to the payload size, and * are expressed as bytes in UTF-8 encoding. *

* * @param input * The string that contains the JSON input data of 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 StartSyncExecutionResult withInput(String input) { setInput(input); return this; } /** * @param inputDetails */ public void setInputDetails(CloudWatchEventsExecutionDataDetails inputDetails) { this.inputDetails = inputDetails; } /** * @return */ public CloudWatchEventsExecutionDataDetails getInputDetails() { return this.inputDetails; } /** * @param inputDetails * @return Returns a reference to this object so that method calls can be chained together. */ public StartSyncExecutionResult withInputDetails(CloudWatchEventsExecutionDataDetails inputDetails) { setInputDetails(inputDetails); return this; } /** *

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

* *

* 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. Length constraints apply to the payload size, and are expressed as * bytes in UTF-8 encoding.

*

* 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. Length constraints apply to the payload size, and are expressed as bytes * in UTF-8 encoding. *

* *

* 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. Length constraints apply to the payload size, and are expressed as * bytes in UTF-8 encoding.

*

* 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. Length constraints apply to the payload size, and are expressed as bytes * in UTF-8 encoding. *

* *

* 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. Length constraints apply to the payload size, and are expressed as * bytes in UTF-8 encoding.

*

* 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 StartSyncExecutionResult withOutput(String output) { setOutput(output); return this; } /** * @param outputDetails */ public void setOutputDetails(CloudWatchEventsExecutionDataDetails outputDetails) { this.outputDetails = outputDetails; } /** * @return */ public CloudWatchEventsExecutionDataDetails getOutputDetails() { return this.outputDetails; } /** * @param outputDetails * @return Returns a reference to this object so that method calls can be chained together. */ public StartSyncExecutionResult withOutputDetails(CloudWatchEventsExecutionDataDetails outputDetails) { setOutputDetails(outputDetails); return this; } /** *

* The X-Ray trace header that was passed to the execution. *

* * @param traceHeader * The X-Ray trace header that was passed to the execution. */ public void setTraceHeader(String traceHeader) { this.traceHeader = traceHeader; } /** *

* The X-Ray trace header that was passed to the execution. *

* * @return The X-Ray trace header that was passed to the execution. */ public String getTraceHeader() { return this.traceHeader; } /** *

* The X-Ray trace header that was passed to the execution. *

* * @param traceHeader * The X-Ray trace header that was passed to the execution. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSyncExecutionResult withTraceHeader(String traceHeader) { setTraceHeader(traceHeader); return this; } /** *

* An object that describes workflow billing details, including billed duration and memory use. *

* * @param billingDetails * An object that describes workflow billing details, including billed duration and memory use. */ public void setBillingDetails(BillingDetails billingDetails) { this.billingDetails = billingDetails; } /** *

* An object that describes workflow billing details, including billed duration and memory use. *

* * @return An object that describes workflow billing details, including billed duration and memory use. */ public BillingDetails getBillingDetails() { return this.billingDetails; } /** *

* An object that describes workflow billing details, including billed duration and memory use. *

* * @param billingDetails * An object that describes workflow billing details, including billed duration and memory use. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSyncExecutionResult withBillingDetails(BillingDetails billingDetails) { setBillingDetails(billingDetails); 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 (getStartDate() != null) sb.append("StartDate: ").append(getStartDate()).append(","); if (getStopDate() != null) sb.append("StopDate: ").append(getStopDate()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getError() != null) sb.append("Error: ").append("***Sensitive Data Redacted***").append(","); if (getCause() != null) sb.append("Cause: ").append("***Sensitive Data Redacted***").append(","); if (getInput() != null) sb.append("Input: ").append("***Sensitive Data Redacted***").append(","); if (getInputDetails() != null) sb.append("InputDetails: ").append(getInputDetails()).append(","); if (getOutput() != null) sb.append("Output: ").append("***Sensitive Data Redacted***").append(","); if (getOutputDetails() != null) sb.append("OutputDetails: ").append(getOutputDetails()).append(","); if (getTraceHeader() != null) sb.append("TraceHeader: ").append(getTraceHeader()).append(","); if (getBillingDetails() != null) sb.append("BillingDetails: ").append(getBillingDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartSyncExecutionResult == false) return false; StartSyncExecutionResult other = (StartSyncExecutionResult) 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.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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getError() == null ^ this.getError() == null) return false; if (other.getError() != null && other.getError().equals(this.getError()) == false) return false; if (other.getCause() == null ^ this.getCause() == null) return false; if (other.getCause() != null && other.getCause().equals(this.getCause()) == 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.getInputDetails() == null ^ this.getInputDetails() == null) return false; if (other.getInputDetails() != null && other.getInputDetails().equals(this.getInputDetails()) == false) return false; if (other.getOutput() == null ^ this.getOutput() == null) return false; if (other.getOutput() != null && other.getOutput().equals(this.getOutput()) == false) return false; if (other.getOutputDetails() == null ^ this.getOutputDetails() == null) return false; if (other.getOutputDetails() != null && other.getOutputDetails().equals(this.getOutputDetails()) == false) return false; if (other.getTraceHeader() == null ^ this.getTraceHeader() == null) return false; if (other.getTraceHeader() != null && other.getTraceHeader().equals(this.getTraceHeader()) == false) return false; if (other.getBillingDetails() == null ^ this.getBillingDetails() == null) return false; if (other.getBillingDetails() != null && other.getBillingDetails().equals(this.getBillingDetails()) == 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 + ((getStartDate() == null) ? 0 : getStartDate().hashCode()); hashCode = prime * hashCode + ((getStopDate() == null) ? 0 : getStopDate().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); hashCode = prime * hashCode + ((getCause() == null) ? 0 : getCause().hashCode()); hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getInputDetails() == null) ? 0 : getInputDetails().hashCode()); hashCode = prime * hashCode + ((getOutput() == null) ? 0 : getOutput().hashCode()); hashCode = prime * hashCode + ((getOutputDetails() == null) ? 0 : getOutputDetails().hashCode()); hashCode = prime * hashCode + ((getTraceHeader() == null) ? 0 : getTraceHeader().hashCode()); hashCode = prime * hashCode + ((getBillingDetails() == null) ? 0 : getBillingDetails().hashCode()); return hashCode; } @Override public StartSyncExecutionResult clone() { try { return (StartSyncExecutionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }