@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceCount extends Object implements Serializable, Cloneable
Describes a Reserved Instance listing state.
Constructor and Description |
---|
InstanceCount() |
Modifier and Type | Method and Description |
---|---|
InstanceCount |
clone() |
boolean |
equals(Object obj) |
Integer |
getInstanceCount()
The number of listed Reserved Instances in the state specified by the
state . |
String |
getState()
The states of the listed Reserved Instances.
|
int |
hashCode() |
void |
setInstanceCount(Integer instanceCount)
The number of listed Reserved Instances in the state specified by the
state . |
void |
setState(ListingState state)
The states of the listed Reserved Instances.
|
void |
setState(String state)
The states of the listed Reserved Instances.
|
String |
toString()
Returns a string representation of this object.
|
InstanceCount |
withInstanceCount(Integer instanceCount)
The number of listed Reserved Instances in the state specified by the
state . |
InstanceCount |
withState(ListingState state)
The states of the listed Reserved Instances.
|
InstanceCount |
withState(String state)
The states of the listed Reserved Instances.
|
public void setInstanceCount(Integer instanceCount)
The number of listed Reserved Instances in the state specified by the state
.
instanceCount
- The number of listed Reserved Instances in the state specified by the state
.public Integer getInstanceCount()
The number of listed Reserved Instances in the state specified by the state
.
state
.public InstanceCount withInstanceCount(Integer instanceCount)
The number of listed Reserved Instances in the state specified by the state
.
instanceCount
- The number of listed Reserved Instances in the state specified by the state
.public void setState(String state)
The states of the listed Reserved Instances.
state
- The states of the listed Reserved Instances.ListingState
public String getState()
The states of the listed Reserved Instances.
ListingState
public InstanceCount withState(String state)
The states of the listed Reserved Instances.
state
- The states of the listed Reserved Instances.ListingState
public void setState(ListingState state)
The states of the listed Reserved Instances.
state
- The states of the listed Reserved Instances.ListingState
public InstanceCount withState(ListingState state)
The states of the listed Reserved Instances.
state
- The states of the listed Reserved Instances.ListingState
public String toString()
toString
in class Object
Object.toString()
public InstanceCount clone()