@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCapacityReservationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateCapacityReservationRequest>
NOOP
Constructor and Description |
---|
CreateCapacityReservationRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCapacityReservationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which to create the Capacity Reservation.
|
String |
getAvailabilityZoneId()
The ID of the Availability Zone in which to create the Capacity Reservation.
|
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
Request<CreateCapacityReservationRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEbsOptimized()
Indicates whether the Capacity Reservation supports EBS-optimized instances.
|
Date |
getEndDate()
The date and time at which the Capacity Reservation expires.
|
String |
getEndDateType()
Indicates the way in which the Capacity Reservation ends.
|
Boolean |
getEphemeralStorage()
Deprecated.
|
Integer |
getInstanceCount()
The number of instances for which to reserve capacity.
|
String |
getInstanceMatchCriteria()
Indicates the type of instance launches that the Capacity Reservation accepts.
|
String |
getInstancePlatform()
The type of operating system for which to reserve capacity.
|
String |
getInstanceType()
The instance type for which to reserve capacity.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
|
String |
getPlacementGroupArn()
The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the Capacity Reservation during launch.
|
String |
getTenancy()
Indicates the tenancy of the Capacity Reservation.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Indicates whether the Capacity Reservation supports EBS-optimized instances.
|
Boolean |
isEphemeralStorage()
Deprecated.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the Capacity Reservation.
|
void |
setAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which to create the Capacity Reservation.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation supports EBS-optimized instances.
|
void |
setEndDate(Date endDate)
The date and time at which the Capacity Reservation expires.
|
void |
setEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends.
|
void |
setEphemeralStorage(Boolean ephemeralStorage)
Deprecated.
|
void |
setInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
|
void |
setInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts.
|
void |
setInstancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
|
void |
setInstanceType(String instanceType)
The instance type for which to reserve capacity.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
|
void |
setPlacementGroupArn(String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Reservation during launch.
|
void |
setTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation.
|
String |
toString()
Returns a string representation of this object.
|
CreateCapacityReservationRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the Capacity Reservation.
|
CreateCapacityReservationRequest |
withAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which to create the Capacity Reservation.
|
CreateCapacityReservationRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateCapacityReservationRequest |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation supports EBS-optimized instances.
|
CreateCapacityReservationRequest |
withEndDate(Date endDate)
The date and time at which the Capacity Reservation expires.
|
CreateCapacityReservationRequest |
withEndDateType(EndDateType endDateType)
Indicates the way in which the Capacity Reservation ends.
|
CreateCapacityReservationRequest |
withEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends.
|
CreateCapacityReservationRequest |
withEphemeralStorage(Boolean ephemeralStorage)
Deprecated.
|
CreateCapacityReservationRequest |
withInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
|
CreateCapacityReservationRequest |
withInstanceMatchCriteria(InstanceMatchCriteria instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts.
|
CreateCapacityReservationRequest |
withInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts.
|
CreateCapacityReservationRequest |
withInstancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which to reserve capacity.
|
CreateCapacityReservationRequest |
withInstancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
|
CreateCapacityReservationRequest |
withInstanceType(String instanceType)
The instance type for which to reserve capacity.
|
CreateCapacityReservationRequest |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
|
CreateCapacityReservationRequest |
withPlacementGroupArn(String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation.
|
CreateCapacityReservationRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Reservation during launch.
|
CreateCapacityReservationRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Capacity Reservation during launch.
|
CreateCapacityReservationRequest |
withTenancy(CapacityReservationTenancy tenancy)
Indicates the tenancy of the Capacity Reservation.
|
CreateCapacityReservationRequest |
withTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensure
Idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
public CreateCapacityReservationRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensure
Idempotency.public void setInstanceType(String instanceType)
The instance type for which to reserve capacity. For more information, see Instance types in the Amazon EC2 User Guide.
instanceType
- The instance type for which to reserve capacity. For more information, see Instance types in the
Amazon EC2 User Guide.public String getInstanceType()
The instance type for which to reserve capacity. For more information, see Instance types in the Amazon EC2 User Guide.
public CreateCapacityReservationRequest withInstanceType(String instanceType)
The instance type for which to reserve capacity. For more information, see Instance types in the Amazon EC2 User Guide.
instanceType
- The instance type for which to reserve capacity. For more information, see Instance types in the
Amazon EC2 User Guide.public void setInstancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
instancePlatform
- The type of operating system for which to reserve capacity.CapacityReservationInstancePlatform
public String getInstancePlatform()
The type of operating system for which to reserve capacity.
CapacityReservationInstancePlatform
public CreateCapacityReservationRequest withInstancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
instancePlatform
- The type of operating system for which to reserve capacity.CapacityReservationInstancePlatform
public CreateCapacityReservationRequest withInstancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which to reserve capacity.
instancePlatform
- The type of operating system for which to reserve capacity.CapacityReservationInstancePlatform
public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the Capacity Reservation.
availabilityZone
- The Availability Zone in which to create the Capacity Reservation.public String getAvailabilityZone()
The Availability Zone in which to create the Capacity Reservation.
public CreateCapacityReservationRequest withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create the Capacity Reservation.
availabilityZone
- The Availability Zone in which to create the Capacity Reservation.public void setAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which to create the Capacity Reservation.
availabilityZoneId
- The ID of the Availability Zone in which to create the Capacity Reservation.public String getAvailabilityZoneId()
The ID of the Availability Zone in which to create the Capacity Reservation.
public CreateCapacityReservationRequest withAvailabilityZoneId(String availabilityZoneId)
The ID of the Availability Zone in which to create the Capacity Reservation.
availabilityZoneId
- The ID of the Availability Zone in which to create the Capacity Reservation.public void setTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
tenancy
- Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following
tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon
Web Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
to a single Amazon Web Services account.
CapacityReservationTenancy
public String getTenancy()
Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
default
- The Capacity Reservation is created on hardware that is shared with other Amazon
Web Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
to a single Amazon Web Services account.
CapacityReservationTenancy
public CreateCapacityReservationRequest withTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
tenancy
- Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following
tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon
Web Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
to a single Amazon Web Services account.
CapacityReservationTenancy
public CreateCapacityReservationRequest withTenancy(CapacityReservationTenancy tenancy)
Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web
Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
single Amazon Web Services account.
tenancy
- Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following
tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon
Web Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
to a single Amazon Web Services account.
CapacityReservationTenancy
public void setInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
Valid range: 1 - 1000
instanceCount
- The number of instances for which to reserve capacity.
Valid range: 1 - 1000
public Integer getInstanceCount()
The number of instances for which to reserve capacity.
Valid range: 1 - 1000
Valid range: 1 - 1000
public CreateCapacityReservationRequest withInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
Valid range: 1 - 1000
instanceCount
- The number of instances for which to reserve capacity.
Valid range: 1 - 1000
public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.
ebsOptimized
- Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides
dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using an EBS- optimized instance.public Boolean getEbsOptimized()
Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.
public CreateCapacityReservationRequest withEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.
ebsOptimized
- Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides
dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using an EBS- optimized instance.public Boolean isEbsOptimized()
Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.
public void setEphemeralStorage(Boolean ephemeralStorage)
Deprecated.
ephemeralStorage
- Deprecated.public Boolean getEphemeralStorage()
Deprecated.
public CreateCapacityReservationRequest withEphemeralStorage(Boolean ephemeralStorage)
Deprecated.
ephemeralStorage
- Deprecated.public Boolean isEphemeralStorage()
Deprecated.
public void setEndDate(Date endDate)
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour
from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed
to end between 13:30:55 and 14:30:55 on 5/31/2019.
endDate
- The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the
reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's
state changes to expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an
hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is
guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
public Date getEndDate()
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour
from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed
to end between 13:30:55 and 14:30:55 on 5/31/2019.
expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an
hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation
is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
public CreateCapacityReservationRequest withEndDate(Date endDate)
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour
from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed
to end between 13:30:55 and 14:30:55 on 5/31/2019.
endDate
- The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the
reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's
state changes to expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an
hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is
guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
public void setEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate
if the EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if the EndDateType
value is limited
.
endDateType
- Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the
following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
if the EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate
value if the EndDateType
value is limited
.
EndDateType
public String getEndDateType()
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate
if the EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if the EndDateType
value is limited
.
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
if the EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate
value if the EndDateType
value is limited
.
EndDateType
public CreateCapacityReservationRequest withEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate
if the EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if the EndDateType
value is limited
.
endDateType
- Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the
following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
if the EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate
value if the EndDateType
value is limited
.
EndDateType
public CreateCapacityReservationRequest withEndDateType(EndDateType endDateType)
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate
if the EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if the EndDateType
value is limited
.
endDateType
- Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the
following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
if the EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate
value if the EndDateType
value is limited
.
EndDateType
public void setInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation automatically matches all instances that have matching attributes
(instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
Reservation automatically without specifying any additional parameters.
targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
permitted instances can use the reserved capacity.
Default: open
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation automatically matches all instances that have matching
attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run
in the Capacity Reservation automatically without specifying any additional parameters.
targeted
- The Capacity Reservation only accepts instances that have matching attributes
(instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This
ensures that only permitted instances can use the reserved capacity.
Default: open
InstanceMatchCriteria
public String getInstanceMatchCriteria()
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation automatically matches all instances that have matching attributes
(instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
Reservation automatically without specifying any additional parameters.
targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
permitted instances can use the reserved capacity.
Default: open
open
- The Capacity Reservation automatically matches all instances that have matching
attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run
in the Capacity Reservation automatically without specifying any additional parameters.
targeted
- The Capacity Reservation only accepts instances that have matching attributes
(instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This
ensures that only permitted instances can use the reserved capacity.
Default: open
InstanceMatchCriteria
public CreateCapacityReservationRequest withInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation automatically matches all instances that have matching attributes
(instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
Reservation automatically without specifying any additional parameters.
targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
permitted instances can use the reserved capacity.
Default: open
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation automatically matches all instances that have matching
attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run
in the Capacity Reservation automatically without specifying any additional parameters.
targeted
- The Capacity Reservation only accepts instances that have matching attributes
(instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This
ensures that only permitted instances can use the reserved capacity.
Default: open
InstanceMatchCriteria
public CreateCapacityReservationRequest withInstanceMatchCriteria(InstanceMatchCriteria instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation automatically matches all instances that have matching attributes
(instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity
Reservation automatically without specifying any additional parameters.
targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance
type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only
permitted instances can use the reserved capacity.
Default: open
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation automatically matches all instances that have matching
attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run
in the Capacity Reservation automatically without specifying any additional parameters.
targeted
- The Capacity Reservation only accepts instances that have matching attributes
(instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This
ensures that only permitted instances can use the reserved capacity.
Default: open
InstanceMatchCriteria
public List<TagSpecification> getTagSpecifications()
The tags to apply to the Capacity Reservation during launch.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Reservation during launch.
tagSpecifications
- The tags to apply to the Capacity Reservation during launch.public CreateCapacityReservationRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Capacity Reservation during launch.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the Capacity Reservation during launch.public CreateCapacityReservationRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Reservation during launch.
tagSpecifications
- The tags to apply to the Capacity Reservation during launch.public void setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.public String getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
public CreateCapacityReservationRequest withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.public void setPlacementGroupArn(String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.
placementGroupArn
- The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation.
For more information, see
Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.public String getPlacementGroupArn()
The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.
public CreateCapacityReservationRequest withPlacementGroupArn(String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.
placementGroupArn
- The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation.
For more information, see
Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.public Request<CreateCapacityReservationRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateCapacityReservationRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateCapacityReservationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()