public static interface PurchaseCapacityBlockRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<PurchaseCapacityBlockRequest.Builder,PurchaseCapacityBlockRequest>
| Modifier and Type | Method and Description |
|---|---|
PurchaseCapacityBlockRequest.Builder |
capacityBlockOfferingId(String capacityBlockOfferingId)
The ID of the Capacity Block offering.
|
PurchaseCapacityBlockRequest.Builder |
dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and
provides an error response.
|
PurchaseCapacityBlockRequest.Builder |
instancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which to reserve capacity.
|
PurchaseCapacityBlockRequest.Builder |
instancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
|
PurchaseCapacityBlockRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PurchaseCapacityBlockRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PurchaseCapacityBlockRequest.Builder |
tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Block during launch.
|
PurchaseCapacityBlockRequest.Builder |
tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the Capacity Block during launch.
|
PurchaseCapacityBlockRequest.Builder |
tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Capacity Block during launch.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPurchaseCapacityBlockRequest.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 is UnauthorizedOperation.
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 is UnauthorizedOperation.PurchaseCapacityBlockRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Block during launch.
tagSpecifications - The tags to apply to the Capacity Block during launch.PurchaseCapacityBlockRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Capacity Block during launch.
tagSpecifications - The tags to apply to the Capacity Block during launch.PurchaseCapacityBlockRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the Capacity Block during launch.
This is a convenience method that creates an instance of theTagSpecification.Builder avoiding the need to create one
manually via TagSpecification.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #tagSpecifications(List.
tagSpecifications - a consumer that will call methods on
TagSpecification.Builder#tagSpecifications(java.util.Collection) PurchaseCapacityBlockRequest.Builder capacityBlockOfferingId(String capacityBlockOfferingId)
The ID of the Capacity Block offering.
capacityBlockOfferingId - The ID of the Capacity Block offering.PurchaseCapacityBlockRequest.Builder instancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
instancePlatform - The type of operating system for which to reserve capacity.CapacityReservationInstancePlatform,
CapacityReservationInstancePlatformPurchaseCapacityBlockRequest.Builder instancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which to reserve capacity.
instancePlatform - The type of operating system for which to reserve capacity.CapacityReservationInstancePlatform,
CapacityReservationInstancePlatformPurchaseCapacityBlockRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPurchaseCapacityBlockRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.