Package com.amazonaws.services.ec2.model
Class InstanceCapacity
java.lang.Object
com.amazonaws.services.ec2.model.InstanceCapacity
- All Implemented Interfaces:
Serializable
,Cloneable
Information about the instance type that the Dedicated host supports.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The number of instances that can still be launched onto the Dedicated host.The instance type size supported by the Dedicated host.The total number of instances that can be launched onto the Dedicated host.int
hashCode()
void
setAvailableCapacity
(Integer availableCapacity) The number of instances that can still be launched onto the Dedicated host.void
setInstanceType
(String instanceType) The instance type size supported by the Dedicated host.void
setTotalCapacity
(Integer totalCapacity) The total number of instances that can be launched onto the Dedicated host.toString()
Returns a string representation of this object; useful for testing and debugging.withAvailableCapacity
(Integer availableCapacity) The number of instances that can still be launched onto the Dedicated host.withInstanceType
(String instanceType) The instance type size supported by the Dedicated host.withTotalCapacity
(Integer totalCapacity) The total number of instances that can be launched onto the Dedicated host.
-
Constructor Details
-
InstanceCapacity
public InstanceCapacity()
-
-
Method Details
-
setInstanceType
The instance type size supported by the Dedicated host.
- Parameters:
instanceType
- The instance type size supported by the Dedicated host.
-
getInstanceType
The instance type size supported by the Dedicated host.
- Returns:
- The instance type size supported by the Dedicated host.
-
withInstanceType
The instance type size supported by the Dedicated host.
- Parameters:
instanceType
- The instance type size supported by the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailableCapacity
The number of instances that can still be launched onto the Dedicated host.
- Parameters:
availableCapacity
- The number of instances that can still be launched onto the Dedicated host.
-
getAvailableCapacity
The number of instances that can still be launched onto the Dedicated host.
- Returns:
- The number of instances that can still be launched onto the Dedicated host.
-
withAvailableCapacity
The number of instances that can still be launched onto the Dedicated host.
- Parameters:
availableCapacity
- The number of instances that can still be launched onto the Dedicated host.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTotalCapacity
The total number of instances that can be launched onto the Dedicated host.
- Parameters:
totalCapacity
- The total number of instances that can be launched onto the Dedicated host.
-
getTotalCapacity
The total number of instances that can be launched onto the Dedicated host.
- Returns:
- The total number of instances that can be launched onto the Dedicated host.
-
withTotalCapacity
The total number of instances that can be launched onto the Dedicated host.
- Parameters:
totalCapacity
- The total number of instances that can be launched onto 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
-