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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeSpotPriceHistoryRequest.Builder
availabilityZone(String availabilityZone)
Filters the results by the specified Availability Zone.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.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).DescribeSpotPriceHistoryRequest.Builder
filters(Collection<Filter> filters)
The filters.DescribeSpotPriceHistoryRequest.Builder
filters(Consumer<Filter.Builder>... filters)
The filters.DescribeSpotPriceHistoryRequest.Builder
filters(Filter... filters)
The filters.DescribeSpotPriceHistoryRequest.Builder
instanceTypes(Collection<InstanceType> instanceTypes)
Filters the results by the specified instance types.DescribeSpotPriceHistoryRequest.Builder
instanceTypes(InstanceType... instanceTypes)
Filters the results by the specified instance types.DescribeSpotPriceHistoryRequest.Builder
instanceTypesWithStrings(String... instanceTypes)
Filters the results by the specified instance types.DescribeSpotPriceHistoryRequest.Builder
instanceTypesWithStrings(Collection<String> instanceTypes)
Filters the results by the specified instance types.DescribeSpotPriceHistoryRequest.Builder
maxResults(Integer maxResults)
The maximum number of items to return for this request.DescribeSpotPriceHistoryRequest.Builder
nextToken(String nextToken)
The token returned from a previous paginated request.DescribeSpotPriceHistoryRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
DescribeSpotPriceHistoryRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
DescribeSpotPriceHistoryRequest.Builder
productDescriptions(String... productDescriptions)
Filters the results by the specified basic product descriptions.DescribeSpotPriceHistoryRequest.Builder
productDescriptions(Collection<String> productDescriptions)
Filters the results by the specified basic product descriptions.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).-
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 Detail
-
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 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.
-
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.
-
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.
-
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.
-
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.
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 to#filters(List
.) - 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:
#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.
-
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.
-
overrideConfiguration
DescribeSpotPriceHistoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
DescribeSpotPriceHistoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-