Interface DescribeCommandsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeCommandsResponse.Builder,
,DescribeCommandsResponse> OpsWorksResponse.Builder
,SdkBuilder<DescribeCommandsResponse.Builder,
,DescribeCommandsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeCommandsResponse
@Mutable
@NotThreadSafe
public static interface DescribeCommandsResponse.Builder
extends OpsWorksResponse.Builder, SdkPojo, CopyableBuilder<DescribeCommandsResponse.Builder,DescribeCommandsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncommands
(Collection<Command> commands) An array ofCommand
objects that describe each of the specified commands.commands
(Consumer<Command.Builder>... commands) An array ofCommand
objects that describe each of the specified commands.An array ofCommand
objects 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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
commands
An array of
Command
objects that describe each of the specified commands.- Parameters:
commands
- An array ofCommand
objects 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
Command
objects that describe each of the specified commands.- Parameters:
commands
- An array ofCommand
objects 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 theCommand
objects that describe each of the specified commands.Command.Builder
avoiding the need to create one manually viaCommand.builder()
.When the
Consumer
completes,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:
-