Interface DescribeCommandsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeCommandsResponse.Builder,DescribeCommandsResponse>,OpsWorksResponse.Builder,SdkBuilder<DescribeCommandsResponse.Builder,DescribeCommandsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeCommandsResponse
public static interface DescribeCommandsResponse.Builder extends OpsWorksResponse.Builder, SdkPojo, CopyableBuilder<DescribeCommandsResponse.Builder,DescribeCommandsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeCommandsResponse.Buildercommands(Collection<Command> commands)An array ofCommandobjects that describe each of the specified commands.DescribeCommandsResponse.Buildercommands(Consumer<Command.Builder>... commands)An array ofCommandobjects that describe each of the specified commands.DescribeCommandsResponse.Buildercommands(Command... commands)An array ofCommandobjects that describe each of the specified commands.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.opsworks.model.OpsWorksResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
commands
DescribeCommandsResponse.Builder commands(Collection<Command> commands)
An array of
Commandobjects that describe each of the specified commands.- Parameters:
commands- An array ofCommandobjects that describe each of the specified commands.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commands
DescribeCommandsResponse.Builder commands(Command... commands)
An array of
Commandobjects that describe each of the specified commands.- Parameters:
commands- An array ofCommandobjects that describe each of the specified commands.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commands
DescribeCommandsResponse.Builder commands(Consumer<Command.Builder>... commands)
An array of
This is a convenience method that creates an instance of theCommandobjects that describe each of the specified commands.Command.Builderavoiding the need to create one manually viaCommand.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#commands(List.) - Parameters:
commands- a consumer that will call methods onCommand.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#commands(java.util.Collection)
-
-