public class InstanceCount
extends java.lang.Object
implements java.io.Serializable
Describes a Reserved Instance listing state.
Constructor and Description |
---|
InstanceCount() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getState()
Constraints:
Allowed Values: available, sold, cancelled, pending
ListingState
public void setState(java.lang.String state)
Constraints:
Allowed Values: available, sold, cancelled, pending
state
- The states of the listed Reserved Instances.ListingState
public InstanceCount withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available, sold, cancelled, pending
state
- The states of the listed Reserved Instances.ListingState
public void setState(ListingState state)
Constraints:
Allowed Values: available, sold, cancelled, pending
state
- The states of the listed Reserved Instances.ListingState
public InstanceCount withState(ListingState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available, sold, cancelled, pending
state
- The states of the listed Reserved Instances.ListingState
public java.lang.Integer getInstanceCount()
state
.state
.public void setInstanceCount(java.lang.Integer instanceCount)
state
.instanceCount
- The number of listed Reserved Instances in the state specified by the
state
.public InstanceCount withInstanceCount(java.lang.Integer instanceCount)
state
.
Returns a reference to this object so that method calls can be chained together.
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 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.