Package com.amazonaws.services.ec2.model
Class AvailableCapacity
java.lang.Object
com.amazonaws.services.ec2.model.AvailableCapacity
- All Implemented Interfaces:
Serializable
,Cloneable
The capacity information for instances launched onto the Dedicated host.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The total number of instances that the Dedicated host supports.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.toString()
Returns a string representation of this object; useful for testing and debugging.withAvailableInstanceCapacity
(InstanceCapacity... availableInstanceCapacity) The total number of instances that the Dedicated host supports.withAvailableInstanceCapacity
(Collection<InstanceCapacity> availableInstanceCapacity) The total number of instances that the Dedicated host supports.withAvailableVCpus
(Integer availableVCpus) The number of vCPUs available on the Dedicated host.
-
Constructor Details
-
AvailableCapacity
public AvailableCapacity()
-
-
Method Details
-
getAvailableInstanceCapacity
The total number of instances that the Dedicated host supports.
- Returns:
- The total number of instances that the Dedicated host supports.
-
setAvailableInstanceCapacity
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
The number of vCPUs available on the Dedicated host.
- Parameters:
availableVCpus
- The number of vCPUs available on the Dedicated host.
-
getAvailableVCpus
The number of vCPUs available on the Dedicated host.
- Returns:
- The number of vCPUs available on the Dedicated host.
-
withAvailableVCpus
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-