Interface RunCommandParameters.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RunCommandParameters.Builder,RunCommandParameters>,SdkBuilder<RunCommandParameters.Builder,RunCommandParameters>,SdkPojo
- Enclosing class:
- RunCommandParameters
public static interface RunCommandParameters.Builder extends SdkPojo, CopyableBuilder<RunCommandParameters.Builder,RunCommandParameters>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RunCommandParameters.BuilderrunCommandTargets(Collection<RunCommandTarget> runCommandTargets)Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.RunCommandParameters.BuilderrunCommandTargets(Consumer<RunCommandTarget.Builder>... runCommandTargets)Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.RunCommandParameters.BuilderrunCommandTargets(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, sdkFields
-
-
-
-
Method Detail
-
runCommandTargets
RunCommandParameters.Builder runCommandTargets(Collection<RunCommandTarget> 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(RunCommandTarget... 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.Builderavoiding the need to create one manually viaRunCommandTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#runCommandTargets(List.) - 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:
#runCommandTargets(java.util.Collection)
-
-