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
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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaRunCommandTarget.builder().When the
Consumercompletes,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:
-