Interface RunCommandParameters.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RunCommandParameters.Builder,
,RunCommandParameters> SdkBuilder<RunCommandParameters.Builder,
,RunCommandParameters> SdkPojo
- Enclosing class:
RunCommandParameters
@Mutable
@NotThreadSafe
public static interface RunCommandParameters.Builder
extends SdkPojo, CopyableBuilder<RunCommandParameters.Builder,RunCommandParameters>
-
Method Summary
Modifier and TypeMethodDescriptionrunCommandTargets
(Collection<RunCommandTarget> runCommandTargets) Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.runCommandTargets
(Consumer<RunCommandTarget.Builder>... runCommandTargets) Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.runCommandTargets
(RunCommandTarget... runCommandTargets) Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.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 Details
-
runCommandTargets
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
- Parameters:
runCommandTargets
- Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runCommandTargets
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
- Parameters:
runCommandTargets
- Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runCommandTargets
RunCommandParameters.Builder runCommandTargets(Consumer<RunCommandTarget.Builder>... runCommandTargets) Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
This is a convenience method that creates an instance of theRunCommandTarget.Builder
avoiding the need to create one manually viaRunCommandTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torunCommandTargets(List<RunCommandTarget>)
.- Parameters:
runCommandTargets
- a consumer that will call methods onRunCommandTarget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-