Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 

Provides details of the WorkflowExecutionContinuedAsNew event.

 
The input provided to the new workflow execution.

Constraints:
Length: 0 - 32768

 
     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.

Constraints:
Length: 1 - 64

 
     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. The value "NONE" can be used to specify unlimited duration.

Constraints:
Length: 0 - 8

 
     private String executionStartToCloseTimeout;

    
Represents a task list.
 
     private TaskList taskList;
 
     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. The value "NONE" can be used to specify unlimited duration.

Constraints:
Length: 0 - 8

 
     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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

 
     private String childPolicy;

    
The list of tags associated with the new workflow execution.

Constraints:
Length: 0 - 5

Represents a workflow type.
    private WorkflowType workflowType;

    
The input provided to the new workflow execution.

Constraints:
Length: 0 - 32768

Returns:
The input provided to the new workflow execution.
    public String getInput() {
        return ;
    }
    
    
The input provided to the new workflow execution.

Constraints:
Length: 0 - 32768

Parameters:
input The input provided to the new workflow execution.
    public void setInput(String input) {
        this. = input;
    }
    
    
The input provided to the new workflow execution.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 32768

Parameters:
input The input provided to the new workflow execution.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = 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.

Returns:
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.

Parameters:
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;
    }
    
    
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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = decisionTaskCompletedEventId;
        return this;
    }

    
The runId of the new workflow execution.

Constraints:
Length: 1 - 64

Returns:
The runId of the new workflow execution.
    public String getNewExecutionRunId() {
        return ;
    }
    
    
The runId of the new workflow execution.

Constraints:
Length: 1 - 64

Parameters:
newExecutionRunId The runId of the new workflow execution.
    public void setNewExecutionRunId(String newExecutionRunId) {
        this. = newExecutionRunId;
    }
    
    
The runId of the new workflow execution.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64

Parameters:
newExecutionRunId The runId of the new workflow execution.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = 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. The value "NONE" can be used to specify unlimited duration.

Constraints:
Length: 0 - 8

Returns:
The total duration allowed for the new workflow execution.

The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used 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. The value "NONE" can be used to specify unlimited duration.

Constraints:
Length: 0 - 8

Parameters:
executionStartToCloseTimeout The total duration allowed for the new workflow execution.

The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

    public void setExecutionStartToCloseTimeout(String executionStartToCloseTimeout) {
        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. The value "NONE" can be used to specify unlimited duration.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 8

Parameters:
executionStartToCloseTimeout The total duration allowed for the new workflow execution.

The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = executionStartToCloseTimeout;
        return this;
    }

    
Represents a task list.

Returns:
Represents a task list.
    public TaskList getTaskList() {
        return ;
    }
    
    
Represents a task list.

Parameters:
taskList Represents a task list.
    public void setTaskList(TaskList taskList) {
        this. = taskList;
    }
    
    
Represents a task list.

Returns a reference to this object so that method calls can be chained together.

Parameters:
taskList Represents a task list.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = taskList;
        return this;
    }

    
Returns the value of the TaskPriority property for this object.

Constraints:
Length: 0 - 11

Returns:
The value of the TaskPriority property for this object.
    public String getTaskPriority() {
        return ;
    }
    
    
Sets the value of the TaskPriority property for this object.

Constraints:
Length: 0 - 11

Parameters:
taskPriority The new value for the TaskPriority property for this object.
    public void setTaskPriority(String taskPriority) {
        this. = taskPriority;
    }
    
    
Sets the value of the TaskPriority property for this object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 11

Parameters:
taskPriority The new value for the TaskPriority property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = 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. The value "NONE" can be used to specify unlimited duration.

Constraints:
Length: 0 - 8

Returns:
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. The value "NONE" can be used 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. The value "NONE" can be used to specify unlimited duration.

Constraints:
Length: 0 - 8

