com.amazonaws.services.simpleworkflow.model.WorkflowExecutionContinuedAsNewEventAttributes Maven / Gradle / Ivy
Show all versions of aws-java-sdk-simpleworkflow Show documentation
/*
* Copyright 2019-2024 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.simpleworkflow.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Provides the details of the WorkflowExecutionContinuedAsNew
event.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class WorkflowExecutionContinuedAsNewEventAttributes implements Serializable, Cloneable, StructuredPojo {
/**
*
* The input provided to the new workflow execution.
*
*/
private String input;
/**
*
* The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in the
* ContinueAsNewWorkflowExecution
decision that started this execution. This information can be useful
* for diagnosing problems by tracing back the chain of events leading up to this event.
*
*/
private Long decisionTaskCompletedEventId;
/**
*
* The runId
of the new workflow execution.
*
*/
private String newExecutionRunId;
/**
*
* The total duration allowed for the new workflow execution.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*/
private String executionStartToCloseTimeout;
/**
*
* The task list to use for the decisions of the new (continued) workflow execution.
*
*/
private TaskList taskList;
/**
*
* The priority of the task to use for the decisions of the new (continued) workflow execution.
*
*/
private String taskPriority;
/**
*
* The maximum duration of decision tasks for the new workflow execution.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*/
private String taskStartToCloseTimeout;
/**
*
* The policy to use for the child workflow executions of the new execution if it is terminated by calling the
* TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
* actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*/
private String childPolicy;
/**
*
* The list of tags associated with the new workflow execution.
*
*/
private java.util.List tagList;
/**
*
* The workflow type of this execution.
*
*/
private WorkflowType workflowType;
/**
*
* The IAM role to attach to the new (continued) workflow execution.
*
*/
private String lambdaRole;
/**
*
* The input provided to the new workflow execution.
*
*
* @param input
* The input provided to the new workflow execution.
*/
public void setInput(String input) {
this.input = input;
}
/**
*
* The input provided to the new workflow execution.
*
*
* @return The input provided to the new workflow execution.
*/
public String getInput() {
return this.input;
}
/**
*
* The input provided to the new workflow execution.
*
*
* @param input
* The input provided to the new workflow execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withInput(String input) {
setInput(input);
return this;
}
/**
*
* The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in the
* ContinueAsNewWorkflowExecution
decision that started this execution. This information can be useful
* for diagnosing problems by tracing back the chain of events leading up to this event.
*
*
* @param decisionTaskCompletedEventId
* The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in
* the ContinueAsNewWorkflowExecution
decision that started this execution. This information can
* be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public void setDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId) {
this.decisionTaskCompletedEventId = decisionTaskCompletedEventId;
}
/**
*
* The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in the
* ContinueAsNewWorkflowExecution
decision that started this execution. This information can be useful
* for diagnosing problems by tracing back the chain of events leading up to this event.
*
*
* @return The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted
* in the ContinueAsNewWorkflowExecution
decision that started this execution. This information
* can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public Long getDecisionTaskCompletedEventId() {
return this.decisionTaskCompletedEventId;
}
/**
*
* The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in the
* ContinueAsNewWorkflowExecution
decision that started this execution. This information can be useful
* for diagnosing problems by tracing back the chain of events leading up to this event.
*
*
* @param decisionTaskCompletedEventId
* The ID of the DecisionTaskCompleted
event corresponding to the decision task that resulted in
* the ContinueAsNewWorkflowExecution
decision that started this execution. This information can
* be useful for diagnosing problems by tracing back the chain of events leading up to this event.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withDecisionTaskCompletedEventId(Long decisionTaskCompletedEventId) {
setDecisionTaskCompletedEventId(decisionTaskCompletedEventId);
return this;
}
/**
*
* The runId
of the new workflow execution.
*
*
* @param newExecutionRunId
* The runId
of the new workflow execution.
*/
public void setNewExecutionRunId(String newExecutionRunId) {
this.newExecutionRunId = newExecutionRunId;
}
/**
*
* The runId
of the new workflow execution.
*
*
* @return The runId
of the new workflow execution.
*/
public String getNewExecutionRunId() {
return this.newExecutionRunId;
}
/**
*
* The runId
of the new workflow execution.
*
*
* @param newExecutionRunId
* The runId
of the new workflow execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withNewExecutionRunId(String newExecutionRunId) {
setNewExecutionRunId(newExecutionRunId);
return this;
}
/**
*
* The total duration allowed for the new workflow execution.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
* @param executionStartToCloseTimeout
* The total duration allowed for the new workflow execution.
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*/
public void setExecutionStartToCloseTimeout(String executionStartToCloseTimeout) {
this.executionStartToCloseTimeout = executionStartToCloseTimeout;
}
/**
*
* The total duration allowed for the new workflow execution.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
* @return The total duration allowed for the new workflow execution.
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*/
public String getExecutionStartToCloseTimeout() {
return this.executionStartToCloseTimeout;
}
/**
*
* The total duration allowed for the new workflow execution.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
* @param executionStartToCloseTimeout
* The total duration allowed for the new workflow execution.
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withExecutionStartToCloseTimeout(String executionStartToCloseTimeout) {
setExecutionStartToCloseTimeout(executionStartToCloseTimeout);
return this;
}
/**
*
* The task list to use for the decisions of the new (continued) workflow execution.
*
*
* @param taskList
* The task list to use for the decisions of the new (continued) workflow execution.
*/
public void setTaskList(TaskList taskList) {
this.taskList = taskList;
}
/**
*
* The task list to use for the decisions of the new (continued) workflow execution.
*
*
* @return The task list to use for the decisions of the new (continued) workflow execution.
*/
public TaskList getTaskList() {
return this.taskList;
}
/**
*
* The task list to use for the decisions of the new (continued) workflow execution.
*
*
* @param taskList
* The task list to use for the decisions of the new (continued) workflow execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withTaskList(TaskList taskList) {
setTaskList(taskList);
return this;
}
/**
*
* The priority of the task to use for the decisions of the new (continued) workflow execution.
*
*
* @param taskPriority
* The priority of the task to use for the decisions of the new (continued) workflow execution.
*/
public void setTaskPriority(String taskPriority) {
this.taskPriority = taskPriority;
}
/**
*
* The priority of the task to use for the decisions of the new (continued) workflow execution.
*
*
* @return The priority of the task to use for the decisions of the new (continued) workflow execution.
*/
public String getTaskPriority() {
return this.taskPriority;
}
/**
*
* The priority of the task to use for the decisions of the new (continued) workflow execution.
*
*
* @param taskPriority
* The priority of the task to use for the decisions of the new (continued) workflow execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withTaskPriority(String taskPriority) {
setTaskPriority(taskPriority);
return this;
}
/**
*
* The maximum duration of decision tasks for the new workflow execution.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
* @param taskStartToCloseTimeout
* The maximum duration of decision tasks for the new workflow execution.
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*/
public void setTaskStartToCloseTimeout(String taskStartToCloseTimeout) {
this.taskStartToCloseTimeout = taskStartToCloseTimeout;
}
/**
*
* The maximum duration of decision tasks for the new workflow execution.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
* @return The maximum duration of decision tasks for the new workflow execution.
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*/
public String getTaskStartToCloseTimeout() {
return this.taskStartToCloseTimeout;
}
/**
*
* The maximum duration of decision tasks for the new workflow execution.
*
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
*
*
* @param taskStartToCloseTimeout
* The maximum duration of decision tasks for the new workflow execution.
*
* The duration is specified in seconds, an integer greater than or equal to 0
. You can use
* NONE
to specify unlimited duration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withTaskStartToCloseTimeout(String taskStartToCloseTimeout) {
setTaskStartToCloseTimeout(taskStartToCloseTimeout);
return this;
}
/**
*
* The policy to use for the child workflow executions of the new execution if it is terminated by calling the
* TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
* actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
* @param childPolicy
* The policy to use for the child workflow executions of the new execution if it is terminated by calling
* the TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
* appropriate actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
* @see ChildPolicy
*/
public void setChildPolicy(String childPolicy) {
this.childPolicy = childPolicy;
}
/**
*
* The policy to use for the child workflow executions of the new execution if it is terminated by calling the
* TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
* actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
* @return The policy to use for the child workflow executions of the new execution if it is terminated by calling
* the TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
* appropriate actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
* @see ChildPolicy
*/
public String getChildPolicy() {
return this.childPolicy;
}
/**
*
* The policy to use for the child workflow executions of the new execution if it is terminated by calling the
* TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
* actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
* @param childPolicy
* The policy to use for the child workflow executions of the new execution if it is terminated by calling
* the TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
* appropriate actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ChildPolicy
*/
public WorkflowExecutionContinuedAsNewEventAttributes withChildPolicy(String childPolicy) {
setChildPolicy(childPolicy);
return this;
}
/**
*
* The policy to use for the child workflow executions of the new execution if it is terminated by calling the
* TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
* actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
* @param childPolicy
* The policy to use for the child workflow executions of the new execution if it is terminated by calling
* the TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
* appropriate actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
* @see ChildPolicy
*/
public void setChildPolicy(ChildPolicy childPolicy) {
withChildPolicy(childPolicy);
}
/**
*
* The policy to use for the child workflow executions of the new execution if it is terminated by calling the
* TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take appropriate
* actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
*
*
* @param childPolicy
* The policy to use for the child workflow executions of the new execution if it is terminated by calling
* the TerminateWorkflowExecution action explicitly or due to an expired timeout.
*
* The supported child policies are:
*
*
* -
*
* TERMINATE
– The child executions are terminated.
*
*
* -
*
* REQUEST_CANCEL
– A request to cancel is attempted for each child execution by recording a
* WorkflowExecutionCancelRequested
event in its history. It is up to the decider to take
* appropriate actions when it receives an execution history with this event.
*
*
* -
*
* ABANDON
– No action is taken. The child executions continue to run.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ChildPolicy
*/
public WorkflowExecutionContinuedAsNewEventAttributes withChildPolicy(ChildPolicy childPolicy) {
this.childPolicy = childPolicy.toString();
return this;
}
/**
*
* The list of tags associated with the new workflow execution.
*
*
* @return The list of tags associated with the new workflow execution.
*/
public java.util.List getTagList() {
return tagList;
}
/**
*
* The list of tags associated with the new workflow execution.
*
*
* @param tagList
* The list of tags associated with the new workflow execution.
*/
public void setTagList(java.util.Collection tagList) {
if (tagList == null) {
this.tagList = null;
return;
}
this.tagList = new java.util.ArrayList(tagList);
}
/**
*
* The list of tags associated with the new workflow execution.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTagList(java.util.Collection)} or {@link #withTagList(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param tagList
* The list of tags associated with the new workflow execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withTagList(String... tagList) {
if (this.tagList == null) {
setTagList(new java.util.ArrayList(tagList.length));
}
for (String ele : tagList) {
this.tagList.add(ele);
}
return this;
}
/**
*
* The list of tags associated with the new workflow execution.
*
*
* @param tagList
* The list of tags associated with the new workflow execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withTagList(java.util.Collection tagList) {
setTagList(tagList);
return this;
}
/**
*
* The workflow type of this execution.
*
*
* @param workflowType
* The workflow type of this execution.
*/
public void setWorkflowType(WorkflowType workflowType) {
this.workflowType = workflowType;
}
/**
*
* The workflow type of this execution.
*
*
* @return The workflow type of this execution.
*/
public WorkflowType getWorkflowType() {
return this.workflowType;
}
/**
*
* The workflow type of this execution.
*
*
* @param workflowType
* The workflow type of this execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withWorkflowType(WorkflowType workflowType) {
setWorkflowType(workflowType);
return this;
}
/**
*
* The IAM role to attach to the new (continued) workflow execution.
*
*
* @param lambdaRole
* The IAM role to attach to the new (continued) workflow execution.
*/
public void setLambdaRole(String lambdaRole) {
this.lambdaRole = lambdaRole;
}
/**
*
* The IAM role to attach to the new (continued) workflow execution.
*
*
* @return The IAM role to attach to the new (continued) workflow execution.
*/
public String getLambdaRole() {
return this.lambdaRole;
}
/**
*
* The IAM role to attach to the new (continued) workflow execution.
*
*
* @param lambdaRole
* The IAM role to attach to the new (continued) workflow execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkflowExecutionContinuedAsNewEventAttributes withLambdaRole(String lambdaRole) {
setLambdaRole(lambdaRole);
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(getInput()).append(",");
if (getDecisionTaskCompletedEventId() != null)
sb.append("DecisionTaskCompletedEventId: ").append(getDecisionTaskCompletedEventId()).append(",");
if (getNewExecutionRunId() != null)
sb.append("NewExecutionRunId: ").append(getNewExecutionRunId()).append(",");
if (getExecutionStartToCloseTimeout() != null)
sb.append("ExecutionStartToCloseTimeout: ").append(getExecutionStartToCloseTimeout()).append(",");
if (getTaskList() != null)
sb.append("TaskList: ").append(getTaskList()).append(",");
if (getTaskPriority() != null)
sb.append("TaskPriority: ").append(getTaskPriority()).append(",");
if (getTaskStartToCloseTimeout() != null)
sb.append("TaskStartToCloseTimeout: ").append(getTaskStartToCloseTimeout()).append(",");
if (getChildPolicy() != null)
sb.append("ChildPolicy: ").append(getChildPolicy()).append(",");
if (getTagList() != null)
sb.append("TagList: ").append(getTagList()).append(",");
if (getWorkflowType() != null)
sb.append("WorkflowType: ").append(getWorkflowType()).append(",");
if (getLambdaRole() != null)
sb.append("LambdaRole: ").append(getLambdaRole());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof WorkflowExecutionContinuedAsNewEventAttributes == false)
return false;
WorkflowExecutionContinuedAsNewEventAttributes other = (WorkflowExecutionContinuedAsNewEventAttributes) obj;
if (other.getInput() == null ^ this.getInput() == null)
return false;
if (other.getInput() != null && other.getInput().equals(this.getInput()) == false)
return false;
if (other.getDecisionTaskCompletedEventId() == null ^ this.getDecisionTaskCompletedEventId() == null)
return false;
if (other.getDecisionTaskCompletedEventId() != null && other.getDecisionTaskCompletedEventId().equals(this.getDecisionTaskCompletedEventId()) == false)
return false;
if (other.getNewExecutionRunId() == null ^ this.getNewExecutionRunId() == null)
return false;
if (other.getNewExecutionRunId() != null && other.getNewExecutionRunId().equals(this.getNewExecutionRunId()) == false)
return false;
if (other.getExecutionStartToCloseTimeout() == null ^ this.getExecutionStartToCloseTimeout() == null)
return false;
if (other.getExecutionStartToCloseTimeout() != null && other.getExecutionStartToCloseTimeout().equals(this.getExecutionStartToCloseTimeout()) == false)
return false;
if (other.getTaskList() == null ^ this.getTaskList() == null)
return false;
if (other.getTaskList() != null && other.getTaskList().equals(this.getTaskList()) == false)
return false;
if (other.getTaskPriority() == null ^ this.getTaskPriority() == null)
return false;
if (other.getTaskPriority() != null && other.getTaskPriority().equals(this.getTaskPriority()) == false)
return false;
if (other.getTaskStartToCloseTimeout() == null ^ this.getTaskStartToCloseTimeout() == null)
return false;
if (other.getTaskStartToCloseTimeout() != null && other.getTaskStartToCloseTimeout().equals(this.getTaskStartToCloseTimeout()) == false)
return false;
if (other.getChildPolicy() == null ^ this.getChildPolicy() == null)
return false;
if (other.getChildPolicy() != null && other.getChildPolicy().equals(this.getChildPolicy()) == false)
return false;
if (other.getTagList() == null ^ this.getTagList() == null)
return false;
if (other.getTagList() != null && other.getTagList().equals(this.getTagList()) == false)
return false;
if (other.getWorkflowType() == null ^ this.getWorkflowType() == null)
return false;
if (other.getWorkflowType() != null && other.getWorkflowType().equals(this.getWorkflowType()) == false)
return false;
if (other.getLambdaRole() == null ^ this.getLambdaRole() == null)
return false;
if (other.getLambdaRole() != null && other.getLambdaRole().equals(this.getLambdaRole()) == 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 + ((getDecisionTaskCompletedEventId() == null) ? 0 : getDecisionTaskCompletedEventId().hashCode());
hashCode = prime * hashCode + ((getNewExecutionRunId() == null) ? 0 : getNewExecutionRunId().hashCode());
hashCode = prime * hashCode + ((getExecutionStartToCloseTimeout() == null) ? 0 : getExecutionStartToCloseTimeout().hashCode());
hashCode = prime * hashCode + ((getTaskList() == null) ? 0 : getTaskList().hashCode());
hashCode = prime * hashCode + ((getTaskPriority() == null) ? 0 : getTaskPriority().hashCode());
hashCode = prime * hashCode + ((getTaskStartToCloseTimeout() == null) ? 0 : getTaskStartToCloseTimeout().hashCode());
hashCode = prime * hashCode + ((getChildPolicy() == null) ? 0 : getChildPolicy().hashCode());
hashCode = prime * hashCode + ((getTagList() == null) ? 0 : getTagList().hashCode());
hashCode = prime * hashCode + ((getWorkflowType() == null) ? 0 : getWorkflowType().hashCode());
hashCode = prime * hashCode + ((getLambdaRole() == null) ? 0 : getLambdaRole().hashCode());
return hashCode;
}
@Override
public WorkflowExecutionContinuedAsNewEventAttributes clone() {
try {
return (WorkflowExecutionContinuedAsNewEventAttributes) 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.simpleworkflow.model.transform.WorkflowExecutionContinuedAsNewEventAttributesMarshaller.getInstance().marshall(this,
protocolMarshaller);
}
}