Class HostProperties

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

public class HostProperties extends Object implements Serializable, Cloneable

Describes properties of a Dedicated host.

See Also:
  • Constructor Details

    • HostProperties

      public HostProperties()
  • Method Details

    • setSockets

      public void setSockets(Integer sockets)

      The number of sockets on the Dedicated host.

      Parameters:
      sockets - The number of sockets on the Dedicated host.
    • getSockets

      public Integer getSockets()

      The number of sockets on the Dedicated host.

      Returns:
      The number of sockets on the Dedicated host.
    • withSockets

      public HostProperties withSockets(Integer sockets)

      The number of sockets on the Dedicated host.

      Parameters:
      sockets - The number of sockets on the Dedicated host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCores

      public void setCores(Integer cores)

      The number of cores on the Dedicated host.

      Parameters:
      cores - The number of cores on the Dedicated host.
    • getCores

      public Integer getCores()

      The number of cores on the Dedicated host.

      Returns:
      The number of cores on the Dedicated host.
    • withCores

      public HostProperties withCores(Integer cores)

      The number of cores on the Dedicated host.

      Parameters:
      cores - The number of cores on the Dedicated host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTotalVCpus

      public void setTotalVCpus(Integer totalVCpus)

      The number of vCPUs on the Dedicated host.

      Parameters:
      totalVCpus - The number of vCPUs on the Dedicated host.
    • getTotalVCpus

      public Integer getTotalVCpus()

      The number of vCPUs on the Dedicated host.

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

      public HostProperties withTotalVCpus(Integer totalVCpus)

      The number of vCPUs on the Dedicated host.

      Parameters:
      totalVCpus - The number of vCPUs on the Dedicated host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceType

      public void setInstanceType(String instanceType)

      The instance type size that the Dedicated host supports (for example, m3.medium).

      Parameters:
      instanceType - The instance type size that the Dedicated host supports (for example, m3.medium).
    • getInstanceType

      public String getInstanceType()

      The instance type size that the Dedicated host supports (for example, m3.medium).

      Returns:
      The instance type size that the Dedicated host supports (for example, m3.medium).
    • withInstanceType

      public HostProperties withInstanceType(String instanceType)

      The instance type size that the Dedicated host supports (for example, m3.medium).

      Parameters:
      instanceType - The instance type size that the Dedicated host supports (for example, m3.medium).
      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 HostProperties clone()
      Overrides:
      clone in class Object