Package com.amazonaws.services.ec2.model
Class AvailableCapacity
- java.lang.Object
-
- com.amazonaws.services.ec2.model.AvailableCapacity
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AvailableCapacity extends Object implements Serializable, Cloneable
The capacity information for instances launched onto the Dedicated host.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AvailableCapacity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(InstanceCapacity... availableInstanceCapacity)
The total number of instances that the Dedicated host supports.AvailableCapacity
withAvailableInstanceCapacity(Collection<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.
-
-
-
Method Detail
-
getAvailableInstanceCapacity
public List<InstanceCapacity> getAvailableInstanceCapacity()
The total number of instances that the Dedicated host supports.
- Returns:
- The total number of instances that the Dedicated host supports.
-
setAvailableInstanceCapacity
public void setAvailableInstanceCapacity(Collection<InstanceCapacity> availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
- Parameters:
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.
-
withAvailableInstanceCapacity
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)
orwithAvailableInstanceCapacity(java.util.Collection)
if you want to override the existing values.- Parameters:
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAvailableInstanceCapacity
public AvailableCapacity withAvailableInstanceCapacity(Collection<InstanceCapacity> availableInstanceCapacity)
The total number of instances that the Dedicated host supports.
- Parameters:
availableInstanceCapacity
- The total number of instances that the Dedicated host supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailableVCpus
public void setAvailableVCpus(Integer availableVCpus)
The number of vCPUs available on the Dedicated host.
- Parameters:
availableVCpus
- The number of vCPUs available on the Dedicated host.
-
getAvailableVCpus
public Integer getAvailableVCpus()
The number of vCPUs available on the Dedicated host.
- Returns:
- The number of vCPUs available on the Dedicated host.
-
withAvailableVCpus
public AvailableCapacity withAvailableVCpus(Integer availableVCpus)
The number of vCPUs available on the Dedicated host.
- Parameters:
availableVCpus
- The number of vCPUs available on the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AvailableCapacity clone()
-
-