public class InstanceCount extends Object implements Serializable
Describes a Reserved Instance listing state.
Constructor and Description |
---|
InstanceCount() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getInstanceCount()
he 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)
he 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; useful for testing and
debugging.
|
InstanceCount |
withInstanceCount(Integer instanceCount)
he 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 String getState()
Constraints:
Allowed Values: available, sold, cancelled, pending
ListingState
public void setState(String state)
Constraints:
Allowed Values: available, sold, cancelled, pending
state
- The states of the listed Reserved Instances.ListingState
public InstanceCount withState(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 Integer getInstanceCount()
state
.state
.public void setInstanceCount(Integer instanceCount)
state
.instanceCount
- he number of listed Reserved Instances in the state specified by the
state
.public InstanceCount withInstanceCount(Integer instanceCount)
state
.
Returns a reference to this object so that method calls can be chained together.
instanceCount
- he number of listed Reserved Instances in the state specified by the
state
.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.