public class InstanceCount
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a Reserved Instance listing state.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
instanceCount
The number of listed Reserved Instances in the state specified by the
state . |
private java.lang.String |
state
The states of the listed Reserved Instances.
|
Constructor and Description |
---|
InstanceCount() |
Modifier and Type | Method and Description |
---|---|
InstanceCount |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getInstanceCount()
The number of listed Reserved Instances in the state specified by the
state . |
java.lang.String |
getState()
The states of the listed Reserved Instances.
|
int |
hashCode() |
void |
setInstanceCount(java.lang.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(java.lang.String state)
The states of the listed Reserved Instances.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceCount |
withInstanceCount(java.lang.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(java.lang.String state)
The states of the listed Reserved Instances.
|
private java.lang.String state
The states of the listed Reserved Instances.
private java.lang.Integer instanceCount
The number of listed Reserved Instances in the state specified by the
state
.
public void setState(java.lang.String state)
The states of the listed Reserved Instances.
state
- The states of the listed Reserved Instances.ListingState
public java.lang.String getState()
The states of the listed Reserved Instances.
ListingState
public InstanceCount withState(java.lang.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 void setInstanceCount(java.lang.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 java.lang.Integer getInstanceCount()
The number of listed Reserved Instances in the state specified by the
state
.
state
.public InstanceCount withInstanceCount(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceCount clone()
clone
in class java.lang.Object