@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 AMI ID and the Snowball Edge AMI ID. Each AMI has these two IDs to simplify identifying the AMI in both the AWS 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 Snowball Edge device.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAmiId(String amiId)
The ID of the AMI in Amazon EC2.
|
void |
setSnowballAmiId(String snowballAmiId)
The ID of the AMI on the Snowball Edge 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 Snowball Edge 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 Snowball Edge device.
snowballAmiId - The ID of the AMI on the Snowball Edge device.public String getSnowballAmiId()
The ID of the AMI on the Snowball Edge device.
public Ec2AmiResource withSnowballAmiId(String snowballAmiId)
The ID of the AMI on the Snowball Edge device.
snowballAmiId - The ID of the AMI on the Snowball Edge device.public String toString()
toString in class ObjectObject.toString()public Ec2AmiResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.