@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceUsage extends Object implements Serializable, Cloneable
Information about the Capacity Reservation usage.
Constructor and Description |
---|
InstanceUsage() |
Modifier and Type | Method and Description |
---|---|
InstanceUsage |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
|
Integer |
getUsedInstanceCount()
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
|
int |
hashCode() |
void |
setAccountId(String accountId)
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
|
void |
setUsedInstanceCount(Integer usedInstanceCount)
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
|
String |
toString()
Returns a string representation of this object.
|
InstanceUsage |
withAccountId(String accountId)
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
|
InstanceUsage |
withUsedInstanceCount(Integer usedInstanceCount)
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
|
public void setAccountId(String accountId)
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
accountId
- The ID of the Amazon Web Services account that is making use of the Capacity Reservation.public String getAccountId()
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
public InstanceUsage withAccountId(String accountId)
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
accountId
- The ID of the Amazon Web Services account that is making use of the Capacity Reservation.public void setUsedInstanceCount(Integer usedInstanceCount)
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
usedInstanceCount
- The number of instances the Amazon Web Services account currently has in the Capacity Reservation.public Integer getUsedInstanceCount()
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
public InstanceUsage withUsedInstanceCount(Integer usedInstanceCount)
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
usedInstanceCount
- The number of instances the Amazon Web Services account currently has in the Capacity Reservation.public String toString()
toString
in class Object
Object.toString()
public InstanceUsage clone()