Interface ListCommandsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListCommandsResponse.Builder,
,ListCommandsResponse> IotResponse.Builder
,SdkBuilder<ListCommandsResponse.Builder,
,ListCommandsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListCommandsResponse
@Mutable
@NotThreadSafe
public static interface ListCommandsResponse.Builder
extends IotResponse.Builder, SdkPojo, CopyableBuilder<ListCommandsResponse.Builder,ListCommandsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncommands
(Collection<CommandSummary> commands) The list of commands.commands
(Consumer<CommandSummary.Builder>... commands) The list of commands.commands
(CommandSummary... commands) The list of commands.The token to use to get the next set of results, ornull
if there are no additional results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iot.model.IotResponse.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
The list of commands.
- Parameters:
commands
- The list of commands.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commands
The list of commands.
- Parameters:
commands
- The list of commands.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commands
The list of commands.
This is a convenience method that creates an instance of theCommandSummary.Builder
avoiding the need to create one manually viaCommandSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocommands(List<CommandSummary>)
.- Parameters:
commands
- a consumer that will call methods onCommandSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to get the next set of results, or
null
if there are no additional results.- Parameters:
nextToken
- The token to use to get the next set of results, ornull
if there are no additional results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-