Package com.amazonaws.services.ec2.model
Class InstanceCapacity
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceCapacity
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceCapacity extends Object implements Serializable, Cloneable
Information about the instance type that the Dedicated host supports.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceCapacity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceCapacity
clone()
boolean
equals(Object obj)
Integer
getAvailableCapacity()
The number of instances that can still be launched onto the Dedicated host.String
getInstanceType()
The instance type size supported by the Dedicated host.Integer
getTotalCapacity()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.InstanceCapacity
withAvailableCapacity(Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated host.InstanceCapacity
withInstanceType(String instanceType)
The instance type size supported by the Dedicated host.InstanceCapacity
withTotalCapacity(Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated host.
-
-
-
Method Detail
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type size supported by the Dedicated host.
- Parameters:
instanceType
- The instance type size supported by the Dedicated host.
-
getInstanceType
public String getInstanceType()
The instance type size supported by the Dedicated host.
- Returns:
- The instance type size supported by the Dedicated host.
-
withInstanceType
public InstanceCapacity withInstanceType(String instanceType)
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
public void setAvailableCapacity(Integer availableCapacity)
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
public Integer 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
public InstanceCapacity withAvailableCapacity(Integer availableCapacity)
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
public void setTotalCapacity(Integer totalCapacity)
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
public Integer 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
public InstanceCapacity withTotalCapacity(Integer totalCapacity)
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
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 InstanceCapacity clone()
-
-