Package com.amazonaws.services.ec2.model
Class InstanceCount
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceCount
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceCount extends Object implements Serializable, Cloneable
Describes a Reserved Instance listing state.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceCount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceCount
clone()
boolean
equals(Object obj)
Integer
getInstanceCount()
The number of listed Reserved Instances in the state specified by thestate
.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 thestate
.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)
The number of listed Reserved Instances in the state specified by thestate
.InstanceCount
withState(ListingState state)
The states of the listed Reserved Instances.InstanceCount
withState(String state)
The states of the listed Reserved Instances.
-
-
-
Method Detail
-
setState
public void setState(String state)
The states of the listed Reserved Instances.
- Parameters:
state
- The states of the listed Reserved Instances.- See Also:
ListingState
-
getState
public String getState()
The states of the listed Reserved Instances.
- Returns:
- The states of the listed Reserved Instances.
- See Also:
ListingState
-
withState
public InstanceCount withState(String state)
The states of the listed Reserved Instances.
- Parameters:
state
- The states of the listed Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ListingState
-
setState
public void setState(ListingState state)
The states of the listed Reserved Instances.
- Parameters:
state
- The states of the listed Reserved Instances.- See Also:
ListingState
-
withState
public InstanceCount withState(ListingState state)
The states of the listed Reserved Instances.
- Parameters:
state
- The states of the listed Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ListingState
-
setInstanceCount
public void setInstanceCount(Integer instanceCount)
The number of listed Reserved Instances in the state specified by the
state
.- Parameters:
instanceCount
- The number of listed Reserved Instances in the state specified by thestate
.
-
getInstanceCount
public Integer getInstanceCount()
The number of listed Reserved Instances in the state specified by the
state
.- Returns:
- The number of listed Reserved Instances in the state specified by
the
state
.
-
withInstanceCount
public InstanceCount withInstanceCount(Integer instanceCount)
The number of listed Reserved Instances in the state specified by the
state
.- Parameters:
instanceCount
- The number of listed Reserved Instances in the state specified by thestate
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceCount clone()
-
-