Interface ListCapacityReservationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListCapacityReservationsRequest.Builder,,ListCapacityReservationsRequest> SageMakerRequest.Builder,SdkBuilder<ListCapacityReservationsRequest.Builder,,ListCapacityReservationsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListCapacityReservationsRequest
-
Method Summary
Modifier and TypeMethodDescriptionfilters(Collection<CapacityReservationFilter> filters) A filter that returns only the reservations that match it.filters(Consumer<CapacityReservationFilter.Builder>... filters) A filter that returns only the reservations that match it.filters(CapacityReservationFilter... filters) A filter that returns only the reservations that match it.maxResults(Integer maxResults) The maximum number of results to return in the response.If the previous response was truncated, the response includes aNextTokenvalue.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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
maxResults
The maximum number of results to return in the response. If more results are available, the response includes a
NextTokenvalue.- Parameters:
maxResults- The maximum number of results to return in the response. If more results are available, the response includes aNextTokenvalue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
If the previous response was truncated, the response includes a
NextTokenvalue. To retrieve the next set of results, use that token in your next request.- Parameters:
nextToken- If the previous response was truncated, the response includes aNextTokenvalue. To retrieve the next set of results, use that token in your next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
A filter that returns only the reservations that match it. You can specify one filter. If you don't specify a filter, the response includes all reservations in your account.
- Parameters:
filters- A filter that returns only the reservations that match it. You can specify one filter. If you don't specify a filter, the response includes all reservations in your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
A filter that returns only the reservations that match it. You can specify one filter. If you don't specify a filter, the response includes all reservations in your account.
- Parameters:
filters- A filter that returns only the reservations that match it. You can specify one filter. If you don't specify a filter, the response includes all reservations in your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListCapacityReservationsRequest.Builder filters(Consumer<CapacityReservationFilter.Builder>... filters) A filter that returns only the reservations that match it. You can specify one filter. If you don't specify a filter, the response includes all reservations in your account.
This is a convenience method that creates an instance of theCapacityReservationFilter.Builderavoiding the need to create one manually viaCapacityReservationFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(List<CapacityReservationFilter>).- Parameters:
filters- a consumer that will call methods onCapacityReservationFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListCapacityReservationsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListCapacityReservationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-