Interface ListCommandsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListCommandsRequest.Builder,
,ListCommandsRequest> SdkBuilder<ListCommandsRequest.Builder,
,ListCommandsRequest> SdkPojo
,SdkRequest.Builder
,SsmRequest.Builder
- Enclosing class:
ListCommandsRequest
-
Method Summary
Modifier and TypeMethodDescription(Optional) If provided, lists only the specified command.filters
(Collection<CommandFilter> filters) (Optional) One or more filters.filters
(Consumer<CommandFilter.Builder>... filters) (Optional) One or more filters.filters
(CommandFilter... filters) (Optional) One or more filters.instanceId
(String instanceId) (Optional) Lists commands issued against this managed node ID.maxResults
(Integer maxResults) (Optional) The maximum number of items to return for this call.(Optional) The token for the next set of items to return.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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.services.ssm.model.SsmRequest.Builder
build
-
Method Details
-
commandId
(Optional) If provided, lists only the specified command.
- Parameters:
commandId
- (Optional) If provided, lists only the specified command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
(Optional) Lists commands issued against this managed node ID.
You can't specify a managed node ID in the same command that you specify
Status
=Pending
. This is because the command hasn't reached the managed node yet.- Parameters:
instanceId
- (Optional) Lists commands issued against this managed node ID.You can't specify a managed node ID in the same command that you specify
Status
=Pending
. This is because the command hasn't reached the managed node yet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
(Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
- Parameters:
maxResults
- (Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
- Parameters:
nextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
(Optional) One or more filters. Use a filter to return a more specific list of results.
- Parameters:
filters
- (Optional) One or more filters. Use a filter to return a more specific list of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
(Optional) One or more filters. Use a filter to return a more specific list of results.
- Parameters:
filters
- (Optional) One or more filters. Use a filter to return a more specific list of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
(Optional) One or more filters. Use a filter to return a more specific list of results.
This is a convenience method that creates an instance of theCommandFilter.Builder
avoiding the need to create one manually viaCommandFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<CommandFilter>)
.- Parameters:
filters
- a consumer that will call methods onCommandFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListCommandsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListCommandsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-