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
Modifier and TypeMethodDescriptioncommands(Collection<Command> commands) An array ofCommandobjects that describe each of the specified commands.commands(Consumer<Command.Builder>... commands) An array ofCommandobjects that describe each of the specified commands.An array ofCommandobjects that describe each of the specified commands.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opsworks.model.OpsWorksResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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 tocommands(List<Command>).- 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:
-