Class ImageMetadata

    • Method Detail

      • imageId

        public final String imageId()

        The ID of the AMI.

        Returns:
        The ID of the AMI.
      • name

        public final String name()

        The name of the AMI.

        Returns:
        The name of the AMI.
      • ownerId

        public final String ownerId()

        The ID of the Amazon Web Services account that owns the AMI.

        Returns:
        The ID of the Amazon Web Services account that owns the AMI.
      • state

        public final ImageState state()

        The current state of the AMI. If the state is available, the AMI is successfully registered and can be used to launch an instance.

        If the service returns an enum value that is not available in the current SDK version, state will return ImageState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The current state of the AMI. If the state is available, the AMI is successfully registered and can be used to launch an instance.
        See Also:
        ImageState
      • stateAsString

        public final String stateAsString()

        The current state of the AMI. If the state is available, the AMI is successfully registered and can be used to launch an instance.

        If the service returns an enum value that is not available in the current SDK version, state will return ImageState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The current state of the AMI. If the state is available, the AMI is successfully registered and can be used to launch an instance.
        See Also:
        ImageState
      • imageOwnerAlias

        public final String imageOwnerAlias()

        The alias of the AMI owner.

        Valid values: amazon | aws-marketplace

        Returns:
        The alias of the AMI owner.

        Valid values: amazon | aws-marketplace

      • creationDate

        public final String creationDate()

        The date and time the AMI was created.

        Returns:
        The date and time the AMI was created.
      • deprecationTime

        public final String deprecationTime()

        The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.

        Returns:
        The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.
      • isPublic

        public final Boolean isPublic()

        Indicates whether the AMI has public launch permissions. A value of true means this AMI has public launch permissions, while false means it has only implicit (AMI owner) or explicit (shared with your account) launch permissions.

        Returns:
        Indicates whether the AMI has public launch permissions. A value of true means this AMI has public launch permissions, while false means it has only implicit (AMI owner) or explicit (shared with your account) launch permissions.
      • 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)