public class InstanceIdentity
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata service. For more information, see Instance Metadata and User Data.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
document
A JSON document that contains the metadata.
|
private java.lang.String |
signature
A signature that can be used to verify the document's accuracy and
authenticity.
|
Constructor and Description |
---|
InstanceIdentity() |
Modifier and Type | Method and Description |
---|---|
InstanceIdentity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDocument()
A JSON document that contains the metadata.
|
java.lang.String |
getSignature()
A signature that can be used to verify the document's accuracy and
authenticity.
|
int |
hashCode() |
void |
setDocument(java.lang.String document)
A JSON document that contains the metadata.
|
void |
setSignature(java.lang.String signature)
A signature that can be used to verify the document's accuracy and
authenticity.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceIdentity |
withDocument(java.lang.String document)
A JSON document that contains the metadata.
|
InstanceIdentity |
withSignature(java.lang.String signature)
A signature that can be used to verify the document's accuracy and
authenticity.
|
private java.lang.String document
A JSON document that contains the metadata.
private java.lang.String signature
A signature that can be used to verify the document's accuracy and authenticity.
public void setDocument(java.lang.String document)
A JSON document that contains the metadata.
document
- A JSON document that contains the metadata.public java.lang.String getDocument()
A JSON document that contains the metadata.
public InstanceIdentity withDocument(java.lang.String document)
A JSON document that contains the metadata.
document
- A JSON document that contains the metadata.public void setSignature(java.lang.String signature)
A signature that can be used to verify the document's accuracy and authenticity.
signature
- A signature that can be used to verify the document's accuracy and
authenticity.public java.lang.String getSignature()
A signature that can be used to verify the document's accuracy and authenticity.
public InstanceIdentity withSignature(java.lang.String signature)
A signature that can be used to verify the document's accuracy and authenticity.
signature
- A signature that can be used to verify the document's accuracy and
authenticity.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceIdentity clone()
clone
in class java.lang.Object