Interface DescribeHostReservationOfferingsRequest.Builder

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

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

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

      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

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.