Class HostProperties

    • Method Detail

      • cores

        public final Integer cores()

        The number of cores on the Dedicated Host.

        Returns:
        The number of cores on the Dedicated Host.
      • instanceType

        public final String instanceType()

        The instance type supported by the Dedicated Host. For example, m5.large. If the host supports multiple instance types, no instanceType is returned.

        Returns:
        The instance type supported by the Dedicated Host. For example, m5.large. If the host supports multiple instance types, no instanceType is returned.
      • instanceFamily

        public final String instanceFamily()

        The instance family supported by the Dedicated Host. For example, m5.

        Returns:
        The instance family supported by the Dedicated Host. For example, m5.
      • sockets

        public final Integer sockets()

        The number of sockets on the Dedicated Host.

        Returns:
        The number of sockets on the Dedicated Host.
      • totalVCpus

        public final Integer totalVCpus()

        The total number of vCPUs on the Dedicated Host.

        Returns:
        The total number of vCPUs on the Dedicated Host.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)