Interface DescribeDbCapacityReservationsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DescribeDbCapacityReservationsRequest.Builder,,DescribeDbCapacityReservationsRequest> RdsRequest.Builder,SdkBuilder<DescribeDbCapacityReservationsRequest.Builder,,DescribeDbCapacityReservationsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DescribeDbCapacityReservationsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondbCapacityReservationIdentifier(String dbCapacityReservationIdentifier) The identifier or the name of the DB capacity reservation to describe.filters(Collection<Filter> filters) A filter that specifies which DB capacity reservations to describe.filters(Consumer<Filter.Builder>... filters) A filter that specifies which DB capacity reservations to describe.A filter that specifies which DB capacity reservations to describe.An optional pagination token provided by a previousDescribeDBCapacityReservationsrequest.maxRecords(Integer maxRecords) The maximum number of records to include in the response.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.rds.model.RdsRequest.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
-
dbCapacityReservationIdentifier
DescribeDbCapacityReservationsRequest.Builder dbCapacityReservationIdentifier(String dbCapacityReservationIdentifier) The identifier or the name of the DB capacity reservation to describe. You can specify the identifier, which has the prefix
dbcr-, or the reservation name.- Parameters:
dbCapacityReservationIdentifier- The identifier or the name of the DB capacity reservation to describe. You can specify the identifier, which has the prefixdbcr-, or the reservation name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
marker
An optional pagination token provided by a previous
DescribeDBCapacityReservationsrequest. If this parameter is specified, the response includes only records beyond the marker, up to the value specified byMaxRecords.- Parameters:
marker- An optional pagination token provided by a previousDescribeDBCapacityReservationsrequest. If this parameter is specified, the response includes only records beyond the marker, up to the value specified byMaxRecords.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxRecords
The maximum number of records to include in the response. If more records exist than the specified
MaxRecordsvalue, a pagination token called a marker is included in the response so that you can retrieve the remaining results.Default: 100
Constraints:
-
Must be a minimum of 20.
-
Can't exceed 100.
- Parameters:
maxRecords- The maximum number of records to include in the response. If more records exist than the specifiedMaxRecordsvalue, a pagination token called a marker is included in the response so that you can retrieve the remaining results.Default: 100
Constraints:
-
Must be a minimum of 20.
-
Can't exceed 100.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
A filter that specifies which DB capacity reservations to describe.
Supported filters:
-
db-capacity-reservation-name- Accepts DB capacity reservation names. The response includes only the reservations that these names identify. Use this filter to describe several reservations by name in one request. -
state- Accepts reservation states. The response includes only the reservations in these states. -
engine- Accepts database engine names. The response includes only the reservations that reserve capacity for these engines. -
db-instance-class- Accepts DB instance classes. The response includes only the reservations that reserve capacity for these DB instance classes. -
availability-zone- Accepts Availability Zone names. The response includes only the reservations that cover these Availability Zones.
When you specify more than one value for a filter, the response includes the reservations that match any of those values. When you specify more than one filter, the response includes only the reservations that match every filter.
Amazon RDS rejects the request when a filter name isn't in this list, or when a filter specifies no values.
The
statefilter doesn't acceptexpired. To find an expired reservation, compareEndDateagainst the current date and time.- Parameters:
filters- A filter that specifies which DB capacity reservations to describe.Supported filters:
-
db-capacity-reservation-name- Accepts DB capacity reservation names. The response includes only the reservations that these names identify. Use this filter to describe several reservations by name in one request. -
state- Accepts reservation states. The response includes only the reservations in these states. -
engine- Accepts database engine names. The response includes only the reservations that reserve capacity for these engines. -
db-instance-class- Accepts DB instance classes. The response includes only the reservations that reserve capacity for these DB instance classes. -
availability-zone- Accepts Availability Zone names. The response includes only the reservations that cover these Availability Zones.
When you specify more than one value for a filter, the response includes the reservations that match any of those values. When you specify more than one filter, the response includes only the reservations that match every filter.
Amazon RDS rejects the request when a filter name isn't in this list, or when a filter specifies no values.
The
statefilter doesn't acceptexpired. To find an expired reservation, compareEndDateagainst the current date and time.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
A filter that specifies which DB capacity reservations to describe.
Supported filters:
-
db-capacity-reservation-name- Accepts DB capacity reservation names. The response includes only the reservations that these names identify. Use this filter to describe several reservations by name in one request. -
state- Accepts reservation states. The response includes only the reservations in these states. -
engine- Accepts database engine names. The response includes only the reservations that reserve capacity for these engines. -
db-instance-class- Accepts DB instance classes. The response includes only the reservations that reserve capacity for these DB instance classes. -
availability-zone- Accepts Availability Zone names. The response includes only the reservations that cover these Availability Zones.
When you specify more than one value for a filter, the response includes the reservations that match any of those values. When you specify more than one filter, the response includes only the reservations that match every filter.
Amazon RDS rejects the request when a filter name isn't in this list, or when a filter specifies no values.
The
statefilter doesn't acceptexpired. To find an expired reservation, compareEndDateagainst the current date and time.- Parameters:
filters- A filter that specifies which DB capacity reservations to describe.Supported filters:
-
db-capacity-reservation-name- Accepts DB capacity reservation names. The response includes only the reservations that these names identify. Use this filter to describe several reservations by name in one request. -
state- Accepts reservation states. The response includes only the reservations in these states. -
engine- Accepts database engine names. The response includes only the reservations that reserve capacity for these engines. -
db-instance-class- Accepts DB instance classes. The response includes only the reservations that reserve capacity for these DB instance classes. -
availability-zone- Accepts Availability Zone names. The response includes only the reservations that cover these Availability Zones.
When you specify more than one value for a filter, the response includes the reservations that match any of those values. When you specify more than one filter, the response includes only the reservations that match every filter.
Amazon RDS rejects the request when a filter name isn't in this list, or when a filter specifies no values.
The
statefilter doesn't acceptexpired. To find an expired reservation, compareEndDateagainst the current date and time.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
A filter that specifies which DB capacity reservations to describe.
Supported filters:
-
db-capacity-reservation-name- Accepts DB capacity reservation names. The response includes only the reservations that these names identify. Use this filter to describe several reservations by name in one request. -
state- Accepts reservation states. The response includes only the reservations in these states. -
engine- Accepts database engine names. The response includes only the reservations that reserve capacity for these engines. -
db-instance-class- Accepts DB instance classes. The response includes only the reservations that reserve capacity for these DB instance classes. -
availability-zone- Accepts Availability Zone names. The response includes only the reservations that cover these Availability Zones.
When you specify more than one value for a filter, the response includes the reservations that match any of those values. When you specify more than one filter, the response includes only the reservations that match every filter.
Amazon RDS rejects the request when a filter name isn't in this list, or when a filter specifies no values.
This is a convenience method that creates an instance of theThe
statefilter doesn't acceptexpired. To find an expired reservation, compareEndDateagainst the current date and time.Filter.Builderavoiding the need to create one manually viaFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(List<Filter>).- Parameters:
filters- a consumer that will call methods onFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
DescribeDbCapacityReservationsRequest.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
DescribeDbCapacityReservationsRequest.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.
-