com.amazonaws.services.ec2.model
Class InstanceCount

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InstanceCount
All Implemented Interfaces:
java.io.Serializable

public class InstanceCount
extends java.lang.Object
implements java.io.Serializable

Describes a Reserved Instance listing state.

See Also:
Serialized Form

Constructor Summary
InstanceCount()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getInstanceCount()
          he 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)
          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(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)
          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(java.lang.String state)
          The states of the listed Reserved Instances.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceCount

public InstanceCount()
Method Detail

getState

public java.lang.String getState()
The states of the listed Reserved Instances.

Constraints:
Allowed Values: available, sold, cancelled, pending

Returns:
The states of the listed Reserved Instances.
See Also:
ListingState

setState

public void setState(java.lang.String state)
The states of the listed Reserved Instances.

Constraints:
Allowed Values: available, sold, cancelled, pending

Parameters:
state - The states of the listed Reserved Instances.
See Also:
ListingState

withState

public InstanceCount withState(java.lang.String state)
The states of the listed Reserved Instances.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: available, sold, cancelled, pending

Parameters:
state - The states of the listed Reserved Instances.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: available, sold, cancelled, pending

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: available, sold, cancelled, pending

Parameters:
state - The states of the listed Reserved Instances.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ListingState

getInstanceCount

public java.lang.Integer getInstanceCount()
he number of listed Reserved Instances in the state specified by the state.

Returns:
he number of listed Reserved Instances in the state specified by the state.

setInstanceCount

public void setInstanceCount(java.lang.Integer instanceCount)
he number of listed Reserved Instances in the state specified by the state.

Parameters:
instanceCount - he number of listed Reserved Instances in the state specified by the state.

withInstanceCount

public InstanceCount withInstanceCount(java.lang.Integer instanceCount)
he number of listed Reserved Instances in the state specified by the state.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceCount - he number of listed Reserved Instances in the state specified by the state.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.