public class InstanceCapacity extends Object implements Serializable, Cloneable
Information about the instance type that the Dedicated host supports.
Constructor and Description |
---|
InstanceCapacity() |
Modifier and Type | Method and 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.
|
public void setInstanceType(String instanceType)
The instance type size supported by the Dedicated host.
instanceType
- The instance type size supported by the Dedicated host.public String getInstanceType()
The instance type size supported by the Dedicated host.
public InstanceCapacity withInstanceType(String instanceType)
The instance type size supported by the Dedicated host.
instanceType
- The instance type size supported by the Dedicated host.public void setAvailableCapacity(Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated host.
availableCapacity
- The number of instances that can still be launched onto the
Dedicated host.public Integer getAvailableCapacity()
The number of instances that can still be launched onto the Dedicated host.
public InstanceCapacity withAvailableCapacity(Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated host.
availableCapacity
- The number of instances that can still be launched onto the
Dedicated host.public void setTotalCapacity(Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated host.
totalCapacity
- The total number of instances that can be launched onto the
Dedicated host.public Integer getTotalCapacity()
The total number of instances that can be launched onto the Dedicated host.
public InstanceCapacity withTotalCapacity(Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated host.
totalCapacity
- The total number of instances that can be launched onto the
Dedicated host.public String toString()
toString
in class Object
Object.toString()
public InstanceCapacity clone()
Copyright © 2016. All rights reserved.