Class InstanceCapacity

    • Constructor Detail

      • InstanceCapacity

        public InstanceCapacity()
    • Method Detail

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object