@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityReservation extends Object implements Serializable, Cloneable
Describes a Capacity Reservation.
Constructor and Description |
---|
CapacityReservation() |
Modifier and Type | Method and Description |
---|---|
CapacityReservation |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which the capacity is reserved.
|
String |
getAvailabilityZoneId()
The Availability Zone ID of the Capacity Reservation.
|
Integer |
getAvailableInstanceCount()
The remaining capacity.
|
List<CapacityAllocation> |
getCapacityAllocations()
Information about instance capacity usage.
|
String |
getCapacityReservationArn()
The Amazon Resource Name (ARN) of the Capacity Reservation.
|
String |
getCapacityReservationFleetId()
The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs.
|
String |
getCapacityReservationId()
The ID of the Capacity Reservation.
|
Date |
getCreateDate()
The date and time at which the Capacity Reservation was created.
|
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.
|
String |
getInstanceMatchCriteria()
Indicates the type of instance launches that the Capacity Reservation accepts.
|
String |
getInstancePlatform()
The type of operating system for which the Capacity Reservation reserves capacity.
|
String |
getInstanceType()
The type of instance for which the Capacity Reservation reserves capacity.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.
|
String |
getOwnerId()
The ID of the Amazon Web Services account that owns the Capacity Reservation.
|
String |
getPlacementGroupArn()
The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created.
|
String |
getReservationType()
The type of Capacity Reservation.
|
Date |
getStartDate()
The date and time at which the Capacity Reservation was started.
|
String |
getState()
The current state of the Capacity Reservation.
|
List<Tag> |
getTags()
Any tags assigned to the Capacity Reservation.
|
String |
getTenancy()
Indicates the tenancy of the Capacity Reservation.
|
Integer |
getTotalInstanceCount()
The total number of instances for which the Capacity Reservation reserves capacity.
|
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 the capacity is reserved.
|
void |
setAvailabilityZoneId(String availabilityZoneId)
The Availability Zone ID of the Capacity Reservation.
|
void |
setAvailableInstanceCount(Integer availableInstanceCount)
The remaining capacity.
|
void |
setCapacityAllocations(Collection<CapacityAllocation> capacityAllocations)
Information about instance capacity usage.
|
void |
setCapacityReservationArn(String capacityReservationArn)
The Amazon Resource Name (ARN) of the Capacity Reservation.
|
void |
setCapacityReservationFleetId(String capacityReservationFleetId)
The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs.
|
void |
setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
void |
setCreateDate(Date createDate)
The date and time at which the Capacity Reservation was created.
|
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 |
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 the Capacity Reservation reserves capacity.
|
void |
setInstanceType(String instanceType)
The type of instance for which the Capacity Reservation reserves capacity.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.
|
void |
setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the Capacity Reservation.
|
void |
setPlacementGroupArn(String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created.
|
void |
setReservationType(String reservationType)
The type of Capacity Reservation.
|
void |
setStartDate(Date startDate)
The date and time at which the Capacity Reservation was started.
|
void |
setState(String state)
The current state of the Capacity Reservation.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the Capacity Reservation.
|
void |
setTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation.
|
void |
setTotalInstanceCount(Integer totalInstanceCount)
The total number of instances for which the Capacity Reservation reserves capacity.
|
String |
toString()
Returns a string representation of this object.
|
CapacityReservation |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which the capacity is reserved.
|
CapacityReservation |
withAvailabilityZoneId(String availabilityZoneId)
The Availability Zone ID of the Capacity Reservation.
|
CapacityReservation |
withAvailableInstanceCount(Integer availableInstanceCount)
The remaining capacity.
|
CapacityReservation |
withCapacityAllocations(CapacityAllocation... capacityAllocations)
Information about instance capacity usage.
|
CapacityReservation |
withCapacityAllocations(Collection<CapacityAllocation> capacityAllocations)
Information about instance capacity usage.
|
CapacityReservation |
withCapacityReservationArn(String capacityReservationArn)
The Amazon Resource Name (ARN) of the Capacity Reservation.
|
CapacityReservation |
withCapacityReservationFleetId(String capacityReservationFleetId)
The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs.
|
CapacityReservation |
withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
CapacityReservation |
withCreateDate(Date createDate)
The date and time at which the Capacity Reservation was created.
|
CapacityReservation |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the Capacity Reservation supports EBS-optimized instances.
|
CapacityReservation |
withEndDate(Date endDate)
The date and time at which the Capacity Reservation expires.
|
CapacityReservation |
withEndDateType(EndDateType endDateType)
Indicates the way in which the Capacity Reservation ends.
|
CapacityReservation |
withEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends.
|
CapacityReservation |
withEphemeralStorage(Boolean ephemeralStorage)
Deprecated.
|
CapacityReservation |
withInstanceMatchCriteria(InstanceMatchCriteria instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts.
|
CapacityReservation |
withInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts.
|
CapacityReservation |
withInstancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which the Capacity Reservation reserves capacity.
|
CapacityReservation |
withInstancePlatform(String instancePlatform)
The type of operating system for which the Capacity Reservation reserves capacity.
|
CapacityReservation |
withInstanceType(String instanceType)
The type of instance for which the Capacity Reservation reserves capacity.
|
CapacityReservation |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.
|
CapacityReservation |
withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the Capacity Reservation.
|
CapacityReservation |
withPlacementGroupArn(String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created.
|
CapacityReservation |
withReservationType(CapacityReservationType reservationType)
The type of Capacity Reservation.
|
CapacityReservation |
withReservationType(String reservationType)
The type of Capacity Reservation.
|
CapacityReservation |
withStartDate(Date startDate)
The date and time at which the Capacity Reservation was started.
|
CapacityReservation |
withState(CapacityReservationState state)
The current state of the Capacity Reservation.
|
CapacityReservation |
withState(String state)
The current state of the Capacity Reservation.
|
CapacityReservation |
withTags(Collection<Tag> tags)
Any tags assigned to the Capacity Reservation.
|
CapacityReservation |
withTags(Tag... tags)
Any tags assigned to the Capacity Reservation.
|
CapacityReservation |
withTenancy(CapacityReservationTenancy tenancy)
Indicates the tenancy of the Capacity Reservation.
|
CapacityReservation |
withTenancy(String tenancy)
Indicates the tenancy of the Capacity Reservation.
|
CapacityReservation |
withTotalInstanceCount(Integer totalInstanceCount)
The total number of instances for which the Capacity Reservation reserves capacity.
|
public void setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The ID of the Capacity Reservation.public String getCapacityReservationId()
The ID of the Capacity Reservation.
public CapacityReservation withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The ID of the Capacity Reservation.public void setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the Capacity Reservation.
ownerId
- The ID of the Amazon Web Services account that owns the Capacity Reservation.public String getOwnerId()
The ID of the Amazon Web Services account that owns the Capacity Reservation.
public CapacityReservation withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the Capacity Reservation.
ownerId
- The ID of the Amazon Web Services account that owns the Capacity Reservation.public void setCapacityReservationArn(String capacityReservationArn)
The Amazon Resource Name (ARN) of the Capacity Reservation.
capacityReservationArn
- The Amazon Resource Name (ARN) of the Capacity Reservation.public String getCapacityReservationArn()
The Amazon Resource Name (ARN) of the Capacity Reservation.
public CapacityReservation withCapacityReservationArn(String capacityReservationArn)
The Amazon Resource Name (ARN) of the Capacity Reservation.
capacityReservationArn
- The Amazon Resource Name (ARN) of the Capacity Reservation.public void setAvailabilityZoneId(String availabilityZoneId)
The Availability Zone ID of the Capacity Reservation.
availabilityZoneId
- The Availability Zone ID of the Capacity Reservation.public String getAvailabilityZoneId()
The Availability Zone ID of the Capacity Reservation.
public CapacityReservation withAvailabilityZoneId(String availabilityZoneId)
The Availability Zone ID of the Capacity Reservation.
availabilityZoneId
- The Availability Zone ID of the Capacity Reservation.public void setInstanceType(String instanceType)
The type of instance for which the Capacity Reservation reserves capacity.
instanceType
- The type of instance for which the Capacity Reservation reserves capacity.public String getInstanceType()
The type of instance for which the Capacity Reservation reserves capacity.
public CapacityReservation withInstanceType(String instanceType)
The type of instance for which the Capacity Reservation reserves capacity.
instanceType
- The type of instance for which the Capacity Reservation reserves capacity.public void setInstancePlatform(String instancePlatform)
The type of operating system for which the Capacity Reservation reserves capacity.
instancePlatform
- The type of operating system for which the Capacity Reservation reserves capacity.CapacityReservationInstancePlatform
public String getInstancePlatform()
The type of operating system for which the Capacity Reservation reserves capacity.
CapacityReservationInstancePlatform
public CapacityReservation withInstancePlatform(String instancePlatform)
The type of operating system for which the Capacity Reservation reserves capacity.
instancePlatform
- The type of operating system for which the Capacity Reservation reserves capacity.CapacityReservationInstancePlatform
public CapacityReservation withInstancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which the Capacity Reservation reserves capacity.
instancePlatform
- The type of operating system for which the Capacity Reservation reserves capacity.CapacityReservationInstancePlatform
public void setAvailabilityZone(String availabilityZone)
The Availability Zone in which the capacity is reserved.
availabilityZone
- The Availability Zone in which the capacity is reserved.public String getAvailabilityZone()
The Availability Zone in which the capacity is reserved.
public CapacityReservation withAvailabilityZone(String availabilityZone)
The Availability Zone in which the capacity is reserved.
availabilityZone
- The Availability Zone in which the capacity is reserved.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 CapacityReservation 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 CapacityReservation 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 setTotalInstanceCount(Integer totalInstanceCount)
The total number of instances for which the Capacity Reservation reserves capacity.
totalInstanceCount
- The total number of instances for which the Capacity Reservation reserves capacity.public Integer getTotalInstanceCount()
The total number of instances for which the Capacity Reservation reserves capacity.
public CapacityReservation withTotalInstanceCount(Integer totalInstanceCount)
The total number of instances for which the Capacity Reservation reserves capacity.
totalInstanceCount
- The total number of instances for which the Capacity Reservation reserves capacity.public void setAvailableInstanceCount(Integer availableInstanceCount)
The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
availableInstanceCount
- The remaining capacity. Indicates the number of instances that can be launched in the Capacity
Reservation.public Integer getAvailableInstanceCount()
The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
public CapacityReservation withAvailableInstanceCount(Integer availableInstanceCount)
The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
availableInstanceCount
- The remaining capacity. Indicates the number of instances that can be launched in the Capacity
Reservation.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 CapacityReservation 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 CapacityReservation withEphemeralStorage(Boolean ephemeralStorage)
Deprecated.
ephemeralStorage
- Deprecated.public Boolean isEphemeralStorage()
Deprecated.
public void setState(String state)
The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:
active
- The Capacity Reservation is active and the capacity is available for your use.
expired
- The Capacity Reservation expired automatically at the date and time specified in your
request. The reserved capacity is no longer available for your use.
cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
your use.
pending
- The Capacity Reservation request was successful but the capacity provisioning is still
pending.
failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
state
- The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following
states:
active
- The Capacity Reservation is active and the capacity is available for your use.
expired
- The Capacity Reservation expired automatically at the date and time specified in
your request. The reserved capacity is no longer available for your use.
cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer
available for your use.
pending
- The Capacity Reservation request was successful but the capacity provisioning is
still pending.
failed
- The Capacity Reservation request has failed. A request might fail due to invalid
request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for
60 minutes.
CapacityReservationState
public String getState()
The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:
active
- The Capacity Reservation is active and the capacity is available for your use.
expired
- The Capacity Reservation expired automatically at the date and time specified in your
request. The reserved capacity is no longer available for your use.
cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
your use.
pending
- The Capacity Reservation request was successful but the capacity provisioning is still
pending.
failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
active
- The Capacity Reservation is active and the capacity is available for your use.
expired
- The Capacity Reservation expired automatically at the date and time specified in
your request. The reserved capacity is no longer available for your use.
cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer
available for your use.
pending
- The Capacity Reservation request was successful but the capacity provisioning is
still pending.
failed
- The Capacity Reservation request has failed. A request might fail due to invalid
request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for
60 minutes.
CapacityReservationState
public CapacityReservation withState(String state)
The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:
active
- The Capacity Reservation is active and the capacity is available for your use.
expired
- The Capacity Reservation expired automatically at the date and time specified in your
request. The reserved capacity is no longer available for your use.
cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
your use.
pending
- The Capacity Reservation request was successful but the capacity provisioning is still
pending.
failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
state
- The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following
states:
active
- The Capacity Reservation is active and the capacity is available for your use.
expired
- The Capacity Reservation expired automatically at the date and time specified in
your request. The reserved capacity is no longer available for your use.
cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer
available for your use.
pending
- The Capacity Reservation request was successful but the capacity provisioning is
still pending.
failed
- The Capacity Reservation request has failed. A request might fail due to invalid
request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for
60 minutes.
CapacityReservationState
public CapacityReservation withState(CapacityReservationState state)
The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:
active
- The Capacity Reservation is active and the capacity is available for your use.
expired
- The Capacity Reservation expired automatically at the date and time specified in your
request. The reserved capacity is no longer available for your use.
cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
your use.
pending
- The Capacity Reservation request was successful but the capacity provisioning is still
pending.
failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
state
- The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following
states:
active
- The Capacity Reservation is active and the capacity is available for your use.
expired
- The Capacity Reservation expired automatically at the date and time specified in
your request. The reserved capacity is no longer available for your use.
cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer
available for your use.
pending
- The Capacity Reservation request was successful but the capacity provisioning is
still pending.
failed
- The Capacity Reservation request has failed. A request might fail due to invalid
request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for
60 minutes.
CapacityReservationState
public void setStartDate(Date startDate)
The date and time at which the Capacity Reservation was started.
startDate
- The date and time at which the Capacity Reservation was started.public Date getStartDate()
The date and time at which the Capacity Reservation was started.
public CapacityReservation withStartDate(Date startDate)
The date and time at which the Capacity Reservation was started.
startDate
- The date and time at which the Capacity Reservation was started.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.
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.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.
expired
when it reaches its end date and time.public CapacityReservation 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.
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.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.
limited
- The Capacity Reservation expires automatically at a specified date and time.
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.
limited
- The Capacity Reservation expires automatically at a specified date and time.
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.
limited
- The Capacity Reservation expires automatically at a specified date and time.
unlimited
- The Capacity Reservation remains active until you explicitly cancel it.
limited
- The Capacity Reservation expires automatically at a specified date and time.
EndDateType
public CapacityReservation 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.
limited
- The Capacity Reservation expires automatically at a specified date and time.
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.
limited
- The Capacity Reservation expires automatically at a specified date and time.
EndDateType
public CapacityReservation 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.
limited
- The Capacity Reservation expires automatically at a specified date and time.
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.
limited
- The Capacity Reservation expires automatically at a specified date and time.
EndDateType
public void setInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation accepts all instances that have matching attributes (instance type,
platform, and Availability Zone). Instances that have matching attributes launch into 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.
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation accepts all instances that have matching attributes (instance
type, platform, and Availability Zone). Instances that have matching attributes launch into 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.
InstanceMatchCriteria
public String getInstanceMatchCriteria()
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation accepts all instances that have matching attributes (instance type,
platform, and Availability Zone). Instances that have matching attributes launch into 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.
open
- The Capacity Reservation accepts all instances that have matching attributes
(instance type, platform, and Availability Zone). Instances that have matching attributes launch into 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.
InstanceMatchCriteria
public CapacityReservation withInstanceMatchCriteria(String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation accepts all instances that have matching attributes (instance type,
platform, and Availability Zone). Instances that have matching attributes launch into 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.
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation accepts all instances that have matching attributes (instance
type, platform, and Availability Zone). Instances that have matching attributes launch into 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.
InstanceMatchCriteria
public CapacityReservation withInstanceMatchCriteria(InstanceMatchCriteria instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation accepts all instances that have matching attributes (instance type,
platform, and Availability Zone). Instances that have matching attributes launch into 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.
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation accepts. The options include:
open
- The Capacity Reservation accepts all instances that have matching attributes (instance
type, platform, and Availability Zone). Instances that have matching attributes launch into 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.
InstanceMatchCriteria
public void setCreateDate(Date createDate)
The date and time at which the Capacity Reservation was created.
createDate
- The date and time at which the Capacity Reservation was created.public Date getCreateDate()
The date and time at which the Capacity Reservation was created.
public CapacityReservation withCreateDate(Date createDate)
The date and time at which the Capacity Reservation was created.
createDate
- The date and time at which the Capacity Reservation was created.public List<Tag> getTags()
Any tags assigned to the Capacity Reservation.
public void setTags(Collection<Tag> tags)
Any tags assigned to the Capacity Reservation.
tags
- Any tags assigned to the Capacity Reservation.public CapacityReservation withTags(Tag... tags)
Any tags assigned to the Capacity Reservation.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the Capacity Reservation.public CapacityReservation withTags(Collection<Tag> tags)
Any tags assigned to the Capacity Reservation.
tags
- Any tags assigned to the Capacity Reservation.public void setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.public String getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.
public CapacityReservation withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.public void setCapacityReservationFleetId(String capacityReservationFleetId)
The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for Capacity Reservations that were created by a Capacity Reservation Fleet.
capacityReservationFleetId
- The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for
Capacity Reservations that were created by a Capacity Reservation Fleet.public String getCapacityReservationFleetId()
The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for Capacity Reservations that were created by a Capacity Reservation Fleet.
public CapacityReservation withCapacityReservationFleetId(String capacityReservationFleetId)
The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for Capacity Reservations that were created by a Capacity Reservation Fleet.
capacityReservationFleetId
- The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for
Capacity Reservations that were created by a Capacity Reservation Fleet.public void setPlacementGroupArn(String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created. 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 the Capacity Reservation was
created. 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 the Capacity Reservation was created. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.
public CapacityReservation withPlacementGroupArn(String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created. 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 the Capacity Reservation was
created. For more information, see Capacity Reservations for cluster
placement groups in the Amazon EC2 User Guide.public List<CapacityAllocation> getCapacityAllocations()
Information about instance capacity usage.
public void setCapacityAllocations(Collection<CapacityAllocation> capacityAllocations)
Information about instance capacity usage.
capacityAllocations
- Information about instance capacity usage.public CapacityReservation withCapacityAllocations(CapacityAllocation... capacityAllocations)
Information about instance capacity usage.
NOTE: This method appends the values to the existing list (if any). Use
setCapacityAllocations(java.util.Collection)
or withCapacityAllocations(java.util.Collection)
if you want to override the existing values.
capacityAllocations
- Information about instance capacity usage.public CapacityReservation withCapacityAllocations(Collection<CapacityAllocation> capacityAllocations)
Information about instance capacity usage.
capacityAllocations
- Information about instance capacity usage.public void setReservationType(String reservationType)
The type of Capacity Reservation.
reservationType
- The type of Capacity Reservation.CapacityReservationType
public String getReservationType()
The type of Capacity Reservation.
CapacityReservationType
public CapacityReservation withReservationType(String reservationType)
The type of Capacity Reservation.
reservationType
- The type of Capacity Reservation.CapacityReservationType
public CapacityReservation withReservationType(CapacityReservationType reservationType)
The type of Capacity Reservation.
reservationType
- The type of Capacity Reservation.CapacityReservationType
public String toString()
toString
in class Object
Object.toString()
public CapacityReservation clone()