Parameters:
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. The value "NONE" can be used to specify unlimited duration.

    public void setTaskStartToCloseTimeout(String taskStartToCloseTimeout) {
        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. The value "NONE" can be used to specify unlimited duration.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 8

Parameters:
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. The value "NONE" can be used to specify unlimited duration.

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = 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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Returns:
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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.
See also:
ChildPolicy
    public String getChildPolicy() {
        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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Parameters:
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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.
See also:
ChildPolicy
    public void setChildPolicy(String childPolicy) {
        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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Parameters:
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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ChildPolicy
        this. = 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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Parameters:
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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.
See also:
ChildPolicy
    public void setChildPolicy(ChildPolicy childPolicy) {
        this. = childPolicy.toString();
    }
    
    
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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Parameters:
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 will be terminated.
  • REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
ChildPolicy
        this. = childPolicy.toString();
        return this;
    }

    
The list of tags associated with the new workflow execution.

Constraints:
Length: 0 - 5

Returns:
The list of tags associated with the new workflow execution.
    public java.util.List<StringgetTagList() {
        return ;
    }
    
    
The list of tags associated with the new workflow execution.

Constraints:
Length: 0 - 5

Parameters:
tagList The list of tags associated with the new workflow execution.
    public void setTagList(java.util.Collection<StringtagList) {
        if (tagList == null) {
            this. = null;
            return;
        }
        tagListCopy.addAll(tagList);
        this. = tagListCopy;
    }
    
    
The list of tags associated with the new workflow execution.

NOTE: This method appends the values to the existing list (if any). Use setTagList(java.util.Collection) or withTagList(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 5

Parameters:
tagList The list of tags associated with the new workflow execution.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getTagList() == nullsetTagList(new java.util.ArrayList<String>(tagList.length));
        for (String value : tagList) {
            getTagList().add(value);
        }
        return this;
    }
    
    
The list of tags associated with the new workflow execution.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 5

Parameters:
tagList The list of tags associated with the new workflow execution.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (tagList == null) {
            this. = null;
        } else {
            tagListCopy.addAll(tagList);
            this. = tagListCopy;
        }
        return this;
    }

    
Represents a workflow type.

Returns:
Represents a workflow type.
    public WorkflowType getWorkflowType() {
        return ;
    }
    
    
Represents a workflow type.

Parameters:
workflowType Represents a workflow type.
    public void setWorkflowType(WorkflowType workflowType) {
        this. = workflowType;
    }
    
    
Represents a workflow type.

Returns a reference to this object so that method calls can be chained together.

Parameters:
workflowType Represents a workflow type.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = workflowType;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getInput() != nullsb.append("Input: " + getInput() + ",");
        if (getDecisionTaskCompletedEventId() != nullsb.append("DecisionTaskCompletedEventId: " + getDecisionTaskCompletedEventId() + ",");
        if (getNewExecutionRunId() != nullsb.append("NewExecutionRunId: " + getNewExecutionRunId() + ",");
        if (getExecutionStartToCloseTimeout() != nullsb.append("ExecutionStartToCloseTimeout: " + getExecutionStartToCloseTimeout() + ",");
        if (getTaskList() != nullsb.append("TaskList: " + getTaskList() + ",");
        if (getTaskPriority() != nullsb.append("TaskPriority: " + getTaskPriority() + ",");
        if (getTaskStartToCloseTimeout() != nullsb.append("TaskStartToCloseTimeout: " + getTaskStartToCloseTimeout() + ",");
        if (getChildPolicy() != nullsb.append("ChildPolicy: " + getChildPolicy() + ",");
        if (getTagList() != nullsb.append("TagList: " + getTagList() + ",");
        if (getWorkflowType() != nullsb.append("WorkflowType: " + getWorkflowType() );
        sb.append("}");
        return sb.toString();
    }
    
    @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()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof WorkflowExecutionContinuedAsNewEventAttributes == falsereturn false;
        
        if (other.getInput() == null ^ this.getInput() == nullreturn false;
        if (other.getInput() != null && other.getInput().equals(this.getInput()) == falsereturn false
        if (other.getDecisionTaskCompletedEventId() == null ^ this.getDecisionTaskCompletedEventId() == nullreturn false;
        if (other.getDecisionTaskCompletedEventId() != null && other.getDecisionTaskCompletedEventId().equals(this.getDecisionTaskCompletedEventId()) == falsereturn false
        if (other.getNewExecutionRunId() == null ^ this.getNewExecutionRunId() == nullreturn false;
        if (other.getNewExecutionRunId() != null && other.getNewExecutionRunId().equals(this.getNewExecutionRunId()) == falsereturn false
        if (other.getExecutionStartToCloseTimeout() == null ^ this.getExecutionStartToCloseTimeout() == nullreturn false;
        if (other.getExecutionStartToCloseTimeout() != null && other.getExecutionStartToCloseTimeout().equals(this.getExecutionStartToCloseTimeout()) == falsereturn false
        if (other.getTaskList() == null ^ this.getTaskList() == nullreturn false;
        if (other.getTaskList() != null && other.getTaskList().equals(this.getTaskList()) == falsereturn false
        if (other.getTaskPriority() == null ^ this.getTaskPriority() == nullreturn false;
        if (other.getTaskPriority() != null && other.getTaskPriority().equals(this.getTaskPriority()) == falsereturn false
        if (other.getTaskStartToCloseTimeout() == null ^ this.getTaskStartToCloseTimeout() == nullreturn false;
        if (other.getTaskStartToCloseTimeout() != null && other.getTaskStartToCloseTimeout().equals(this.getTaskStartToCloseTimeout()) == falsereturn false
        if (other.getChildPolicy() == null ^ this.getChildPolicy() == nullreturn false;
        if (other.getChildPolicy() != null && other.getChildPolicy().equals(this.getChildPolicy()) == falsereturn false
        if (other.getTagList() == null ^ this.getTagList() == nullreturn false;
        if (other.getTagList() != null && other.getTagList().equals(this.getTagList()) == falsereturn false
        if (other.getWorkflowType() == null ^ this.getWorkflowType() == nullreturn false;
        if (other.getWorkflowType() != null && other.getWorkflowType().equals(this.getWorkflowType()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (WorkflowExecutionContinuedAsNewEventAttributessuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X