@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StartAutomationExecutionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
StartAutomationExecutionRequest() |
Modifier and Type | Method and Description |
---|---|
StartAutomationExecutionRequest |
addParametersEntry(String key,
List<String> value) |
StartAutomationExecutionRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
StartAutomationExecutionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
User-provided idempotency token.
|
String |
getDocumentName()
The name of the Automation document to use for this execution.
|
String |
getDocumentVersion()
The version of the Automation document to use for this execution.
|
String |
getMaxConcurrency()
The maximum number of targets allowed to run this task in parallel.
|
String |
getMaxErrors()
The number of errors that are allowed before the system stops running the automation on additional targets.
|
String |
getMode()
The execution mode of the automation.
|
Map<String,List<String>> |
getParameters()
A key-value map of execution parameters, which match the declared parameters in the Automation document.
|
List<TargetLocation> |
getTargetLocations()
A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation.
|
List<Map<String,List<String>>> |
getTargetMaps()
A key-value mapping of document parameters to target resources.
|
String |
getTargetParameterName()
The name of the parameter used as the target resource for the rate-controlled execution.
|
List<Target> |
getTargets()
A key-value mapping to target resources.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
User-provided idempotency token.
|
void |
setDocumentName(String documentName)
The name of the Automation document to use for this execution.
|
void |
setDocumentVersion(String documentVersion)
The version of the Automation document to use for this execution.
|
void |
setMaxConcurrency(String maxConcurrency)
The maximum number of targets allowed to run this task in parallel.
|
void |
setMaxErrors(String maxErrors)
The number of errors that are allowed before the system stops running the automation on additional targets.
|
void |
setMode(String mode)
The execution mode of the automation.
|
void |
setParameters(Map<String,List<String>> parameters)
A key-value map of execution parameters, which match the declared parameters in the Automation document.
|
void |
setTargetLocations(Collection<TargetLocation> targetLocations)
A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation.
|
void |
setTargetMaps(Collection<Map<String,List<String>>> targetMaps)
A key-value mapping of document parameters to target resources.
|
void |
setTargetParameterName(String targetParameterName)
The name of the parameter used as the target resource for the rate-controlled execution.
|
void |
setTargets(Collection<Target> targets)
A key-value mapping to target resources.
|
String |
toString()
Returns a string representation of this object.
|
StartAutomationExecutionRequest |
withClientToken(String clientToken)
User-provided idempotency token.
|
StartAutomationExecutionRequest |
withDocumentName(String documentName)
The name of the Automation document to use for this execution.
|
StartAutomationExecutionRequest |
withDocumentVersion(String documentVersion)
The version of the Automation document to use for this execution.
|
StartAutomationExecutionRequest |
withMaxConcurrency(String maxConcurrency)
The maximum number of targets allowed to run this task in parallel.
|
StartAutomationExecutionRequest |
withMaxErrors(String maxErrors)
The number of errors that are allowed before the system stops running the automation on additional targets.
|
StartAutomationExecutionRequest |
withMode(ExecutionMode mode)
The execution mode of the automation.
|
StartAutomationExecutionRequest |
withMode(String mode)
The execution mode of the automation.
|
StartAutomationExecutionRequest |
withParameters(Map<String,List<String>> parameters)
A key-value map of execution parameters, which match the declared parameters in the Automation document.
|
StartAutomationExecutionRequest |
withTargetLocations(Collection<TargetLocation> targetLocations)
A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation.
|
StartAutomationExecutionRequest |
withTargetLocations(TargetLocation... targetLocations)
A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation.
|
StartAutomationExecutionRequest |
withTargetMaps(Collection<Map<String,List<String>>> targetMaps)
A key-value mapping of document parameters to target resources.
|
StartAutomationExecutionRequest |
withTargetMaps(Map<String,List<String>>... targetMaps)
A key-value mapping of document parameters to target resources.
|
StartAutomationExecutionRequest |
withTargetParameterName(String targetParameterName)
The name of the parameter used as the target resource for the rate-controlled execution.
|
StartAutomationExecutionRequest |
withTargets(Collection<Target> targets)
A key-value mapping to target resources.
|
StartAutomationExecutionRequest |
withTargets(Target... targets)
A key-value mapping to target resources.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDocumentName(String documentName)
The name of the Automation document to use for this execution.
documentName
- The name of the Automation document to use for this execution.public String getDocumentName()
The name of the Automation document to use for this execution.
public StartAutomationExecutionRequest withDocumentName(String documentName)
The name of the Automation document to use for this execution.
documentName
- The name of the Automation document to use for this execution.public void setDocumentVersion(String documentVersion)
The version of the Automation document to use for this execution.
documentVersion
- The version of the Automation document to use for this execution.public String getDocumentVersion()
The version of the Automation document to use for this execution.
public StartAutomationExecutionRequest withDocumentVersion(String documentVersion)
The version of the Automation document to use for this execution.
documentVersion
- The version of the Automation document to use for this execution.public Map<String,List<String>> getParameters()
A key-value map of execution parameters, which match the declared parameters in the Automation document.
public void setParameters(Map<String,List<String>> parameters)
A key-value map of execution parameters, which match the declared parameters in the Automation document.
parameters
- A key-value map of execution parameters, which match the declared parameters in the Automation document.public StartAutomationExecutionRequest withParameters(Map<String,List<String>> parameters)
A key-value map of execution parameters, which match the declared parameters in the Automation document.
parameters
- A key-value map of execution parameters, which match the declared parameters in the Automation document.public StartAutomationExecutionRequest addParametersEntry(String key, List<String> value)
public StartAutomationExecutionRequest clearParametersEntries()
public void setClientToken(String clientToken)
User-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.
clientToken
- User-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format,
and can't be reused.public String getClientToken()
User-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.
public StartAutomationExecutionRequest withClientToken(String clientToken)
User-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.
clientToken
- User-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format,
and can't be reused.public void setMode(String mode)
The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default mode is Auto.
mode
- The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default
mode is Auto.ExecutionMode
public String getMode()
The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default mode is Auto.
ExecutionMode
public StartAutomationExecutionRequest withMode(String mode)
The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default mode is Auto.
mode
- The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default
mode is Auto.ExecutionMode
public StartAutomationExecutionRequest withMode(ExecutionMode mode)
The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default mode is Auto.
mode
- The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default
mode is Auto.ExecutionMode
public void setTargetParameterName(String targetParameterName)
The name of the parameter used as the target resource for the rate-controlled execution. Required if you specify targets.
targetParameterName
- The name of the parameter used as the target resource for the rate-controlled execution. Required if you
specify targets.public String getTargetParameterName()
The name of the parameter used as the target resource for the rate-controlled execution. Required if you specify targets.
public StartAutomationExecutionRequest withTargetParameterName(String targetParameterName)
The name of the parameter used as the target resource for the rate-controlled execution. Required if you specify targets.
targetParameterName
- The name of the parameter used as the target resource for the rate-controlled execution. Required if you
specify targets.public List<Target> getTargets()
A key-value mapping to target resources. Required if you specify TargetParameterName.
public void setTargets(Collection<Target> targets)
A key-value mapping to target resources. Required if you specify TargetParameterName.
targets
- A key-value mapping to target resources. Required if you specify TargetParameterName.public StartAutomationExecutionRequest withTargets(Target... targets)
A key-value mapping to target resources. Required if you specify TargetParameterName.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- A key-value mapping to target resources. Required if you specify TargetParameterName.public StartAutomationExecutionRequest withTargets(Collection<Target> targets)
A key-value mapping to target resources. Required if you specify TargetParameterName.
targets
- A key-value mapping to target resources. Required if you specify TargetParameterName.public List<Map<String,List<String>>> getTargetMaps()
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps cannot be specified together.
public void setTargetMaps(Collection<Map<String,List<String>>> targetMaps)
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps cannot be specified together.
targetMaps
- A key-value mapping of document parameters to target resources. Both Targets and TargetMaps cannot be
specified together.public StartAutomationExecutionRequest withTargetMaps(Map<String,List<String>>... targetMaps)
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps cannot be specified together.
NOTE: This method appends the values to the existing list (if any). Use
setTargetMaps(java.util.Collection)
or withTargetMaps(java.util.Collection)
if you want to
override the existing values.
targetMaps
- A key-value mapping of document parameters to target resources. Both Targets and TargetMaps cannot be
specified together.public StartAutomationExecutionRequest withTargetMaps(Collection<Map<String,List<String>>> targetMaps)
A key-value mapping of document parameters to target resources. Both Targets and TargetMaps cannot be specified together.
targetMaps
- A key-value mapping of document parameters to target resources. Both Targets and TargetMaps cannot be
specified together.public void setMaxConcurrency(String maxConcurrency)
The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.
maxConcurrency
- The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10,
or a percentage, such as 10%. The default value is 10.public String getMaxConcurrency()
The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.
public StartAutomationExecutionRequest withMaxConcurrency(String maxConcurrency)
The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.
maxConcurrency
- The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10,
or a percentage, such as 10%. The default value is 10.public void setMaxErrors(String maxErrors)
The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.
Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.
maxErrors
- The number of errors that are allowed before the system stops running the automation on additional
targets. You can specify either an absolute number of errors, for example 10, or a percentage of the
target set, for example 10%. If you specify 3, for example, the system stops running the automation when
the fourth error is received. If you specify 0, then the system stops running the automation on additional
targets after the first error result is returned. If you run an automation on 50 resources and set
max-errors to 10%, then the system stops running the automation on additional targets when the sixth error
is received.
Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.
public String getMaxErrors()
The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.
Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.
Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.
public StartAutomationExecutionRequest withMaxErrors(String maxErrors)
The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.
Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.
maxErrors
- The number of errors that are allowed before the system stops running the automation on additional
targets. You can specify either an absolute number of errors, for example 10, or a percentage of the
target set, for example 10%. If you specify 3, for example, the system stops running the automation when
the fourth error is received. If you specify 0, then the system stops running the automation on additional
targets after the first error result is returned. If you run an automation on 50 resources and set
max-errors to 10%, then the system stops running the automation on additional targets when the sixth error
is received.
Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.
public List<TargetLocation> getTargetLocations()
A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation. Use this action to start an Automation in multiple Regions and multiple accounts. For more information, see Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User Guide.
public void setTargetLocations(Collection<TargetLocation> targetLocations)
A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation. Use this action to start an Automation in multiple Regions and multiple accounts. For more information, see Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User Guide.
targetLocations
- A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation. Use
this action to start an Automation in multiple Regions and multiple accounts. For more information, see Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User
Guide.public StartAutomationExecutionRequest withTargetLocations(TargetLocation... targetLocations)
A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation. Use this action to start an Automation in multiple Regions and multiple accounts. For more information, see Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTargetLocations(java.util.Collection)
or withTargetLocations(java.util.Collection)
if you
want to override the existing values.
targetLocations
- A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation. Use
this action to start an Automation in multiple Regions and multiple accounts. For more information, see Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User
Guide.public StartAutomationExecutionRequest withTargetLocations(Collection<TargetLocation> targetLocations)
A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation. Use this action to start an Automation in multiple Regions and multiple accounts. For more information, see Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User Guide.
targetLocations
- A location is a combination of AWS Regions and/or AWS accounts where you want to run the Automation. Use
this action to start an Automation in multiple Regions and multiple accounts. For more information, see Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User
Guide.public String toString()
toString
in class Object
Object.toString()
public StartAutomationExecutionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.