@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2Metadata extends Object implements Serializable, Cloneable, StructuredPojo
Meta data details of an Amazon EC2 instance.
Constructor and Description |
---|
Ec2Metadata() |
Modifier and Type | Method and Description |
---|---|
Ec2Metadata |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Ec2Metadata |
clearTagsEntries()
Removes all the entries added into Tags.
|
Ec2Metadata |
clone() |
boolean |
equals(Object obj) |
String |
getAmiId()
The ID of the Amazon Machine Image (AMI) used to launch the instance.
|
String |
getPlatform()
The platform of the instance.
|
Map<String,String> |
getTags()
The tags attached to the instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmiId(String amiId)
The ID of the Amazon Machine Image (AMI) used to launch the instance.
|
void |
setPlatform(String platform)
The platform of the instance.
|
void |
setTags(Map<String,String> tags)
The tags attached to the instance.
|
String |
toString()
Returns a string representation of this object.
|
Ec2Metadata |
withAmiId(String amiId)
The ID of the Amazon Machine Image (AMI) used to launch the instance.
|
Ec2Metadata |
withPlatform(Ec2Platform platform)
The platform of the instance.
|
Ec2Metadata |
withPlatform(String platform)
The platform of the instance.
|
Ec2Metadata |
withTags(Map<String,String> tags)
The tags attached to the instance.
|
public void setAmiId(String amiId)
The ID of the Amazon Machine Image (AMI) used to launch the instance.
amiId
- The ID of the Amazon Machine Image (AMI) used to launch the instance.public String getAmiId()
The ID of the Amazon Machine Image (AMI) used to launch the instance.
public Ec2Metadata withAmiId(String amiId)
The ID of the Amazon Machine Image (AMI) used to launch the instance.
amiId
- The ID of the Amazon Machine Image (AMI) used to launch the instance.public void setPlatform(String platform)
The platform of the instance.
platform
- The platform of the instance.Ec2Platform
public String getPlatform()
The platform of the instance.
Ec2Platform
public Ec2Metadata withPlatform(String platform)
The platform of the instance.
platform
- The platform of the instance.Ec2Platform
public Ec2Metadata withPlatform(Ec2Platform platform)
The platform of the instance.
platform
- The platform of the instance.Ec2Platform
public Map<String,String> getTags()
The tags attached to the instance.
public void setTags(Map<String,String> tags)
The tags attached to the instance.
tags
- The tags attached to the instance.public Ec2Metadata withTags(Map<String,String> tags)
The tags attached to the instance.
tags
- The tags attached to the instance.public Ec2Metadata addTagsEntry(String key, String value)
public Ec2Metadata clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public Ec2Metadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.