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 void setDocument(String document)
A JSON document that contains the metadata.
document
- A JSON document that contains the metadata.public String getDocument()
A JSON document that contains the metadata.
public InstanceIdentity withDocument(String document)
A JSON document that contains the metadata.
document
- A JSON document that contains the metadata.public void setSignature(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 String getSignature()
A signature that can be used to verify the document's accuracy and authenticity.
public InstanceIdentity withSignature(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 String toString()
toString
in class Object
Object.toString()
public InstanceIdentity clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.