Interface TargetLocation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetLocation.Builder,TargetLocation>,SdkBuilder<TargetLocation.Builder,TargetLocation>,SdkPojo
- Enclosing class:
- TargetLocation
public static interface TargetLocation.Builder extends SdkPojo, CopyableBuilder<TargetLocation.Builder,TargetLocation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TargetLocation.Builderaccounts(String... accounts)The Amazon Web Services accounts targeted by the current Automation execution.TargetLocation.Builderaccounts(Collection<String> accounts)The Amazon Web Services accounts targeted by the current Automation execution.TargetLocation.BuilderexcludeAccounts(String... excludeAccounts)Amazon Web Services accounts or organizational units to exclude as expanded targets.TargetLocation.BuilderexcludeAccounts(Collection<String> excludeAccounts)Amazon Web Services accounts or organizational units to exclude as expanded targets.TargetLocation.BuilderexecutionRoleName(String executionRoleName)The Automation execution role used by the currently running Automation.TargetLocation.BuilderincludeChildOrganizationUnits(Boolean includeChildOrganizationUnits)Indicates whether to include child organizational units (OUs) that are children of the targeted OUs.TargetLocation.Builderregions(String... regions)The Amazon Web Services Regions targeted by the current Automation execution.TargetLocation.Builderregions(Collection<String> regions)The Amazon Web Services Regions targeted by the current Automation execution.default TargetLocation.BuildertargetLocationAlarmConfiguration(Consumer<AlarmConfiguration.Builder> targetLocationAlarmConfiguration)Sets the value of the TargetLocationAlarmConfiguration property for this object.TargetLocation.BuildertargetLocationAlarmConfiguration(AlarmConfiguration targetLocationAlarmConfiguration)Sets the value of the TargetLocationAlarmConfiguration property for this object.TargetLocation.BuildertargetLocationMaxConcurrency(String targetLocationMaxConcurrency)The maximum number of Amazon Web Services Regions and Amazon Web Services accounts allowed to run the Automation concurrently.TargetLocation.BuildertargetLocationMaxErrors(String targetLocationMaxErrors)The maximum number of errors allowed before the system stops queueing additional Automation executions for the currently running Automation.TargetLocation.Buildertargets(Collection<Target> targets)A list of key-value mappings to target resources.TargetLocation.Buildertargets(Consumer<Target.Builder>... targets)A list of key-value mappings to target resources.TargetLocation.Buildertargets(Target... targets)A list of key-value mappings to target resources.TargetLocation.BuildertargetsMaxConcurrency(String targetsMaxConcurrency)The maximum number of targets allowed to run this task in parallel.TargetLocation.BuildertargetsMaxErrors(String targetsMaxErrors)The maximum number of errors that are allowed before the system stops running the automation on additional targets.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
accounts
TargetLocation.Builder accounts(Collection<String> accounts)
The Amazon Web Services accounts targeted by the current Automation execution.
- Parameters:
accounts- The Amazon Web Services accounts targeted by the current Automation execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accounts
TargetLocation.Builder accounts(String... accounts)
The Amazon Web Services accounts targeted by the current Automation execution.
- Parameters:
accounts- The Amazon Web Services accounts targeted by the current Automation execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regions
TargetLocation.Builder regions(Collection<String> regions)
The Amazon Web Services Regions targeted by the current Automation execution.
- Parameters:
regions- The Amazon Web Services Regions targeted by the current Automation execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regions
TargetLocation.Builder regions(String... regions)
The Amazon Web Services Regions targeted by the current Automation execution.
- Parameters:
regions- The Amazon Web Services Regions targeted by the current Automation execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetLocationMaxConcurrency
TargetLocation.Builder targetLocationMaxConcurrency(String targetLocationMaxConcurrency)
The maximum number of Amazon Web Services Regions and Amazon Web Services accounts allowed to run the Automation concurrently.
- Parameters:
targetLocationMaxConcurrency- The maximum number of Amazon Web Services Regions and Amazon Web Services accounts allowed to run the Automation concurrently.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetLocationMaxErrors
TargetLocation.Builder targetLocationMaxErrors(String targetLocationMaxErrors)
The maximum number of errors allowed before the system stops queueing additional Automation executions for the currently running Automation.
- Parameters:
targetLocationMaxErrors- The maximum number of errors allowed before the system stops queueing additional Automation executions for the currently running Automation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleName
TargetLocation.Builder executionRoleName(String executionRoleName)
The Automation execution role used by the currently running Automation. If not specified, the default value is
AWS-SystemsManager-AutomationExecutionRole.- Parameters:
executionRoleName- The Automation execution role used by the currently running Automation. If not specified, the default value isAWS-SystemsManager-AutomationExecutionRole.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetLocationAlarmConfiguration
TargetLocation.Builder targetLocationAlarmConfiguration(AlarmConfiguration targetLocationAlarmConfiguration)
Sets the value of the TargetLocationAlarmConfiguration property for this object.- Parameters:
targetLocationAlarmConfiguration- The new value for the TargetLocationAlarmConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetLocationAlarmConfiguration
default TargetLocation.Builder targetLocationAlarmConfiguration(Consumer<AlarmConfiguration.Builder> targetLocationAlarmConfiguration)
Sets the value of the TargetLocationAlarmConfiguration property for this object. This is a convenience method that creates an instance of theAlarmConfiguration.Builderavoiding the need to create one manually viaAlarmConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargetLocationAlarmConfiguration(AlarmConfiguration).- Parameters:
targetLocationAlarmConfiguration- a consumer that will call methods onAlarmConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
targetLocationAlarmConfiguration(AlarmConfiguration)
-
includeChildOrganizationUnits
TargetLocation.Builder includeChildOrganizationUnits(Boolean includeChildOrganizationUnits)
Indicates whether to include child organizational units (OUs) that are children of the targeted OUs. The default is
false.- Parameters:
includeChildOrganizationUnits- Indicates whether to include child organizational units (OUs) that are children of the targeted OUs. The default isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeAccounts
TargetLocation.Builder excludeAccounts(Collection<String> excludeAccounts)
Amazon Web Services accounts or organizational units to exclude as expanded targets.
- Parameters:
excludeAccounts- Amazon Web Services accounts or organizational units to exclude as expanded targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeAccounts
TargetLocation.Builder excludeAccounts(String... excludeAccounts)
Amazon Web Services accounts or organizational units to exclude as expanded targets.
- Parameters:
excludeAccounts- Amazon Web Services accounts or organizational units to exclude as expanded targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
TargetLocation.Builder targets(Collection<Target> targets)
A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for
TargetParameterName.This
Targetsparameter takes precedence over theStartAutomationExecution:Targetsparameter if both are supplied.- Parameters:
targets- A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value forTargetParameterName.This
Targetsparameter takes precedence over theStartAutomationExecution:Targetsparameter if both are supplied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
TargetLocation.Builder targets(Target... targets)
A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for
TargetParameterName.This
Targetsparameter takes precedence over theStartAutomationExecution:Targetsparameter if both are supplied.- Parameters:
targets- A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value forTargetParameterName.This
Targetsparameter takes precedence over theStartAutomationExecution:Targetsparameter if both are supplied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
TargetLocation.Builder targets(Consumer<Target.Builder>... targets)
A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for
TargetParameterName.This
This is a convenience method that creates an instance of theTargetsparameter takes precedence over theStartAutomationExecution:Targetsparameter if both are supplied.Target.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#targets(List.) - Parameters:
targets- a consumer that will call methods onTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#targets(java.util.Collection)
-
targetsMaxConcurrency
TargetLocation.Builder targetsMaxConcurrency(String targetsMaxConcurrency)
The maximum number of targets allowed to run this task in parallel. This
TargetsMaxConcurrencytakes precedence over theStartAutomationExecution:MaxConcurrencyparameter if both are supplied.- Parameters:
targetsMaxConcurrency- The maximum number of targets allowed to run this task in parallel. ThisTargetsMaxConcurrencytakes precedence over theStartAutomationExecution:MaxConcurrencyparameter if both are supplied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetsMaxErrors
TargetLocation.Builder targetsMaxErrors(String targetsMaxErrors)
The maximum number of errors that are allowed before the system stops running the automation on additional targets. This
TargetsMaxErrorsparameter takes precedence over theStartAutomationExecution:MaxErrorsparameter if both are supplied.- Parameters:
targetsMaxErrors- The maximum number of errors that are allowed before the system stops running the automation on additional targets. ThisTargetsMaxErrorsparameter takes precedence over theStartAutomationExecution:MaxErrorsparameter if both are supplied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-