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:
  • Constructor Details

    • InstanceCount

      public InstanceCount()
  • Method Details

    • setState

      public void setState(String state)

      The states of the listed Reserved Instances.

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

      public String getState()

      The states of the listed Reserved Instances.

      Returns:
      The states of the listed Reserved Instances.
      See Also:
    • 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:
    • setState

      public void setState(ListingState state)

      The states of the listed Reserved Instances.

      Parameters:
      state - The states of the listed Reserved Instances.
      See Also:
    • 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:
    • 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 the state.
    • 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 the state.
      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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public InstanceCount clone()
      Overrides:
      clone in class Object