@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceIdentity extends Object implements Serializable, Cloneable, StructuredPojo
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
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.
|
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 ObjectObject.toString()public InstanceIdentity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.