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 .
| Constructor and Description |
|---|
InstanceIdentity() |
| Modifier and Type | Method and Description |
|---|---|
InstanceIdentity |
clone() |
boolean |
equals(Object obj) |
String |
getDocument()
A JSON document that contains the metadata.
|
String |
getSignature()
A signature that can be used to verify the document's accuracy and
authenticity.
|
int |
hashCode() |
void |
setDocument(String document)
A JSON document that contains the metadata.
|
void |
setSignature(String signature)
A signature that can be used to verify the document's accuracy and
authenticity.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceIdentity |
withDocument(String document)
A JSON document that contains the metadata.
|
InstanceIdentity |
withSignature(String signature)
A signature that can be used to verify the document's accuracy and
authenticity.
|
public String getDocument()
public void setDocument(String document)
document - A JSON document that contains the metadata.public InstanceIdentity withDocument(String document)
Returns a reference to this object so that method calls can be chained together.
document - A JSON document that contains the metadata.public String getSignature()
public void setSignature(String signature)
signature - A signature that can be used to verify the document's accuracy and
authenticity.public InstanceIdentity withSignature(String signature)
Returns a reference to this object so that method calls can be chained together.
signature - A signature that can be used to verify the document's accuracy and
authenticity.public String toString()
toString in class ObjectObject.toString()public InstanceIdentity clone()
Copyright © 2015. All rights reserved.