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 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceIdentity clone()
-
-