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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceIdentityclone()booleanequals(Object obj)StringgetDocument()A JSON document that contains the metadata.StringgetSignature()A signature that can be used to verify the document's accuracy and authenticity.inthashCode()voidsetDocument(String document)A JSON document that contains the metadata.voidsetSignature(String signature)A signature that can be used to verify the document's accuracy and authenticity.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceIdentitywithDocument(String document)A JSON document that contains the metadata.InstanceIdentitywithSignature(String signature)A signature that can be used to verify the document's accuracy and authenticity.
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceIdentity clone()
-
-