Class AvailableCapacity

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

public class AvailableCapacity extends Object implements Serializable, Cloneable

The capacity information for instances launched onto the Dedicated host.

See Also:
  • Constructor Details

    • AvailableCapacity

      public AvailableCapacity()
  • Method Details

    • getAvailableInstanceCapacity

      public List<InstanceCapacity> getAvailableInstanceCapacity()

      The total number of instances that the Dedicated host supports.

      Returns:
      The total number of instances that the Dedicated host supports.
    • setAvailableInstanceCapacity

      public void setAvailableInstanceCapacity(Collection<InstanceCapacity> availableInstanceCapacity)

      The total number of instances that the Dedicated host supports.

      Parameters:
      availableInstanceCapacity - The total number of instances that the Dedicated host supports.
    • withAvailableInstanceCapacity

      public AvailableCapacity withAvailableInstanceCapacity(InstanceCapacity... availableInstanceCapacity)

      The total number of instances that the Dedicated host supports.

      NOTE: This method appends the values to the existing list (if any). Use setAvailableInstanceCapacity(java.util.Collection) or withAvailableInstanceCapacity(java.util.Collection) if you want to override the existing values.

      Parameters:
      availableInstanceCapacity - The total number of instances that the Dedicated host supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAvailableInstanceCapacity

      public AvailableCapacity withAvailableInstanceCapacity(Collection<InstanceCapacity> availableInstanceCapacity)

      The total number of instances that the Dedicated host supports.

      Parameters:
      availableInstanceCapacity - The total number of instances that the Dedicated host supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAvailableVCpus

      public void setAvailableVCpus(Integer availableVCpus)

      The number of vCPUs available on the Dedicated host.

      Parameters:
      availableVCpus - The number of vCPUs available on the Dedicated host.
    • getAvailableVCpus

      public Integer getAvailableVCpus()

      The number of vCPUs available on the Dedicated host.

      Returns:
      The number of vCPUs available on the Dedicated host.
    • withAvailableVCpus

      public AvailableCapacity withAvailableVCpus(Integer availableVCpus)

      The number of vCPUs available on the Dedicated host.

      Parameters:
      availableVCpus - The number of vCPUs available on 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 AvailableCapacity clone()
      Overrides:
      clone in class Object