public class InstanceCapacity
extends java.lang.Object
implements java.io.Serializable
Information about the instance type that the Dedicated host supports.
Constructor and Description |
---|
InstanceCapacity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getAvailableCapacity()
The number of instances that can still be launched onto the Dedicated
host.
|
java.lang.String |
getInstanceType()
The instance type size supported by the Dedicated host.
|
java.lang.Integer |
getTotalCapacity()
The total number of instances that can be launched onto the Dedicated
host.
|
int |
hashCode() |
void |
setAvailableCapacity(java.lang.Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated
host.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type size supported by the Dedicated host.
|
void |
setTotalCapacity(java.lang.Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated
host.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceCapacity |
withAvailableCapacity(java.lang.Integer availableCapacity)
The number of instances that can still be launched onto the Dedicated
host.
|
InstanceCapacity |
withInstanceType(java.lang.String instanceType)
The instance type size supported by the Dedicated host.
|
InstanceCapacity |
withTotalCapacity(java.lang.Integer totalCapacity)
The total number of instances that can be launched onto the Dedicated
host.
|
public java.lang.String getInstanceType()
public void setInstanceType(java.lang.String instanceType)
instanceType
- The instance type size supported by the Dedicated host.public InstanceCapacity withInstanceType(java.lang.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 java.lang.Integer getAvailableCapacity()
public void setAvailableCapacity(java.lang.Integer availableCapacity)
availableCapacity
- The number of instances that can still be launched onto the Dedicated
host.public InstanceCapacity withAvailableCapacity(java.lang.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 java.lang.Integer getTotalCapacity()
public void setTotalCapacity(java.lang.Integer totalCapacity)
totalCapacity
- The total number of instances that can be launched onto the Dedicated
host.public InstanceCapacity withTotalCapacity(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.