@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2AmiResource extends Object implements Serializable, Cloneable, StructuredPojo
A JSON-formatted object that contains the IDs for an Amazon Machine Image (AMI), including the Amazon EC2-compatible AMI ID and the Snow device AMI ID. Each AMI has these two IDs to simplify identifying the AMI in both the Amazon Web Services Cloud and on the device.
Constructor and Description |
---|
Ec2AmiResource() |
Modifier and Type | Method and Description |
---|---|
Ec2AmiResource |
clone() |
boolean |
equals(Object obj) |
String |
getAmiId()
The ID of the AMI in Amazon EC2.
|
String |
getSnowballAmiId()
The ID of the AMI on the Snow device.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmiId(String amiId)
The ID of the AMI in Amazon EC2.
|
void |
setSnowballAmiId(String snowballAmiId)
The ID of the AMI on the Snow device.
|
String |
toString()
Returns a string representation of this object.
|
Ec2AmiResource |
withAmiId(String amiId)
The ID of the AMI in Amazon EC2.
|
Ec2AmiResource |
withSnowballAmiId(String snowballAmiId)
The ID of the AMI on the Snow device.
|
public void setAmiId(String amiId)
The ID of the AMI in Amazon EC2.
amiId
- The ID of the AMI in Amazon EC2.public String getAmiId()
The ID of the AMI in Amazon EC2.
public Ec2AmiResource withAmiId(String amiId)
The ID of the AMI in Amazon EC2.
amiId
- The ID of the AMI in Amazon EC2.public void setSnowballAmiId(String snowballAmiId)
The ID of the AMI on the Snow device.
snowballAmiId
- The ID of the AMI on the Snow device.public String getSnowballAmiId()
The ID of the AMI on the Snow device.
public Ec2AmiResource withSnowballAmiId(String snowballAmiId)
The ID of the AMI on the Snow device.
snowballAmiId
- The ID of the AMI on the Snow device.public String toString()
toString
in class Object
Object.toString()
public Ec2AmiResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.