Class InstanceCapacity

java.lang.Object
com.amazonaws.services.ec2.model.InstanceCapacity
All Implemented Interfaces:
Serializable, Cloneable

public class InstanceCapacity extends Object implements Serializable, Cloneable

Information about the instance type that the Dedicated host supports.

See Also:
  • Constructor Details

    • InstanceCapacity

      public InstanceCapacity()
  • Method Details

    • setInstanceType

      public void setInstanceType(String instanceType)

      The instance type size supported by the Dedicated host.

      Parameters:
      instanceType - The instance type size supported by the Dedicated host.
    • getInstanceType

      public String getInstanceType()

      The instance type size supported by the Dedicated host.

      Returns:
      The instance type size supported by the Dedicated host.
    • withInstanceType

      public InstanceCapacity withInstanceType(String instanceType)

      The instance type size supported by the Dedicated host.

      Parameters:
      instanceType - The instance type size supported by the Dedicated host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAvailableCapacity

      public void setAvailableCapacity(Integer availableCapacity)

      The number of instances that can still be launched onto the Dedicated host.

      Parameters:
      availableCapacity - The number of instances that can still be launched onto the Dedicated host.
    • getAvailableCapacity

      public Integer getAvailableCapacity()

      The number of instances that can still be launched onto the Dedicated host.

      Returns:
      The number of instances that can still be launched onto the Dedicated host.
    • withAvailableCapacity

      public InstanceCapacity withAvailableCapacity(Integer availableCapacity)

      The number of instances that can still be launched onto the Dedicated host.

      Parameters:
      availableCapacity - The number of instances that can still be launched onto the Dedicated host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTotalCapacity

      public void setTotalCapacity(Integer totalCapacity)

      The total number of instances that can be launched onto the Dedicated host.

      Parameters:
      totalCapacity - The total number of instances that can be launched onto the Dedicated host.
    • getTotalCapacity

      public Integer getTotalCapacity()

      The total number of instances that can be launched onto the Dedicated host.

      Returns:
      The total number of instances that can be launched onto the Dedicated host.
    • withTotalCapacity

      public InstanceCapacity withTotalCapacity(Integer totalCapacity)

      The total number of instances that can be launched onto the Dedicated host.

      Parameters:
      totalCapacity - The total number of instances that can be launched onto the Dedicated host.
      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 InstanceCapacity clone()
      Overrides:
      clone in class Object