Interface DescribeHostReservationOfferingsRequest.Builder

    • 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).

        This is a convenience method that creates an instance of the Filter.Builder avoiding the need to create one manually via Filter.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #filter(List).

        Parameters:
        filter - a consumer that will call methods on Filter.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 nextToken value. This value can be between 5 and 500. If maxResults 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 returned nextToken value. This value can be between 5 and 500. If maxResults 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

        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.