Interface DescribeSpotPriceHistoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<DescribeSpotPriceHistoryRequest.Builder,
,DescribeSpotPriceHistoryRequest> Ec2Request.Builder
,SdkBuilder<DescribeSpotPriceHistoryRequest.Builder,
,DescribeSpotPriceHistoryRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
DescribeSpotPriceHistoryRequest
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) Filters the results by the specified Availability Zone.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.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).filters
(Collection<Filter> filters) The filters.filters
(Consumer<Filter.Builder>... filters) The filters.The filters.instanceTypes
(Collection<InstanceType> instanceTypes) Filters the results by the specified instance types.instanceTypes
(InstanceType... instanceTypes) Filters the results by the specified instance types.instanceTypesWithStrings
(String... instanceTypes) Filters the results by the specified instance types.instanceTypesWithStrings
(Collection<String> instanceTypes) Filters the results by the specified instance types.maxResults
(Integer maxResults) The maximum number of items to return for this request.The token returned from a previous paginated request.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.productDescriptions
(String... productDescriptions) Filters the results by the specified basic product descriptions.productDescriptions
(Collection<String> productDescriptions) Filters the results by the specified basic product descriptions.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).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, sdkFields
-
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.
Filter.Builder
avoiding the need to create one manually viaFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilters(List<Filter>)
.- Parameters:
filters
- 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:
-
-
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 isUnauthorizedOperation
.- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- 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
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
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
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
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
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 interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
DescribeSpotPriceHistoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-