|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.Image
public class Image
Represents an Amazon Machine Image (AMI) that can be run on an Amazon EC2 instance.
Constructor Summary | |
---|---|
Image()
|
Method Summary | |
---|---|
String |
getArchitecture()
The architecture of the image. |
List<BlockDeviceMapping> |
getBlockDeviceMappings()
Specifies how block devices are exposed to the instance. |
String |
getDescription()
The description of the AMI that was provided during image creation. |
String |
getImageId()
The unique ID of the AMI. |
String |
getImageLocation()
The location of the AMI. |
String |
getImageOwnerAlias()
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI. |
String |
getImageType()
The type of image (machine, kernel, or ramdisk). |
String |
getKernelId()
The kernel associated with the image, if any. |
String |
getName()
The name of the AMI that was provided during image creation. |
String |
getOwnerId()
AWS Access Key ID of the image owner. |
String |
getPlatform()
The operating platform of the AMI. |
List<ProductCode> |
getProductCodes()
Product codes of the AMI. |
Boolean |
getPublic()
True if this image has public launch permissions. |
String |
getRamdiskId()
The RAM disk associated with the image, if any. |
String |
getRootDeviceName()
The root device name (e.g., /dev/sda1). |
String |
getRootDeviceType()
The root device type used by the AMI. |
String |
getState()
Current state of the AMI. |
StateReason |
getStateReason()
The reason for the state change. |
Boolean |
isPublic()
True if this image has public launch permissions. |
void |
setArchitecture(String architecture)
The architecture of the image. |
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
void |
setDescription(String description)
The description of the AMI that was provided during image creation. |
void |
setImageId(String imageId)
The unique ID of the AMI. |
void |
setImageLocation(String imageLocation)
The location of the AMI. |
void |
setImageOwnerAlias(String imageOwnerAlias)
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI. |
void |
setImageType(String imageType)
The type of image (machine, kernel, or ramdisk). |
void |
setKernelId(String kernelId)
The kernel associated with the image, if any. |
void |
setName(String name)
The name of the AMI that was provided during image creation. |
void |
setOwnerId(String ownerId)
AWS Access Key ID of the image owner. |
void |
setPlatform(String platform)
The operating platform of the AMI. |
void |
setProductCodes(Collection<ProductCode> productCodes)
Product codes of the AMI. |
void |
setPublic(Boolean publicValue)
True if this image has public launch permissions. |
void |
setRamdiskId(String ramdiskId)
The RAM disk associated with the image, if any. |
void |
setRootDeviceName(String rootDeviceName)
The root device name (e.g., /dev/sda1). |
void |
setRootDeviceType(String rootDeviceType)
The root device type used by the AMI. |
void |
setState(String state)
Current state of the AMI. |
void |
setStateReason(StateReason stateReason)
The reason for the state change. |
String |
toString()
|
Image |
withArchitecture(String architecture)
The architecture of the image. |
Image |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
Image |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance. |
Image |
withDescription(String description)
The description of the AMI that was provided during image creation. |
Image |
withImageId(String imageId)
The unique ID of the AMI. |
Image |
withImageLocation(String imageLocation)
The location of the AMI. |
Image |
withImageOwnerAlias(String imageOwnerAlias)
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI. |
Image |
withImageType(String imageType)
The type of image (machine, kernel, or ramdisk). |
Image |
withKernelId(String kernelId)
The kernel associated with the image, if any. |
Image |
withName(String name)
The name of the AMI that was provided during image creation. |
Image |
withOwnerId(String ownerId)
AWS Access Key ID of the image owner. |
Image |
withPlatform(String platform)
The operating platform of the AMI. |
Image |
withProductCodes(Collection<ProductCode> productCodes)
Product codes of the AMI. |
Image |
withProductCodes(ProductCode... productCodes)
Product codes of the AMI. |
Image |
withPublic(Boolean publicValue)
True if this image has public launch permissions. |
Image |
withRamdiskId(String ramdiskId)
The RAM disk associated with the image, if any. |
Image |
withRootDeviceName(String rootDeviceName)
The root device name (e.g., /dev/sda1). |
Image |
withRootDeviceType(String rootDeviceType)
The root device type used by the AMI. |
Image |
withState(String state)
Current state of the AMI. |
Image |
withStateReason(StateReason stateReason)
The reason for the state change. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Image()
Method Detail |
---|
public String getImageId()
public void setImageId(String imageId)
imageId
- The unique ID of the AMI.public Image withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId
- The unique ID of the AMI.
public String getImageLocation()
public void setImageLocation(String imageLocation)
imageLocation
- The location of the AMI.public Image withImageLocation(String imageLocation)
Returns a reference to this object so that method calls can be chained together.
imageLocation
- The location of the AMI.
public String getState()
Constraints:
Allowed Values: available, deregistered
ImageState
public void setState(String state)
Constraints:
Allowed Values: available, deregistered
state
- Current state of the AMI. If the operation returns available, the
image is successfully registered and available for launching. If the
operation returns deregistered, the image is deregistered and no
longer available for launching.ImageState
public Image withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: available, deregistered
state
- Current state of the AMI. If the operation returns available, the
image is successfully registered and available for launching. If the
operation returns deregistered, the image is deregistered and no
longer available for launching.
ImageState
public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- AWS Access Key ID of the image owner.public Image withOwnerId(String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId
- AWS Access Key ID of the image owner.
public Boolean isPublic()
public void setPublic(Boolean publicValue)
publicValue
- True if this image has public launch permissions. False if it only has
implicit and explicit launch permissions.public Image withPublic(Boolean publicValue)
Returns a reference to this object so that method calls can be chained together.
publicValue
- True if this image has public launch permissions. False if it only has
implicit and explicit launch permissions.
public Boolean getPublic()
public List<ProductCode> getProductCodes()
public void setProductCodes(Collection<ProductCode> productCodes)
productCodes
- Product codes of the AMI.public Image withProductCodes(ProductCode... productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- Product codes of the AMI.
public Image withProductCodes(Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- Product codes of the AMI.
public String getArchitecture()
public void setArchitecture(String architecture)
architecture
- The architecture of the image.public Image withArchitecture(String architecture)
Returns a reference to this object so that method calls can be chained together.
architecture
- The architecture of the image.
public String getImageType()
public void setImageType(String imageType)
imageType
- The type of image (machine, kernel, or ramdisk).public Image withImageType(String imageType)
Returns a reference to this object so that method calls can be chained together.
imageType
- The type of image (machine, kernel, or ramdisk).
public String getKernelId()
public void setKernelId(String kernelId)
kernelId
- The kernel associated with the image, if any. Only applicable for
machine images.public Image withKernelId(String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId
- The kernel associated with the image, if any. Only applicable for
machine images.
public String getRamdiskId()
public void setRamdiskId(String ramdiskId)
ramdiskId
- The RAM disk associated with the image, if any. Only applicable for
machine images.public Image withRamdiskId(String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId
- The RAM disk associated with the image, if any. Only applicable for
machine images.
public String getPlatform()
public void setPlatform(String platform)
platform
- The operating platform of the AMI.public Image withPlatform(String platform)
Returns a reference to this object so that method calls can be chained together.
platform
- The operating platform of the AMI.
public StateReason getStateReason()
public void setStateReason(StateReason stateReason)
stateReason
- The reason for the state change.public Image withStateReason(StateReason stateReason)
Returns a reference to this object so that method calls can be chained together.
stateReason
- The reason for the state change.
public String getImageOwnerAlias()
public void setImageOwnerAlias(String imageOwnerAlias)
imageOwnerAlias
- The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS
account ID that owns the AMI.public Image withImageOwnerAlias(String imageOwnerAlias)
Returns a reference to this object so that method calls can be chained together.
imageOwnerAlias
- The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS
account ID that owns the AMI.
public String getName()
public void setName(String name)
name
- The name of the AMI that was provided during image creation.public Image withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the AMI that was provided during image creation.
public String getDescription()
public void setDescription(String description)
description
- The description of the AMI that was provided during image creation.public Image withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- The description of the AMI that was provided during image creation.
public String getRootDeviceType()
public void setRootDeviceType(String rootDeviceType)
rootDeviceType
- The root device type used by the AMI. The AMI can use an Amazon EBS or
instance store root device.public Image withRootDeviceType(String rootDeviceType)
Returns a reference to this object so that method calls can be chained together.
rootDeviceType
- The root device type used by the AMI. The AMI can use an Amazon EBS or
instance store root device.
public String getRootDeviceName()
public void setRootDeviceName(String rootDeviceName)
rootDeviceName
- The root device name (e.g., /dev/sda1).public Image withRootDeviceName(String rootDeviceName)
Returns a reference to this object so that method calls can be chained together.
rootDeviceName
- The root device name (e.g., /dev/sda1).
public List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings
- Specifies how block devices are exposed to the instance.public Image withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Specifies how block devices are exposed to the instance.
public Image withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings
- Specifies how block devices are exposed to the instance.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |