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 InstanceCountclone()booleanequals(Object obj)IntegergetInstanceCount()The number of listed Reserved Instances in the state specified by thestate.StringgetState()The states of the listed Reserved Instances.inthashCode()voidsetInstanceCount(Integer instanceCount)The number of listed Reserved Instances in the state specified by thestate.voidsetState(ListingState state)The states of the listed Reserved Instances.voidsetState(String state)The states of the listed Reserved Instances.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceCountwithInstanceCount(Integer instanceCount)The number of listed Reserved Instances in the state specified by thestate.InstanceCountwithState(ListingState state)The states of the listed Reserved Instances.InstanceCountwithState(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceCount clone()
-
-