Interface DescribeHostReservationOfferingsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DescribeHostReservationOfferingsRequest.Builder,DescribeHostReservationOfferingsRequest>,Ec2Request.Builder,SdkBuilder<DescribeHostReservationOfferingsRequest.Builder,DescribeHostReservationOfferingsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- DescribeHostReservationOfferingsRequest
@Mutable @NotThreadSafe public static interface DescribeHostReservationOfferingsRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<DescribeHostReservationOfferingsRequest.Builder,DescribeHostReservationOfferingsRequest>
-
-
Method Summary
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
filter
DescribeHostReservationOfferingsRequest.Builder filter(Collection<Filter> 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
DescribeHostReservationOfferingsRequest.Builder filter(Filter... 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
DescribeHostReservationOfferingsRequest.Builder filter(Consumer<Filter.Builder>... filter)
The filters.
-
instance-family- The instance family of the offering (for example,m4). -
payment-option- The payment option (NoUpfront|PartialUpfront|AllUpfront).
Filter.Builderavoiding the need to create one manually viaFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#filter(List.) - 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:
#filter(java.util.Collection)
-
-
maxDuration
DescribeHostReservationOfferingsRequest.Builder maxDuration(Integer 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
DescribeHostReservationOfferingsRequest.Builder maxResults(Integer 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
nextTokenvalue. This value can be between 5 and 500. IfmaxResultsis 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 returnednextTokenvalue. This value can be between 5 and 500. IfmaxResultsis 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
DescribeHostReservationOfferingsRequest.Builder minDuration(Integer 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
DescribeHostReservationOfferingsRequest.Builder nextToken(String 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
DescribeHostReservationOfferingsRequest.Builder offeringId(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
DescribeHostReservationOfferingsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-