All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.simpleworkflow.model.StartChildWorkflowExecutionDecisionAttributes Maven / Gradle / Ivy

Go to download

The Amazon Web Services SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

The newest version!
/*
 * Copyright 2010-2014 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;

/**
 * 

* Provides details of the StartChildWorkflowExecution * decision. *

*

* Access Control *

*

* You can use IAM policies to control this decision's access to Amazon * SWF in much the same way as for the regular API: *

* *
    *
  • Use a Resource element with the domain name to limit * the decision to only specified domains.
  • *
  • Use an Action element to allow or deny permission to * specify this decision.
  • *
  • Constrain the following parameters by using a * Condition element with the appropriate keys. *
      *
    • tagList.member.N : TBD
    • *
    • taskList :String constraint. The key is * "swf:taskList.name".
    • *
    • workflowType.name : String constraint. The key is * ???swf:workflowType.name???.
    • *
    • workflowType.version : String constraint. The key * is ???swf:workflowType.version???.
    • * *
    *
  • * *
*

* If the caller does not have sufficient permissions to invoke the * action, or the parameter values fall outside the specified * constraints, the action fails. The associated event attribute's * cause parameter will be set to OPERATION_NOT_PERMITTED. For * details and example IAM policies, see * Using IAM to Manage Access to Amazon SWF Workflows * . *

*/ public class StartChildWorkflowExecutionDecisionAttributes implements Serializable { /** * The type of the workflow execution to be started. This field is * required. */ private WorkflowType workflowType; /** * The workflowId of the workflow execution. This field is * required.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". *

* Constraints:
* Length: 1 - 256
*/ private String workflowId; /** * Optional data attached to the event that can be used by the decider in * subsequent workflow tasks. This data is not sent to the child workflow * execution. *

* Constraints:
* Length: 0 - 32768
*/ private String control; /** * The input to be provided to the workflow execution. *

* Constraints:
* Length: 0 - 32768
*/ private String input; /** * The total duration for this workflow execution. This overrides the * defaultExecutionStartToCloseTimeout specified when registering the * workflow type.

The valid values are integers greater than or equal * to 0. An integer value can be used to specify the * duration in seconds while NONE can be used to specify * unlimited duration. An execution start-to-close timeout for this * workflow execution must be specified either as a default for the * workflow type or through this parameter. If neither this parameter is * set nor a default execution start-to-close timeout was specified at * registration time then a fault will be returned. *

* Constraints:
* Length: 0 - 8
*/ private String executionStartToCloseTimeout; /** * The name of the task list to be used for decision tasks of the child * workflow execution. A task list for this workflow execution must * be specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task list * was specified at registration time then a fault will be * returned.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". */ private TaskList taskList; /** * Specifies the maximum duration of decision tasks for this workflow * execution. This parameter overrides the * defaultTaskStartToCloseTimout specified when registering * the workflow type using RegisterWorkflowType.

The valid * values are integers greater than or equal to 0. An * integer value can be used to specify the duration in seconds while * NONE can be used to specify unlimited duration. A * task start-to-close timeout for this workflow execution must be * specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task * start-to-close timeout was specified at registration time then a fault * will be returned. *

* Constraints:
* Length: 0 - 8
*/ private String taskStartToCloseTimeout; /** * If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. *

* Constraints:
* Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON */ private String childPolicy; /** * The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. *

* Constraints:
* Length: 0 - 5
*/ private com.amazonaws.internal.ListWithAutoConstructFlag tagList; /** * The type of the workflow execution to be started. This field is * required. * * @return The type of the workflow execution to be started. This field is * required. */ public WorkflowType getWorkflowType() { return workflowType; } /** * The type of the workflow execution to be started. This field is * required. * * @param workflowType The type of the workflow execution to be started. This field is * required. */ public void setWorkflowType(WorkflowType workflowType) { this.workflowType = workflowType; } /** * The type of the workflow execution to be started. This field is * required. *

* Returns a reference to this object so that method calls can be chained together. * * @param workflowType The type of the workflow execution to be started. This field is * required. * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withWorkflowType(WorkflowType workflowType) { this.workflowType = workflowType; return this; } /** * The workflowId of the workflow execution. This field is * required.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". *

* Constraints:
* Length: 1 - 256
* * @return The workflowId of the workflow execution. This field is * required.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". */ public String getWorkflowId() { return workflowId; } /** * The workflowId of the workflow execution. This field is * required.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". *

* Constraints:
* Length: 1 - 256
* * @param workflowId The workflowId of the workflow execution. This field is * required.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". */ public void setWorkflowId(String workflowId) { this.workflowId = workflowId; } /** * The workflowId of the workflow execution. This field is * required.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". *

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

* Constraints:
* Length: 1 - 256
* * @param workflowId The workflowId of the workflow execution. This field is * required.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withWorkflowId(String workflowId) { this.workflowId = workflowId; return this; } /** * Optional data attached to the event that can be used by the decider in * subsequent workflow tasks. This data is not sent to the child workflow * execution. *

* Constraints:
* Length: 0 - 32768
* * @return Optional data attached to the event that can be used by the decider in * subsequent workflow tasks. This data is not sent to the child workflow * execution. */ public String getControl() { return control; } /** * Optional data attached to the event that can be used by the decider in * subsequent workflow tasks. This data is not sent to the child workflow * execution. *

* Constraints:
* Length: 0 - 32768
* * @param control Optional data attached to the event that can be used by the decider in * subsequent workflow tasks. This data is not sent to the child workflow * execution. */ public void setControl(String control) { this.control = control; } /** * Optional data attached to the event that can be used by the decider in * subsequent workflow tasks. This data is not sent to the child workflow * execution. *

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

* Constraints:
* Length: 0 - 32768
* * @param control Optional data attached to the event that can be used by the decider in * subsequent workflow tasks. This data is not sent to the child workflow * execution. * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withControl(String control) { this.control = control; return this; } /** * The input to be provided to the workflow execution. *

* Constraints:
* Length: 0 - 32768
* * @return The input to be provided to the workflow execution. */ public String getInput() { return input; } /** * The input to be provided to the workflow execution. *

* Constraints:
* Length: 0 - 32768
* * @param input The input to be provided to the workflow execution. */ public void setInput(String input) { this.input = input; } /** * The input to be provided to the workflow execution. *

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

* Constraints:
* Length: 0 - 32768
* * @param input The input to be provided to the workflow execution. * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withInput(String input) { this.input = input; return this; } /** * The total duration for this workflow execution. This overrides the * defaultExecutionStartToCloseTimeout specified when registering the * workflow type.

The valid values are integers greater than or equal * to 0. An integer value can be used to specify the * duration in seconds while NONE can be used to specify * unlimited duration. An execution start-to-close timeout for this * workflow execution must be specified either as a default for the * workflow type or through this parameter. If neither this parameter is * set nor a default execution start-to-close timeout was specified at * registration time then a fault will be returned. *

* Constraints:
* Length: 0 - 8
* * @return The total duration for this workflow execution. This overrides the * defaultExecutionStartToCloseTimeout specified when registering the * workflow type.

The valid values are integers greater than or equal * to 0. An integer value can be used to specify the * duration in seconds while NONE can be used to specify * unlimited duration. An execution start-to-close timeout for this * workflow execution must be specified either as a default for the * workflow type or through this parameter. If neither this parameter is * set nor a default execution start-to-close timeout was specified at * registration time then a fault will be returned. */ public String getExecutionStartToCloseTimeout() { return executionStartToCloseTimeout; } /** * The total duration for this workflow execution. This overrides the * defaultExecutionStartToCloseTimeout specified when registering the * workflow type.

The valid values are integers greater than or equal * to 0. An integer value can be used to specify the * duration in seconds while NONE can be used to specify * unlimited duration. An execution start-to-close timeout for this * workflow execution must be specified either as a default for the * workflow type or through this parameter. If neither this parameter is * set nor a default execution start-to-close timeout was specified at * registration time then a fault will be returned. *

* Constraints:
* Length: 0 - 8
* * @param executionStartToCloseTimeout The total duration for this workflow execution. This overrides the * defaultExecutionStartToCloseTimeout specified when registering the * workflow type.

The valid values are integers greater than or equal * to 0. An integer value can be used to specify the * duration in seconds while NONE can be used to specify * unlimited duration. An execution start-to-close timeout for this * workflow execution must be specified either as a default for the * workflow type or through this parameter. If neither this parameter is * set nor a default execution start-to-close timeout was specified at * registration time then a fault will be returned. */ public void setExecutionStartToCloseTimeout(String executionStartToCloseTimeout) { this.executionStartToCloseTimeout = executionStartToCloseTimeout; } /** * The total duration for this workflow execution. This overrides the * defaultExecutionStartToCloseTimeout specified when registering the * workflow type.

The valid values are integers greater than or equal * to 0. An integer value can be used to specify the * duration in seconds while NONE can be used to specify * unlimited duration. An execution start-to-close timeout for this * workflow execution must be specified either as a default for the * workflow type or through this parameter. If neither this parameter is * set nor a default execution start-to-close timeout was specified at * registration time then a fault will be returned. *

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

* Constraints:
* Length: 0 - 8
* * @param executionStartToCloseTimeout The total duration for this workflow execution. This overrides the * defaultExecutionStartToCloseTimeout specified when registering the * workflow type.

The valid values are integers greater than or equal * to 0. An integer value can be used to specify the * duration in seconds while NONE can be used to specify * unlimited duration. An execution start-to-close timeout for this * workflow execution must be specified either as a default for the * workflow type or through this parameter. If neither this parameter is * set nor a default execution start-to-close timeout was specified at * registration time then a fault will be returned. * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withExecutionStartToCloseTimeout(String executionStartToCloseTimeout) { this.executionStartToCloseTimeout = executionStartToCloseTimeout; return this; } /** * The name of the task list to be used for decision tasks of the child * workflow execution. A task list for this workflow execution must * be specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task list * was specified at registration time then a fault will be * returned.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". * * @return The name of the task list to be used for decision tasks of the child * workflow execution. A task list for this workflow execution must * be specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task list * was specified at registration time then a fault will be * returned.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". */ public TaskList getTaskList() { return taskList; } /** * The name of the task list to be used for decision tasks of the child * workflow execution. A task list for this workflow execution must * be specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task list * was specified at registration time then a fault will be * returned.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". * * @param taskList The name of the task list to be used for decision tasks of the child * workflow execution. A task list for this workflow execution must * be specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task list * was specified at registration time then a fault will be * returned.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". */ public void setTaskList(TaskList taskList) { this.taskList = taskList; } /** * The name of the task list to be used for decision tasks of the child * workflow execution. A task list for this workflow execution must * be specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task list * was specified at registration time then a fault will be * returned.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". *

* Returns a reference to this object so that method calls can be chained together. * * @param taskList The name of the task list to be used for decision tasks of the child * workflow execution. A task list for this workflow execution must * be specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task list * was specified at registration time then a fault will be * returned.

The specified string must not start or end with * whitespace. It must not contain a : (colon), * / (slash), | (vertical bar), or any control * characters (\u0000-\u001f | \u007f - \u009f). Also, it must not * contain the literal string "arn". * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withTaskList(TaskList taskList) { this.taskList = taskList; return this; } /** * Specifies the maximum duration of decision tasks for this workflow * execution. This parameter overrides the * defaultTaskStartToCloseTimout specified when registering * the workflow type using RegisterWorkflowType.

The valid * values are integers greater than or equal to 0. An * integer value can be used to specify the duration in seconds while * NONE can be used to specify unlimited duration. A * task start-to-close timeout for this workflow execution must be * specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task * start-to-close timeout was specified at registration time then a fault * will be returned. *

* Constraints:
* Length: 0 - 8
* * @return Specifies the maximum duration of decision tasks for this workflow * execution. This parameter overrides the * defaultTaskStartToCloseTimout specified when registering * the workflow type using RegisterWorkflowType.

The valid * values are integers greater than or equal to 0. An * integer value can be used to specify the duration in seconds while * NONE can be used to specify unlimited duration. A * task start-to-close timeout for this workflow execution must be * specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task * start-to-close timeout was specified at registration time then a fault * will be returned. */ public String getTaskStartToCloseTimeout() { return taskStartToCloseTimeout; } /** * Specifies the maximum duration of decision tasks for this workflow * execution. This parameter overrides the * defaultTaskStartToCloseTimout specified when registering * the workflow type using RegisterWorkflowType.

The valid * values are integers greater than or equal to 0. An * integer value can be used to specify the duration in seconds while * NONE can be used to specify unlimited duration. A * task start-to-close timeout for this workflow execution must be * specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task * start-to-close timeout was specified at registration time then a fault * will be returned. *

* Constraints:
* Length: 0 - 8
* * @param taskStartToCloseTimeout Specifies the maximum duration of decision tasks for this workflow * execution. This parameter overrides the * defaultTaskStartToCloseTimout specified when registering * the workflow type using RegisterWorkflowType.

The valid * values are integers greater than or equal to 0. An * integer value can be used to specify the duration in seconds while * NONE can be used to specify unlimited duration. A * task start-to-close timeout for this workflow execution must be * specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task * start-to-close timeout was specified at registration time then a fault * will be returned. */ public void setTaskStartToCloseTimeout(String taskStartToCloseTimeout) { this.taskStartToCloseTimeout = taskStartToCloseTimeout; } /** * Specifies the maximum duration of decision tasks for this workflow * execution. This parameter overrides the * defaultTaskStartToCloseTimout specified when registering * the workflow type using RegisterWorkflowType.

The valid * values are integers greater than or equal to 0. An * integer value can be used to specify the duration in seconds while * NONE can be used to specify unlimited duration. A * task start-to-close timeout for this workflow execution must be * specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task * start-to-close timeout was specified at registration time then a fault * will be returned. *

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

* Constraints:
* Length: 0 - 8
* * @param taskStartToCloseTimeout Specifies the maximum duration of decision tasks for this workflow * execution. This parameter overrides the * defaultTaskStartToCloseTimout specified when registering * the workflow type using RegisterWorkflowType.

The valid * values are integers greater than or equal to 0. An * integer value can be used to specify the duration in seconds while * NONE can be used to specify unlimited duration. A * task start-to-close timeout for this workflow execution must be * specified either as a default for the workflow type or through this * parameter. If neither this parameter is set nor a default task * start-to-close timeout was specified at registration time then a fault * will be returned. * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withTaskStartToCloseTimeout(String taskStartToCloseTimeout) { this.taskStartToCloseTimeout = taskStartToCloseTimeout; return this; } /** * If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. *

* Constraints:
* Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON * * @return If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. * * @see ChildPolicy */ public String getChildPolicy() { return childPolicy; } /** * If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. *

* Constraints:
* Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON * * @param childPolicy If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. * * @see ChildPolicy */ public void setChildPolicy(String childPolicy) { this.childPolicy = childPolicy; } /** * If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. *

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

* Constraints:
* Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON * * @param childPolicy If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. * * @return A reference to this updated object so that method calls can be chained * together. * * @see ChildPolicy */ public StartChildWorkflowExecutionDecisionAttributes withChildPolicy(String childPolicy) { this.childPolicy = childPolicy; return this; } /** * If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. *

* Constraints:
* Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON * * @param childPolicy If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. * * @see ChildPolicy */ public void setChildPolicy(ChildPolicy childPolicy) { this.childPolicy = childPolicy.toString(); } /** * If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. *

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

* Constraints:
* Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON * * @param childPolicy If set, specifies the policy to use for the child workflow executions * if the workflow execution being started is terminated by calling the * TerminateWorkflowExecution action explicitly or due to an * expired timeout. This policy overrides the default child policy * specified when registering the workflow type using * RegisterWorkflowType. 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.
* A child policy for the workflow execution being started must be * specified either as a default registered for its workflow type or * through this field. If neither this field is set nor a default child * policy was specified at registration time then a fault will be * returned. * * @return A reference to this updated object so that method calls can be chained * together. * * @see ChildPolicy */ public StartChildWorkflowExecutionDecisionAttributes withChildPolicy(ChildPolicy childPolicy) { this.childPolicy = childPolicy.toString(); return this; } /** * The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. *

* Constraints:
* Length: 0 - 5
* * @return The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. */ public java.util.List getTagList() { if (tagList == null) { tagList = new com.amazonaws.internal.ListWithAutoConstructFlag(); tagList.setAutoConstruct(true); } return tagList; } /** * The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. *

* Constraints:
* Length: 0 - 5
* * @param tagList The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. */ public void setTagList(java.util.Collection tagList) { if (tagList == null) { this.tagList = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag tagListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(tagList.size()); tagListCopy.addAll(tagList); this.tagList = tagListCopy; } /** * The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. *

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

* Constraints:
* Length: 0 - 5
* * @param tagList The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withTagList(String... tagList) { if (getTagList() == null) setTagList(new java.util.ArrayList(tagList.length)); for (String value : tagList) { getTagList().add(value); } return this; } /** * The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. *

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

* Constraints:
* Length: 0 - 5
* * @param tagList The list of tags to associate with the child workflow execution. A * maximum of 5 tags can be specified. You can list workflow executions * with a specific tag by calling ListOpenWorkflowExecutions or * ListClosedWorkflowExecutions and specifying a TagFilter. * * @return A reference to this updated object so that method calls can be chained * together. */ public StartChildWorkflowExecutionDecisionAttributes withTagList(java.util.Collection tagList) { if (tagList == null) { this.tagList = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag tagListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(tagList.size()); tagListCopy.addAll(tagList); this.tagList = tagListCopy; } return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getWorkflowType() != null) sb.append("WorkflowType: " + getWorkflowType() + ","); if (getWorkflowId() != null) sb.append("WorkflowId: " + getWorkflowId() + ","); if (getControl() != null) sb.append("Control: " + getControl() + ","); if (getInput() != null) sb.append("Input: " + getInput() + ","); if (getExecutionStartToCloseTimeout() != null) sb.append("ExecutionStartToCloseTimeout: " + getExecutionStartToCloseTimeout() + ","); if (getTaskList() != null) sb.append("TaskList: " + getTaskList() + ","); if (getTaskStartToCloseTimeout() != null) sb.append("TaskStartToCloseTimeout: " + getTaskStartToCloseTimeout() + ","); if (getChildPolicy() != null) sb.append("ChildPolicy: " + getChildPolicy() + ","); if (getTagList() != null) sb.append("TagList: " + getTagList() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWorkflowType() == null) ? 0 : getWorkflowType().hashCode()); hashCode = prime * hashCode + ((getWorkflowId() == null) ? 0 : getWorkflowId().hashCode()); hashCode = prime * hashCode + ((getControl() == null) ? 0 : getControl().hashCode()); hashCode = prime * hashCode + ((getInput() == null) ? 0 : getInput().hashCode()); hashCode = prime * hashCode + ((getExecutionStartToCloseTimeout() == null) ? 0 : getExecutionStartToCloseTimeout().hashCode()); hashCode = prime * hashCode + ((getTaskList() == null) ? 0 : getTaskList().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()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartChildWorkflowExecutionDecisionAttributes == false) return false; StartChildWorkflowExecutionDecisionAttributes other = (StartChildWorkflowExecutionDecisionAttributes)obj; if (other.getWorkflowType() == null ^ this.getWorkflowType() == null) return false; if (other.getWorkflowType() != null && other.getWorkflowType().equals(this.getWorkflowType()) == false) return false; if (other.getWorkflowId() == null ^ this.getWorkflowId() == null) return false; if (other.getWorkflowId() != null && other.getWorkflowId().equals(this.getWorkflowId()) == false) return false; if (other.getControl() == null ^ this.getControl() == null) return false; if (other.getControl() != null && other.getControl().equals(this.getControl()) == 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.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.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; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy