Class EC2InstanceDetails

    • Method Detail

      • family

        public final String family()

        The instance family of the recommended reservation.

        Returns:
        The instance family of the recommended reservation.
      • instanceType

        public final String instanceType()

        The type of instance that Amazon Web Services recommends.

        Returns:
        The type of instance that Amazon Web Services recommends.
      • region

        public final String region()

        The Amazon Web Services Region of the recommended reservation.

        Returns:
        The Amazon Web Services Region of the recommended reservation.
      • availabilityZone

        public final String availabilityZone()

        The Availability Zone of the recommended reservation.

        Returns:
        The Availability Zone of the recommended reservation.
      • platform

        public final String platform()

        The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.

        Returns:
        The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.
      • tenancy

        public final String tenancy()

        Determines whether the recommended reservation is dedicated or shared.

        Returns:
        Determines whether the recommended reservation is dedicated or shared.
      • currentGeneration

        public final Boolean currentGeneration()

        Determines whether the recommendation is for a current-generation instance.

        Returns:
        Determines whether the recommendation is for a current-generation instance.
      • sizeFlexEligible

        public final Boolean sizeFlexEligible()

        Determines whether the recommended reservation is size flexible.

        Returns:
        Determines whether the recommended reservation is size flexible.
      • 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)