Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.datapipeline.model
Class InstanceIdentity

java.lang.Object
  extended by com.amazonaws.services.datapipeline.model.InstanceIdentity
All Implemented Interfaces:
Serializable

public class InstanceIdentity
extends Object
implements Serializable

Identity information for the Amazon 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, go to 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:
Serialized Form

Constructor Summary
InstanceIdentity()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDocument()
          A description of an Amazon EC2 instance that is generated when the instance is launched and exposed to the instance via the instance meta-data service in the form of a JSON representation of an object.
 String getSignature()
          A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
 int hashCode()
           
 void setDocument(String document)
          A description of an Amazon EC2 instance that is generated when the instance is launched and exposed to the instance via the instance meta-data 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.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceIdentity withDocument(String document)
          A description of an Amazon EC2 instance that is generated when the instance is launched and exposed to the instance via the instance meta-data service in the form of a JSON representation of an object.
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceIdentity

public InstanceIdentity()
Method Detail

getDocument

public String getDocument()
A description of an Amazon EC2 instance that is generated when the instance is launched and exposed to the instance via the instance meta-data service in the form of a JSON representation of an object.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

Returns:
A description of an Amazon EC2 instance that is generated when the instance is launched and exposed to the instance via the instance meta-data service in the form of a JSON representation of an object.

setDocument

public void setDocument(String document)
A description of an Amazon EC2 instance that is generated when the instance is launched and exposed to the instance via the instance meta-data service in the form of a JSON representation of an object.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

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

withDocument

public InstanceIdentity withDocument(String document)
A description of an Amazon EC2 instance that is generated when the instance is launched and exposed to the instance via the instance meta-data service in the form of a JSON representation of an object.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

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

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.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

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

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.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

Parameters:
signature - 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024
Pattern: [ -??-??-?\r\n\t]*

Parameters:
signature - A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.