Class InstanceIdentity

java.lang.Object
com.amazonaws.services.opsworks.model.InstanceIdentity
All Implemented Interfaces:
Serializable, Cloneable

public class InstanceIdentity extends Object implements Serializable, Cloneable

Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata service. For more information, see Instance Metadata and User Data.

See Also:
  • Constructor Details

    • InstanceIdentity

      public InstanceIdentity()
  • Method Details

    • setDocument

      public void setDocument(String document)

      A JSON document that contains the metadata.

      Parameters:
      document - A JSON document that contains the metadata.
    • getDocument

      public String getDocument()

      A JSON document that contains the metadata.

      Returns:
      A JSON document that contains the metadata.
    • withDocument

      public InstanceIdentity withDocument(String document)

      A JSON document that contains the metadata.

      Parameters:
      document - A JSON document that contains the metadata.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSignature

      public void setSignature(String signature)

      A signature that can be used to verify the document's accuracy and authenticity.

      Parameters:
      signature - A signature that can be used to verify the document's accuracy and authenticity.
    • getSignature

      public String getSignature()

      A signature that can be used to verify the document's accuracy and authenticity.

      Returns:
      A signature that can be used to verify the document's accuracy and authenticity.
    • withSignature

      public InstanceIdentity withSignature(String signature)

      A signature that can be used to verify the document's accuracy and authenticity.

      Parameters:
      signature - A signature that can be used to verify the document's accuracy and authenticity.
      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 InstanceIdentity clone()
      Overrides:
      clone in class Object