public class AvailableCapacity
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The capacity information for instances launched onto the Dedicated host.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<InstanceCapacity> |
availableInstanceCapacity
The total number of instances that the Dedicated host supports.
|
private java.lang.Integer |
availableVCpus
The number of vCPUs available on the Dedicated host.
|
Constructor and Description |
---|
AvailableCapacity() |
Modifier and Type | Method and Description |
---|---|
AvailableCapacity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<InstanceCapacity> |
getAvailableInstanceCapacity()
The total number of instances that the Dedicated host supports.
|
java.lang.Integer |
getAvailableVCpus()
The number of vCPUs available on the Dedicated host.
|
int |
hashCode() |
void |
setAvailableInstanceCapacity(java.util.Collection<InstanceCapacity> availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
|
void |
setAvailableVCpus(java.lang.Integer availableVCpus)
The number of vCPUs available on the Dedicated host.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AvailableCapacity |
withAvailableInstanceCapacity(java.util.Collection<InstanceCapacity> availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
|
AvailableCapacity |
withAvailableInstanceCapacity(InstanceCapacity... availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
|
AvailableCapacity |
withAvailableVCpus(java.lang.Integer availableVCpus)
The number of vCPUs available on the Dedicated host.
|
private SdkInternalList<InstanceCapacity> availableInstanceCapacity
The total number of instances that the Dedicated host supports.
private java.lang.Integer availableVCpus
The number of vCPUs available on the Dedicated host.
public java.util.List<InstanceCapacity> getAvailableInstanceCapacity()
The total number of instances that the Dedicated host supports.
public void setAvailableInstanceCapacity(java.util.Collection<InstanceCapacity> availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.public AvailableCapacity withAvailableInstanceCapacity(InstanceCapacity... availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
NOTE: This method appends the values to the existing list (if
any). Use setAvailableInstanceCapacity(java.util.Collection)
or
withAvailableInstanceCapacity(java.util.Collection)
if you want
to override the existing values.
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.public AvailableCapacity withAvailableInstanceCapacity(java.util.Collection<InstanceCapacity> availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.public void setAvailableVCpus(java.lang.Integer availableVCpus)
The number of vCPUs available on the Dedicated host.
availableVCpus
- The number of vCPUs available on the Dedicated host.public java.lang.Integer getAvailableVCpus()
The number of vCPUs available on the Dedicated host.
public AvailableCapacity withAvailableVCpus(java.lang.Integer availableVCpus)
The number of vCPUs available on the Dedicated host.
availableVCpus
- The number of vCPUs available on 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 AvailableCapacity clone()
clone
in class java.lang.Object