public class AvailableCapacity extends Object implements Serializable, Cloneable
The capacity information for instances launched onto the Dedicated host.
Constructor and Description |
---|
AvailableCapacity() |
Modifier and Type | Method and Description |
---|---|
AvailableCapacity |
clone() |
boolean |
equals(Object obj) |
List<InstanceCapacity> |
getAvailableInstanceCapacity()
The total number of instances that the Dedicated host supports.
|
Integer |
getAvailableVCpus()
The number of vCPUs available on the Dedicated host.
|
int |
hashCode() |
void |
setAvailableInstanceCapacity(Collection<InstanceCapacity> availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
|
void |
setAvailableVCpus(Integer availableVCpus)
The number of vCPUs available on the Dedicated host.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AvailableCapacity |
withAvailableInstanceCapacity(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(Integer availableVCpus)
The number of vCPUs available on the Dedicated host.
|
public List<InstanceCapacity> getAvailableInstanceCapacity()
public void setAvailableInstanceCapacity(Collection<InstanceCapacity> availableInstanceCapacity)
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.public AvailableCapacity withAvailableInstanceCapacity(InstanceCapacity... availableInstanceCapacity)
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.
Returns a reference to this object so that method calls can be chained together.
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.public AvailableCapacity withAvailableInstanceCapacity(Collection<InstanceCapacity> availableInstanceCapacity)
Returns a reference to this object so that method calls can be chained together.
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.public Integer getAvailableVCpus()
public void setAvailableVCpus(Integer availableVCpus)
availableVCpus
- The number of vCPUs available on the Dedicated host.public AvailableCapacity withAvailableVCpus(Integer availableVCpus)
Returns a reference to this object so that method calls can be chained together.
availableVCpus
- The number of vCPUs available on the Dedicated host.public String toString()
toString
in class Object
Object.toString()
public AvailableCapacity clone()
Copyright © 2015. All rights reserved.