@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetCapacityReservationUsageResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetCapacityReservationUsageResult() |
Modifier and Type | Method and Description |
---|---|
GetCapacityReservationUsageResult |
clone() |
boolean |
equals(Object obj) |
Integer |
getAvailableInstanceCount()
The remaining capacity.
|
String |
getCapacityReservationId()
The ID of the Capacity Reservation.
|
String |
getInstanceType()
The type of instance for which the Capacity Reservation reserves capacity.
|
List<InstanceUsage> |
getInstanceUsages()
Information about the Capacity Reservation usage.
|
String |
getNextToken()
The token to use to retrieve the next page of results.
|
String |
getState()
The current state of the Capacity Reservation.
|
Integer |
getTotalInstanceCount()
The number of instances for which the Capacity Reservation reserves capacity.
|
int |
hashCode() |
void |
setAvailableInstanceCount(Integer availableInstanceCount)
The remaining capacity.
|
void |
setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
void |
setInstanceType(String instanceType)
The type of instance for which the Capacity Reservation reserves capacity.
|
void |
setInstanceUsages(Collection<InstanceUsage> instanceUsages)
Information about the Capacity Reservation usage.
|
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
void |
setState(String state)
The current state of the Capacity Reservation.
|
void |
setTotalInstanceCount(Integer totalInstanceCount)
The number of instances for which the Capacity Reservation reserves capacity.
|
String |
toString()
Returns a string representation of this object.
|
GetCapacityReservationUsageResult |
withAvailableInstanceCount(Integer availableInstanceCount)
The remaining capacity.
|
GetCapacityReservationUsageResult |
withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
GetCapacityReservationUsageResult |
withInstanceType(String instanceType)
The type of instance for which the Capacity Reservation reserves capacity.
|
GetCapacityReservationUsageResult |
withInstanceUsages(Collection<InstanceUsage> instanceUsages)
Information about the Capacity Reservation usage.
|
GetCapacityReservationUsageResult |
withInstanceUsages(InstanceUsage... instanceUsages)
Information about the Capacity Reservation usage.
|
GetCapacityReservationUsageResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
GetCapacityReservationUsageResult |
withState(CapacityReservationState state)
The current state of the Capacity Reservation.
|
GetCapacityReservationUsageResult |
withState(String state)
The current state of the Capacity Reservation.
|
GetCapacityReservationUsageResult |
withTotalInstanceCount(Integer totalInstanceCount)
The number of instances for which the Capacity Reservation reserves capacity.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
null
when there are no
more results to return.public GetCapacityReservationUsageResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.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 GetCapacityReservationUsageResult withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The 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 GetCapacityReservationUsageResult 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 setTotalInstanceCount(Integer totalInstanceCount)
The number of instances for which the Capacity Reservation reserves capacity.
totalInstanceCount
- The number of instances for which the Capacity Reservation reserves capacity.public Integer getTotalInstanceCount()
The number of instances for which the Capacity Reservation reserves capacity.
public GetCapacityReservationUsageResult withTotalInstanceCount(Integer totalInstanceCount)
The number of instances for which the Capacity Reservation reserves capacity.
totalInstanceCount
- The 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 GetCapacityReservationUsageResult 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 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 GetCapacityReservationUsageResult 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 GetCapacityReservationUsageResult 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 List<InstanceUsage> getInstanceUsages()
Information about the Capacity Reservation usage.
public void setInstanceUsages(Collection<InstanceUsage> instanceUsages)
Information about the Capacity Reservation usage.
instanceUsages
- Information about the Capacity Reservation usage.public GetCapacityReservationUsageResult withInstanceUsages(InstanceUsage... instanceUsages)
Information about the Capacity Reservation usage.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceUsages(java.util.Collection)
or withInstanceUsages(java.util.Collection)
if you want
to override the existing values.
instanceUsages
- Information about the Capacity Reservation usage.public GetCapacityReservationUsageResult withInstanceUsages(Collection<InstanceUsage> instanceUsages)
Information about the Capacity Reservation usage.
instanceUsages
- Information about the Capacity Reservation usage.public String toString()
toString
in class Object
Object.toString()
public GetCapacityReservationUsageResult clone()