Interface DescribeReservedInstancesOfferingsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<DescribeReservedInstancesOfferingsRequest.Builder,
,DescribeReservedInstancesOfferingsRequest> Ec2Request.Builder
,SdkBuilder<DescribeReservedInstancesOfferingsRequest.Builder,
,DescribeReservedInstancesOfferingsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
DescribeReservedInstancesOfferingsRequest
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The Availability Zone in which the Reserved Instance can be used.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.filters
(Collection<Filter> filters) One or more filters.filters
(Consumer<Filter.Builder>... filters) One or more filters.One or more filters.includeMarketplace
(Boolean includeMarketplace) Include Reserved Instance Marketplace offerings in the response.instanceTenancy
(String instanceTenancy) The tenancy of the instances covered by the reservation.instanceTenancy
(Tenancy instanceTenancy) The tenancy of the instances covered by the reservation.instanceType
(String instanceType) The instance type that the reservation will cover (for example,m1.small
).instanceType
(InstanceType instanceType) The instance type that the reservation will cover (for example,m1.small
).maxDuration
(Long maxDuration) The maximum duration (in seconds) to filter when searching for offerings.maxInstanceCount
(Integer maxInstanceCount) The maximum number of instances to filter when searching for offerings.maxResults
(Integer maxResults) The maximum number of results to return for the request in a single page.minDuration
(Long minDuration) The minimum duration (in seconds) to filter when searching for offerings.The token to retrieve the next page of results.offeringClass
(String offeringClass) The offering class of the Reserved Instance.offeringClass
(OfferingClassType offeringClass) The offering class of the Reserved Instance.offeringType
(String offeringType) The Reserved Instance offering type.offeringType
(OfferingTypeValues offeringType) The Reserved Instance offering type.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.productDescription
(String productDescription) The Reserved Instance product platform description.productDescription
(RIProductDescription productDescription) The Reserved Instance product platform description.reservedInstancesOfferingIds
(String... reservedInstancesOfferingIds) One or more Reserved Instances offering IDs.reservedInstancesOfferingIds
(Collection<String> reservedInstancesOfferingIds) One or more Reserved Instances offering IDs.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
-
availabilityZone
The Availability Zone in which the Reserved Instance can be used.
- Parameters:
availabilityZone
- The Availability Zone in which the Reserved Instance can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
One or more filters.
-
availability-zone
- The Availability Zone where the Reserved Instance can be used. -
duration
- The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000
|94608000
). -
fixed-price
- The purchase price of the Reserved Instance (for example, 9800.0). -
instance-type
- The instance type that is covered by the reservation. -
marketplace
- Set totrue
to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both Amazon Web Services and the Reserved Instance Marketplace are listed. -
product-description
- The Reserved Instance product platform description (Linux/UNIX
|Linux with SQL Server Standard
|Linux with SQL Server Web
|Linux with SQL Server Enterprise
|SUSE Linux
|Red Hat Enterprise Linux
|Red Hat Enterprise Linux with HA
|Windows
|Windows with SQL Server Standard
|Windows with SQL Server Web
|Windows with SQL Server Enterprise
). -
reserved-instances-offering-id
- The Reserved Instances offering ID. -
scope
- The scope of the Reserved Instance (Availability Zone
orRegion
). -
usage-price
- The usage price of the Reserved Instance, per hour (for example, 0.84).
- Parameters:
filters
- One or more filters.-
availability-zone
- The Availability Zone where the Reserved Instance can be used. -
duration
- The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000
|94608000
). -
fixed-price
- The purchase price of the Reserved Instance (for example, 9800.0). -
instance-type
- The instance type that is covered by the reservation. -
marketplace
- Set totrue
to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both Amazon Web Services and the Reserved Instance Marketplace are listed. -
product-description
- The Reserved Instance product platform description (Linux/UNIX
|Linux with SQL Server Standard
|Linux with SQL Server Web
|Linux with SQL Server Enterprise
|SUSE Linux
|Red Hat Enterprise Linux
|Red Hat Enterprise Linux with HA
|Windows
|Windows with SQL Server Standard
|Windows with SQL Server Web
|Windows with SQL Server Enterprise
). -
reserved-instances-offering-id
- The Reserved Instances offering ID. -
scope
- The scope of the Reserved Instance (Availability Zone
orRegion
). -
usage-price
- The usage price of the Reserved Instance, per hour (for example, 0.84).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
One or more filters.
-
availability-zone
- The Availability Zone where the Reserved Instance can be used. -
duration
- The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000
|94608000
). -
fixed-price
- The purchase price of the Reserved Instance (for example, 9800.0). -
instance-type
- The instance type that is covered by the reservation. -
marketplace
- Set totrue
to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both Amazon Web Services and the Reserved Instance Marketplace are listed. -
product-description
- The Reserved Instance product platform description (Linux/UNIX
|Linux with SQL Server Standard
|Linux with SQL Server Web
|Linux with SQL Server Enterprise
|SUSE Linux
|Red Hat Enterprise Linux
|Red Hat Enterprise Linux with HA
|Windows
|Windows with SQL Server Standard
|Windows with SQL Server Web
|Windows with SQL Server Enterprise
). -
reserved-instances-offering-id
- The Reserved Instances offering ID. -
scope
- The scope of the Reserved Instance (Availability Zone
orRegion
). -
usage-price
- The usage price of the Reserved Instance, per hour (for example, 0.84).
- Parameters:
filters
- One or more filters.-
availability-zone
- The Availability Zone where the Reserved Instance can be used. -
duration
- The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000
|94608000
). -
fixed-price
- The purchase price of the Reserved Instance (for example, 9800.0). -
instance-type
- The instance type that is covered by the reservation. -
marketplace
- Set totrue
to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both Amazon Web Services and the Reserved Instance Marketplace are listed. -
product-description
- The Reserved Instance product platform description (Linux/UNIX
|Linux with SQL Server Standard
|Linux with SQL Server Web
|Linux with SQL Server Enterprise
|SUSE Linux
|Red Hat Enterprise Linux
|Red Hat Enterprise Linux with HA
|Windows
|Windows with SQL Server Standard
|Windows with SQL Server Web
|Windows with SQL Server Enterprise
). -
reserved-instances-offering-id
- The Reserved Instances offering ID. -
scope
- The scope of the Reserved Instance (Availability Zone
orRegion
). -
usage-price
- The usage price of the Reserved Instance, per hour (for example, 0.84).
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
One or more filters.
-
availability-zone
- The Availability Zone where the Reserved Instance can be used. -
duration
- The duration of the Reserved Instance (for example, one year or three years), in seconds (31536000
|94608000
). -
fixed-price
- The purchase price of the Reserved Instance (for example, 9800.0). -
instance-type
- The instance type that is covered by the reservation. -
marketplace
- Set totrue
to show only Reserved Instance Marketplace offerings. When this filter is not used, which is the default behavior, all offerings from both Amazon Web Services and the Reserved Instance Marketplace are listed. -
product-description
- The Reserved Instance product platform description (Linux/UNIX
|Linux with SQL Server Standard
|Linux with SQL Server Web
|Linux with SQL Server Enterprise
|SUSE Linux
|Red Hat Enterprise Linux
|Red Hat Enterprise Linux with HA
|Windows
|Windows with SQL Server Standard
|Windows with SQL Server Web
|Windows with SQL Server Enterprise
). -
reserved-instances-offering-id
- The Reserved Instances offering ID. -
scope
- The scope of the Reserved Instance (Availability Zone
orRegion
). -
usage-price
- The usage price of the Reserved Instance, per hour (for example, 0.84).
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:
-
-
includeMarketplace
Include Reserved Instance Marketplace offerings in the response.
- Parameters:
includeMarketplace
- Include Reserved Instance Marketplace offerings in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type that the reservation will cover (for example,
m1.small
). For more information, see Instance types in the Amazon EC2 User Guide.- Parameters:
instanceType
- The instance type that the reservation will cover (for example,m1.small
). For more information, see Instance types in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type that the reservation will cover (for example,
m1.small
). For more information, see Instance types in the Amazon EC2 User Guide.- Parameters:
instanceType
- The instance type that the reservation will cover (for example,m1.small
). For more information, see Instance types in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxDuration
The maximum duration (in seconds) to filter when searching for offerings.
Default: 94608000 (3 years)
- Parameters:
maxDuration
- The maximum duration (in seconds) to filter when searching for offerings.Default: 94608000 (3 years)
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxInstanceCount
The maximum number of instances to filter when searching for offerings.
Default: 20
- Parameters:
maxInstanceCount
- The maximum number of instances to filter when searching for offerings.Default: 20
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minDuration
The minimum duration (in seconds) to filter when searching for offerings.
Default: 2592000 (1 month)
- Parameters:
minDuration
- The minimum duration (in seconds) to filter when searching for offerings.Default: 2592000 (1 month)
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringClass
The offering class of the Reserved Instance. Can be
standard
orconvertible
.- Parameters:
offeringClass
- The offering class of the Reserved Instance. Can bestandard
orconvertible
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
offeringClass
The offering class of the Reserved Instance. Can be
standard
orconvertible
.- Parameters:
offeringClass
- The offering class of the Reserved Instance. Can bestandard
orconvertible
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productDescription
The Reserved Instance product platform description. Instances that include
(Amazon VPC)
in the description are for use with Amazon VPC.- Parameters:
productDescription
- The Reserved Instance product platform description. Instances that include(Amazon VPC)
in the description are for use with Amazon VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
productDescription
DescribeReservedInstancesOfferingsRequest.Builder productDescription(RIProductDescription productDescription) The Reserved Instance product platform description. Instances that include
(Amazon VPC)
in the description are for use with Amazon VPC.- Parameters:
productDescription
- The Reserved Instance product platform description. Instances that include(Amazon VPC)
in the description are for use with Amazon VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservedInstancesOfferingIds
DescribeReservedInstancesOfferingsRequest.Builder reservedInstancesOfferingIds(Collection<String> reservedInstancesOfferingIds) One or more Reserved Instances offering IDs.
- Parameters:
reservedInstancesOfferingIds
- One or more Reserved Instances offering IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstancesOfferingIds
DescribeReservedInstancesOfferingsRequest.Builder reservedInstancesOfferingIds(String... reservedInstancesOfferingIds) One or more Reserved Instances offering IDs.
- Parameters:
reservedInstancesOfferingIds
- One or more Reserved Instances offering IDs.- 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.
-
instanceTenancy
The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of
dedicated
is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Parameters:
instanceTenancy
- The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy ofdedicated
is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceTenancy
The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of
dedicated
is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Parameters:
instanceTenancy
- The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy ofdedicated
is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).Important: The
host
value cannot be used with this parameter. Use thedefault
ordedicated
values only.Default:
default
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returned
NextToken
value. The maximum is 100.Default: 100
- Parameters:
maxResults
- The maximum number of results to return for the request in a single page. The remaining results of the initial request can be seen by sending another request with the returnedNextToken
value. The maximum is 100.Default: 100
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token to retrieve the next page of results.
- Parameters:
nextToken
- The token to retrieve the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offeringType
The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the
Medium Utilization
Reserved Instance offering type.- Parameters:
offeringType
- The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to theMedium Utilization
Reserved Instance offering type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
offeringType
The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to the
Medium Utilization
Reserved Instance offering type.- Parameters:
offeringType
- The Reserved Instance offering type. If you are using tools that predate the 2011-11-01 API version, you only have access to theMedium Utilization
Reserved Instance offering type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
DescribeReservedInstancesOfferingsRequest.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
DescribeReservedInstancesOfferingsRequest.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.
-