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 String getInstanceType()
public void setInstanceType(String instanceType)
instanceType
- The instance type size supported by the Dedicated host.public InstanceCapacity withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType
- The instance type size supported by the Dedicated host.public Integer getAvailableCapacity()
public void setAvailableCapacity(Integer availableCapacity)
availableCapacity
- The number of instances that can still be launched onto the Dedicated
host.public InstanceCapacity withAvailableCapacity(Integer availableCapacity)
Returns a reference to this object so that method calls can be chained together.
availableCapacity
- The number of instances that can still be launched onto the Dedicated
host.public Integer getTotalCapacity()
public void setTotalCapacity(Integer totalCapacity)
totalCapacity
- The total number of instances that can be launched onto the Dedicated
host.public InstanceCapacity withTotalCapacity(Integer totalCapacity)
Returns a reference to this object so that method calls can be chained together.
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 © 2013 Amazon Web Services, Inc. All Rights Reserved.