Interface DescribeSpotPriceHistoryRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<DescribeSpotPriceHistoryRequest.Builder,DescribeSpotPriceHistoryRequest>, Ec2Request.Builder, SdkBuilder<DescribeSpotPriceHistoryRequest.Builder,DescribeSpotPriceHistoryRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
DescribeSpotPriceHistoryRequest

public static interface DescribeSpotPriceHistoryRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<DescribeSpotPriceHistoryRequest.Builder,DescribeSpotPriceHistoryRequest>
  • Method Details

    • filters

      The filters.

      • availability-zone - The Availability Zone for which prices should be returned.

      • instance-type - The type of instance (for example, m3.medium).

      • product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

      • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

      • timestamp - The time stamp of the Spot price history, in UTC format (for example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

      Parameters:
      filters - The filters.

      • availability-zone - The Availability Zone for which prices should be returned.

      • instance-type - The type of instance (for example, m3.medium).

      • product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

      • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

      • timestamp - The time stamp of the Spot price history, in UTC format (for example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      The filters.

      • availability-zone - The Availability Zone for which prices should be returned.

      • instance-type - The type of instance (for example, m3.medium).

      • product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

      • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

      • timestamp - The time stamp of the Spot price history, in UTC format (for example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

      Parameters:
      filters - The filters.

      • availability-zone - The Availability Zone for which prices should be returned.

      • instance-type - The type of instance (for example, m3.medium).

      • product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

      • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

      • timestamp - The time stamp of the Spot price history, in UTC format (for example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      The filters.

      • availability-zone - The Availability Zone for which prices should be returned.

      • instance-type - The type of instance (for example, m3.medium).

      • product-description - The product description for the Spot price (Linux/UNIX | Red Hat Enterprise Linux | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | Red Hat Enterprise Linux (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)).

      • spot-price - The Spot price. The value must match exactly (or use wildcards; greater than or less than comparison is not supported).

      • timestamp - The time stamp of the Spot price history, in UTC format (for example, ddd MMM dd HH:mm:ss UTC YYYY). You can use wildcards (* and ?). Greater than or less than comparison is not supported.

      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 filters(List<Filter>).

      Parameters:
      filters - 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:
    • availabilityZone

      DescribeSpotPriceHistoryRequest.Builder availabilityZone(String availabilityZone)

      Filters the results by the specified Availability Zone.

      Parameters:
      availabilityZone - Filters the results by the specified Availability Zone.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dryRun

      Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

      Parameters:
      dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Parameters:
      endTime - The date and time, up to the current date, from which to stop retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceTypesWithStrings

      DescribeSpotPriceHistoryRequest.Builder instanceTypesWithStrings(Collection<String> instanceTypes)

      Filters the results by the specified instance types.

      Parameters:
      instanceTypes - Filters the results by the specified instance types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceTypesWithStrings

      DescribeSpotPriceHistoryRequest.Builder instanceTypesWithStrings(String... instanceTypes)

      Filters the results by the specified instance types.

      Parameters:
      instanceTypes - Filters the results by the specified instance types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceTypes

      Filters the results by the specified instance types.

      Parameters:
      instanceTypes - Filters the results by the specified instance types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceTypes

      DescribeSpotPriceHistoryRequest.Builder instanceTypes(InstanceType... instanceTypes)

      Filters the results by the specified instance types.

      Parameters:
      instanceTypes - Filters the results by the specified instance types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

      Parameters:
      maxResults - The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

      Parameters:
      nextToken - The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productDescriptions

      DescribeSpotPriceHistoryRequest.Builder productDescriptions(Collection<String> productDescriptions)

      Filters the results by the specified basic product descriptions.

      Parameters:
      productDescriptions - Filters the results by the specified basic product descriptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productDescriptions

      DescribeSpotPriceHistoryRequest.Builder productDescriptions(String... productDescriptions)

      Filters the results by the specified basic product descriptions.

      Parameters:
      productDescriptions - Filters the results by the specified basic product descriptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTime

      The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Parameters:
      startTime - The date and time, up to the past 90 days, from which to start retrieving the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      DescribeSpotPriceHistoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration 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.