Interface DescribeHostReservationOfferingsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<DescribeHostReservationOfferingsRequest.Builder,
,DescribeHostReservationOfferingsRequest> Ec2Request.Builder
,SdkBuilder<DescribeHostReservationOfferingsRequest.Builder,
,DescribeHostReservationOfferingsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
DescribeHostReservationOfferingsRequest
-
Method Summary
Modifier and TypeMethodDescriptionfilter
(Collection<Filter> filter) The filters.filter
(Consumer<Filter.Builder>... filter) The filters.The filters.maxDuration
(Integer maxDuration) This is the maximum duration of the reservation to purchase, specified in seconds.maxResults
(Integer maxResults) The maximum number of results to return for the request in a single page.minDuration
(Integer minDuration) This is the minimum duration of the reservation you'd like to purchase, specified in seconds.The token to use to retrieve the next page of results.offeringId
(String offeringId) The ID of the reservation offering.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.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
filter
The filters.
-
instance-family
- The instance family of the offering (for example,m4
). -
payment-option
- The payment option (NoUpfront
|PartialUpfront
|AllUpfront
).
- Parameters:
filter
- The filters.-
instance-family
- The instance family of the offering (for example,m4
). -
payment-option
- The payment option (NoUpfront
|PartialUpfront
|AllUpfront
).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filter
The filters.
-
instance-family
- The instance family of the offering (for example,m4
). -
payment-option
- The payment option (NoUpfront
|PartialUpfront
|AllUpfront
).
- Parameters:
filter
- The filters.-
instance-family
- The instance family of the offering (for example,m4
). -
payment-option
- The payment option (NoUpfront
|PartialUpfront
|AllUpfront
).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filter
The filters.
-
instance-family
- The instance family of the offering (for example,m4
). -
payment-option
- The payment option (NoUpfront
|PartialUpfront
|AllUpfront
).
Filter.Builder
avoiding the need to create one manually viaFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilter(List<Filter>)
.- Parameters:
filter
- 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:
-
-
maxDuration
This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for three years.
- Parameters:
maxDuration
- This is the maximum duration of the reservation to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 94608000 for three years.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned
nextToken
value. This value can be between 5 and 500. IfmaxResults
is given a larger value than 500, you receive an error.- Parameters:
maxResults
- The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returnednextToken
value. This value can be between 5 and 500. IfmaxResults
is given a larger value than 500, you receive an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minDuration
This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 31536000 for one year.
- Parameters:
minDuration
- This is the minimum duration of the reservation you'd like to purchase, specified in seconds. Reservations are available in one-year and three-year terms. The number of seconds specified must be the number of seconds in a year (365x24x60x60) times one of the supported durations (1 or 3). For example, specify 31536000 for one year.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token to use to retrieve the next page of results.
- Parameters:
nextToken
- The token to use to retrieve the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringId
The ID of the reservation offering.
- Parameters:
offeringId
- The ID of the reservation offering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
DescribeHostReservationOfferingsRequest.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
DescribeHostReservationOfferingsRequest.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.
-