public class InstanceCapacity
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about the instance type that the Dedicated host supports.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
availableCapacity
The number of instances that can still be launched onto the Dedicated
host.
|
private java.lang.String |
instanceType
The instance type size supported by the Dedicated host.
|
private java.lang.Integer |
totalCapacity
The total number of instances that can be launched onto the Dedicated
host.
|
Constructor and Description |
---|
InstanceCapacity() |
Modifier and Type | Method and Description |
---|---|
InstanceCapacity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getAvailableCapacity()
The number of instances that can still be launched onto the Dedicated
host.
|
java.lang.String |
getInstanceType()
The instance type size supported by the Dedicated host.
|
java.lang.Integer |
getTotalCapacity()
The total number of instances that can be launched onto the Dedicated
host.
|
int |
hashCode() |
void |
setAvailableCapacity(java.lang.Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated
host.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type size supported by the Dedicated host.
|
void |
setTotalCapacity(java.lang.Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated
host.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceCapacity |
withAvailableCapacity(java.lang.Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated
host.
|
InstanceCapacity |
withInstanceType(java.lang.String instanceType)
The instance type size supported by the Dedicated host.
|
InstanceCapacity |
withTotalCapacity(java.lang.Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated
host.
|
private java.lang.String instanceType
The instance type size supported by the Dedicated host.
private java.lang.Integer availableCapacity
The number of instances that can still be launched onto the Dedicated host.
private java.lang.Integer totalCapacity
The total number of instances that can be launched onto the Dedicated host.
public void setInstanceType(java.lang.String instanceType)
The instance type size supported by the Dedicated host.
instanceType
- The instance type size supported by the Dedicated host.public java.lang.String getInstanceType()
The instance type size supported by the Dedicated host.
public InstanceCapacity withInstanceType(java.lang.String instanceType)
The instance type size supported by the Dedicated host.
instanceType
- The instance type size supported by the Dedicated host.public void setAvailableCapacity(java.lang.Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated host.
availableCapacity
- The number of instances that can still be launched onto the
Dedicated host.public java.lang.Integer getAvailableCapacity()
The number of instances that can still be launched onto the Dedicated host.
public InstanceCapacity withAvailableCapacity(java.lang.Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated host.
availableCapacity
- The number of instances that can still be launched onto the
Dedicated host.public void setTotalCapacity(java.lang.Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated host.
totalCapacity
- The total number of instances that can be launched onto the
Dedicated host.public java.lang.Integer getTotalCapacity()
The total number of instances that can be launched onto the Dedicated host.
public InstanceCapacity withTotalCapacity(java.lang.Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated host.
totalCapacity
- The total number of instances that can be launched onto the
Dedicated host.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceCapacity clone()
clone
in class java.lang.Object