@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityAllocation extends Object implements Serializable, Cloneable
Information about instance capacity usage for a Capacity Reservation.
Constructor and Description |
---|
CapacityAllocation() |
Modifier and Type | Method and Description |
---|---|
CapacityAllocation |
clone() |
boolean |
equals(Object obj) |
String |
getAllocationType()
The usage type.
|
Integer |
getCount()
The amount of instance capacity associated with the usage.
|
int |
hashCode() |
void |
setAllocationType(String allocationType)
The usage type.
|
void |
setCount(Integer count)
The amount of instance capacity associated with the usage.
|
String |
toString()
Returns a string representation of this object.
|
CapacityAllocation |
withAllocationType(AllocationType allocationType)
The usage type.
|
CapacityAllocation |
withAllocationType(String allocationType)
The usage type.
|
CapacityAllocation |
withCount(Integer count)
The amount of instance capacity associated with the usage.
|
public void setAllocationType(String allocationType)
The usage type. used
indicates that the instance capacity is in use by instances that are running in
the Capacity Reservation.
allocationType
- The usage type. used
indicates that the instance capacity is in use by instances that are
running in the Capacity Reservation.AllocationType
public String getAllocationType()
The usage type. used
indicates that the instance capacity is in use by instances that are running in
the Capacity Reservation.
used
indicates that the instance capacity is in use by instances that are
running in the Capacity Reservation.AllocationType
public CapacityAllocation withAllocationType(String allocationType)
The usage type. used
indicates that the instance capacity is in use by instances that are running in
the Capacity Reservation.
allocationType
- The usage type. used
indicates that the instance capacity is in use by instances that are
running in the Capacity Reservation.AllocationType
public CapacityAllocation withAllocationType(AllocationType allocationType)
The usage type. used
indicates that the instance capacity is in use by instances that are running in
the Capacity Reservation.
allocationType
- The usage type. used
indicates that the instance capacity is in use by instances that are
running in the Capacity Reservation.AllocationType
public void setCount(Integer count)
The amount of instance capacity associated with the usage. For example a value of 4
indicates that
instance capacity for 4 instances is currently in use.
count
- The amount of instance capacity associated with the usage. For example a value of 4
indicates
that instance capacity for 4 instances is currently in use.public Integer getCount()
The amount of instance capacity associated with the usage. For example a value of 4
indicates that
instance capacity for 4 instances is currently in use.
4
indicates that instance capacity for 4 instances is currently in use.public CapacityAllocation withCount(Integer count)
The amount of instance capacity associated with the usage. For example a value of 4
indicates that
instance capacity for 4 instances is currently in use.
count
- The amount of instance capacity associated with the usage. For example a value of 4
indicates
that instance capacity for 4 instances is currently in use.public String toString()
toString
in class Object
Object.toString()
public CapacityAllocation clone()