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 InstanceCapacityclone()booleanequals(Object obj)IntegergetAvailableCapacity()The number of instances that can still be launched onto the Dedicated host.StringgetInstanceType()The instance type size supported by the Dedicated host.IntegergetTotalCapacity()The total number of instances that can be launched onto the Dedicated host.inthashCode()voidsetAvailableCapacity(Integer availableCapacity)The number of instances that can still be launched onto the Dedicated host.voidsetInstanceType(String instanceType)The instance type size supported by the Dedicated host.voidsetTotalCapacity(Integer totalCapacity)The total number of instances that can be launched onto the Dedicated host.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceCapacitywithAvailableCapacity(Integer availableCapacity)The number of instances that can still be launched onto the Dedicated host.InstanceCapacitywithInstanceType(String instanceType)The instance type size supported by the Dedicated host.InstanceCapacitywithTotalCapacity(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceCapacity clone()
-
-