Interface PurchaseReservedInstancesOfferingRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PurchaseReservedInstancesOfferingRequest.Builder,,PurchaseReservedInstancesOfferingRequest> Ec2Request.Builder,SdkBuilder<PurchaseReservedInstancesOfferingRequest.Builder,,PurchaseReservedInstancesOfferingRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PurchaseReservedInstancesOfferingRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.instanceCount(Integer instanceCount) The number of Reserved Instances to purchase.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.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.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.purchaseTime(Instant purchaseTime) The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).reservedInstancesOfferingId(String reservedInstancesOfferingId) The ID of the Reserved Instance offering to purchase.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
instanceCount
The number of Reserved Instances to purchase.
- Parameters:
instanceCount- The number of Reserved Instances to purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstancesOfferingId
PurchaseReservedInstancesOfferingRequest.Builder reservedInstancesOfferingId(String reservedInstancesOfferingId) The ID of the Reserved Instance offering to purchase.
- Parameters:
reservedInstancesOfferingId- The ID of the Reserved Instance offering to purchase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchaseTime
The time at which to purchase the Reserved Instance, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
- Parameters:
purchaseTime- The time at which to purchase the Reserved Instance, 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.
-
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.
-
limitPrice
Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
- Parameters:
limitPrice- Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limitPrice
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 method that creates an instance of theReservedInstanceLimitPrice.Builderavoiding the need to create one manually viaReservedInstanceLimitPrice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolimitPrice(ReservedInstanceLimitPrice).- Parameters:
limitPrice- a consumer that will call methods onReservedInstanceLimitPrice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PurchaseReservedInstancesOfferingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PurchaseReservedInstancesOfferingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-