Class InstanceIdentity

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

public class InstanceIdentity extends Object implements Serializable, Cloneable

Identity information for the EC2 instance that is hosting the task runner. You can get this value by calling a metadata URI from the EC2 instance. For more information, see Instance Metadata in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves that your task runner is running on an EC2 instance, and ensures the proper AWS Data Pipeline service charges are applied to your pipeline.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
    A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
    int
     
    void
    setDocument(String document)
    A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
    void
    setSignature(String signature)
    A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
    Returns a string representation of this object; useful for testing and debugging.
    withDocument(String document)
    A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
    withSignature(String signature)
    A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InstanceIdentity

      public InstanceIdentity()
  • Method Details

    • setDocument

      public void setDocument(String document)

      A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.

      Parameters:
      document - A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
    • getDocument

      public String getDocument()

      A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.

      Returns:
      A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
    • withDocument

      public InstanceIdentity withDocument(String document)

      A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.

      Parameters:
      document - A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSignature

      public void setSignature(String signature)

      A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.

      Parameters:
      signature - A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
    • getSignature

      public String getSignature()

      A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.

      Returns:
      A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
    • withSignature

      public InstanceIdentity withSignature(String signature)

      A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.

      Parameters:
      signature - A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
      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