Interface DescribeSpotPriceHistoryRequest.Builder

    • Method Detail

      • filters

        DescribeSpotPriceHistoryRequest.Builder filters​(Collection<Filter> 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

        DescribeSpotPriceHistoryRequest.Builder filters​(Filter... 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

        DescribeSpotPriceHistoryRequest.Builder filters​(Consumer<Filter.Builder>... 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).

        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:
        #filters(java.util.Collection)
      • 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

        DescribeSpotPriceHistoryRequest.Builder dryRun​(Boolean 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

        DescribeSpotPriceHistoryRequest.Builder endTime​(Instant 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

        DescribeSpotPriceHistoryRequest.Builder instanceTypes​(Collection<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.
      • 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

        DescribeSpotPriceHistoryRequest.Builder maxResults​(Integer 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

        DescribeSpotPriceHistoryRequest.Builder nextToken​(String 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

        DescribeSpotPriceHistoryRequest.Builder startTime​(Instant 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.