@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ami extends Object implements Serializable, Cloneable, StructuredPojo
Details of an Amazon EC2 AMI.
Constructor and Description |
---|
Ami() |
Modifier and Type | Method and Description |
---|---|
Ami |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The account ID of the owner of the AMI.
|
String |
getDescription()
The description of the Amazon EC2 AMI.
|
String |
getImage()
The AMI ID of the Amazon EC2 AMI.
|
String |
getName()
The name of the Amazon EC2 AMI.
|
String |
getRegion()
The Amazon Web Services Region of the Amazon EC2 AMI.
|
ImageState |
getState() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The account ID of the owner of the AMI.
|
void |
setDescription(String description)
The description of the Amazon EC2 AMI.
|
void |
setImage(String image)
The AMI ID of the Amazon EC2 AMI.
|
void |
setName(String name)
The name of the Amazon EC2 AMI.
|
void |
setRegion(String region)
The Amazon Web Services Region of the Amazon EC2 AMI.
|
void |
setState(ImageState state) |
String |
toString()
Returns a string representation of this object.
|
Ami |
withAccountId(String accountId)
The account ID of the owner of the AMI.
|
Ami |
withDescription(String description)
The description of the Amazon EC2 AMI.
|
Ami |
withImage(String image)
The AMI ID of the Amazon EC2 AMI.
|
Ami |
withName(String name)
The name of the Amazon EC2 AMI.
|
Ami |
withRegion(String region)
The Amazon Web Services Region of the Amazon EC2 AMI.
|
Ami |
withState(ImageState state) |
public void setRegion(String region)
The Amazon Web Services Region of the Amazon EC2 AMI.
region
- The Amazon Web Services Region of the Amazon EC2 AMI.public String getRegion()
The Amazon Web Services Region of the Amazon EC2 AMI.
public Ami withRegion(String region)
The Amazon Web Services Region of the Amazon EC2 AMI.
region
- The Amazon Web Services Region of the Amazon EC2 AMI.public void setImage(String image)
The AMI ID of the Amazon EC2 AMI.
image
- The AMI ID of the Amazon EC2 AMI.public String getImage()
The AMI ID of the Amazon EC2 AMI.
public Ami withImage(String image)
The AMI ID of the Amazon EC2 AMI.
image
- The AMI ID of the Amazon EC2 AMI.public void setName(String name)
The name of the Amazon EC2 AMI.
name
- The name of the Amazon EC2 AMI.public String getName()
The name of the Amazon EC2 AMI.
public Ami withName(String name)
The name of the Amazon EC2 AMI.
name
- The name of the Amazon EC2 AMI.public void setDescription(String description)
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
description
- The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.public String getDescription()
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
public Ami withDescription(String description)
The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
description
- The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.public void setState(ImageState state)
state
- public ImageState getState()
public Ami withState(ImageState state)
state
- public void setAccountId(String accountId)
The account ID of the owner of the AMI.
accountId
- The account ID of the owner of the AMI.public String getAccountId()
The account ID of the owner of the AMI.
public Ami withAccountId(String accountId)
The account ID of the owner of the AMI.
accountId
- The account ID of the owner of the AMI.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.