public static interface PurchaseReservedInstancesOfferingRequest.Builder extends EC2Request.Builder, CopyableBuilder<PurchaseReservedInstancesOfferingRequest.Builder,PurchaseReservedInstancesOfferingRequest>
Modifier and Type | Method and Description |
---|---|
PurchaseReservedInstancesOfferingRequest.Builder |
instanceCount(Integer instanceCount)
The number of Reserved Instances to purchase.
|
default PurchaseReservedInstancesOfferingRequest.Builder |
limitPrice(Consumer<ReservedInstanceLimitPrice.Builder> limitPrice)
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved
Instances are not purchased at unexpected prices.
|
PurchaseReservedInstancesOfferingRequest.Builder |
limitPrice(ReservedInstanceLimitPrice limitPrice)
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved
Instances are not purchased at unexpected prices.
|
PurchaseReservedInstancesOfferingRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
PurchaseReservedInstancesOfferingRequest.Builder |
reservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
PurchaseReservedInstancesOfferingRequest.Builder instanceCount(Integer instanceCount)
The number of Reserved Instances to purchase.
instanceCount
- The number of Reserved Instances to purchase.PurchaseReservedInstancesOfferingRequest.Builder reservedInstancesOfferingId(String reservedInstancesOfferingId)
The ID of the Reserved Instance offering to purchase.
reservedInstancesOfferingId
- The ID of the Reserved Instance offering to purchase.PurchaseReservedInstancesOfferingRequest.Builder limitPrice(ReservedInstanceLimitPrice limitPrice)
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
limitPrice
- Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the
Reserved Instances are not purchased at unexpected prices.default PurchaseReservedInstancesOfferingRequest.Builder limitPrice(Consumer<ReservedInstanceLimitPrice.Builder> limitPrice)
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
This is a convenience that creates an instance of theReservedInstanceLimitPrice.Builder
avoiding the
need to create one manually via ReservedInstanceLimitPrice.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to limitPrice(ReservedInstanceLimitPrice)
.limitPrice
- a consumer that will call methods on ReservedInstanceLimitPrice.Builder
limitPrice(ReservedInstanceLimitPrice)
PurchaseReservedInstancesOfferingRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.