@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()
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
|
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.
|
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()
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
|
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)
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
|
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 |
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)
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
|
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 |
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 How to Ensure Idempotency.
Constraint: Maximum 64 ASCII characters.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency.
Constraint: Maximum 64 ASCII characters.
public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
Constraint: Maximum 64 ASCII characters.
Constraint: Maximum 64 ASCII characters.
public CreateCapacityReservationRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
Constraint: Maximum 64 ASCII characters.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency.
Constraint: Maximum 64 ASCII characters.
public void setInstanceType(String instanceType)
The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type for which to reserve capacity. For more information, see Instance Types in the
Amazon Elastic Compute Cloud User Guide.public String getInstanceType()
The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
public CreateCapacityReservationRequest withInstanceType(String instanceType)
The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type for which to reserve capacity. For more information, see Instance Types in the
Amazon Elastic Compute Cloud 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 AWS accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
single AWS 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 AWS
accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
to a single AWS 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 AWS accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
single AWS account.
default
- The Capacity Reservation is created on hardware that is shared with other AWS
accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
to a single AWS 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 AWS accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
single AWS 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 AWS
accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
to a single AWS 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 AWS accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a
single AWS 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 AWS
accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated
to a single AWS account.
CapacityReservationTenancy
public void setInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
instanceCount
- The number of instances for which to reserve capacity.public Integer getInstanceCount()
The number of instances for which to reserve capacity.
public CreateCapacityReservationRequest withInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
instanceCount
- The number of instances for which to reserve capacity.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)
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
ephemeralStorage
- Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.public Boolean getEphemeralStorage()
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
public CreateCapacityReservationRequest withEphemeralStorage(Boolean ephemeralStorage)
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
ephemeralStorage
- Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.public Boolean isEphemeralStorage()
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
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 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.