public class Image
extends java.lang.Object
implements java.io.Serializable
Represents an Amazon Machine Image (AMI) that can be run on an Amazon EC2 instance.
| コンストラクタと説明 |
|---|
Image() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArchitecture()
The architecture of the image.
|
java.util.List<BlockDeviceMapping> |
getBlockDeviceMappings()
Specifies how block devices are exposed to the instance.
|
java.lang.String |
getDescription()
The description of the AMI that was provided during image creation.
|
java.lang.String |
getHypervisor()
Returns the value of the Hypervisor property for this object.
|
java.lang.String |
getImageId()
The unique ID of the AMI.
|
java.lang.String |
getImageLocation()
The location of the AMI.
|
java.lang.String |
getImageOwnerAlias()
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS
account ID that owns the AMI.
|
java.lang.String |
getImageType()
The type of image (machine, kernel, or ramdisk).
|
java.lang.String |
getKernelId()
The kernel associated with the image, if any.
|
java.lang.String |
getName()
The name of the AMI that was provided during image creation.
|
java.lang.String |
getOwnerId()
AWS Access Key ID of the image owner.
|
java.lang.String |
getPlatform()
The operating platform of the AMI.
|
java.util.List<ProductCode> |
getProductCodes()
Product codes of the AMI.
|
java.lang.Boolean |
getPublic()
True if this image has public launch permissions.
|
java.lang.String |
getRamdiskId()
The RAM disk associated with the image, if any.
|
java.lang.String |
getRootDeviceName()
The root device name (e.g.,
/dev/sda1). |
java.lang.String |
getRootDeviceType()
The root device type used by the AMI.
|
java.lang.String |
getState()
Current state of the AMI.
|
StateReason |
getStateReason()
The reason for the state change.
|
java.util.List<Tag> |
getTags()
A list of tags for the Image.
|
java.lang.String |
getVirtualizationType()
Returns the value of the VirtualizationType property for this object.
|
int |
hashCode() |
java.lang.Boolean |
isPublic()
True if this image has public launch permissions.
|
void |
setArchitecture(java.lang.String architecture)
The architecture of the image.
|
void |
setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance.
|
void |
setDescription(java.lang.String description)
The description of the AMI that was provided during image creation.
|
void |
setHypervisor(HypervisorType hypervisor)
Sets the value of the Hypervisor property for this object.
|
void |
setHypervisor(java.lang.String hypervisor)
Sets the value of the Hypervisor property for this object.
|
void |
setImageId(java.lang.String imageId)
The unique ID of the AMI.
|
void |
setImageLocation(java.lang.String imageLocation)
The location of the AMI.
|
void |
setImageOwnerAlias(java.lang.String imageOwnerAlias)
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS
account ID that owns the AMI.
|
void |
setImageType(java.lang.String imageType)
The type of image (machine, kernel, or ramdisk).
|
void |
setKernelId(java.lang.String kernelId)
The kernel associated with the image, if any.
|
void |
setName(java.lang.String name)
The name of the AMI that was provided during image creation.
|
void |
setOwnerId(java.lang.String ownerId)
AWS Access Key ID of the image owner.
|
void |
setPlatform(java.lang.String platform)
The operating platform of the AMI.
|
void |
setProductCodes(java.util.Collection<ProductCode> productCodes)
Product codes of the AMI.
|
void |
setPublic(java.lang.Boolean publicValue)
True if this image has public launch permissions.
|
void |
setRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with the image, if any.
|
void |
setRootDeviceName(java.lang.String rootDeviceName)
The root device name (e.g.,
/dev/sda1). |
void |
setRootDeviceType(java.lang.String rootDeviceType)
The root device type used by the AMI.
|
void |
setState(ImageState state)
Current state of the AMI.
|
void |
setState(java.lang.String state)
Current state of the AMI.
|
void |
setStateReason(StateReason stateReason)
The reason for the state change.
|
void |
setTags(java.util.Collection<Tag> tags)
A list of tags for the Image.
|
void |
setVirtualizationType(java.lang.String virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
void |
setVirtualizationType(VirtualizationType virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Image |
withArchitecture(java.lang.String architecture)
The architecture of the image.
|
Image |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Specifies how block devices are exposed to the instance.
|
Image |
withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Specifies how block devices are exposed to the instance.
|
Image |
withDescription(java.lang.String description)
The description of the AMI that was provided during image creation.
|
Image |
withHypervisor(HypervisorType hypervisor)
Sets the value of the Hypervisor property for this object.
|
Image |
withHypervisor(java.lang.String hypervisor)
Sets the value of the Hypervisor property for this object.
|
Image |
withImageId(java.lang.String imageId)
The unique ID of the AMI.
|
Image |
withImageLocation(java.lang.String imageLocation)
The location of the AMI.
|
Image |
withImageOwnerAlias(java.lang.String imageOwnerAlias)
The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS
account ID that owns the AMI.
|
Image |
withImageType(java.lang.String imageType)
The type of image (machine, kernel, or ramdisk).
|
Image |
withKernelId(java.lang.String kernelId)
The kernel associated with the image, if any.
|
Image |
withName(java.lang.String name)
The name of the AMI that was provided during image creation.
|
Image |
withOwnerId(java.lang.String ownerId)
AWS Access Key ID of the image owner.
|
Image |
withPlatform(java.lang.String platform)
The operating platform of the AMI.
|
Image |
withProductCodes(java.util.Collection<ProductCode> productCodes)
Product codes of the AMI.
|
Image |
withProductCodes(ProductCode... productCodes)
Product codes of the AMI.
|
Image |
withPublic(java.lang.Boolean publicValue)
True if this image has public launch permissions.
|
Image |
withRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with the image, if any.
|
Image |
withRootDeviceName(java.lang.String rootDeviceName)
The root device name (e.g.,
/dev/sda1). |
Image |
withRootDeviceType(java.lang.String rootDeviceType)
The root device type used by the AMI.
|
Image |
withState(ImageState state)
Current state of the AMI.
|
Image |
withState(java.lang.String state)
Current state of the AMI.
|
Image |
withStateReason(StateReason stateReason)
The reason for the state change.
|
Image |
withTags(java.util.Collection<Tag> tags)
A list of tags for the Image.
|
Image |
withTags(Tag... tags)
A list of tags for the Image.
|
Image |
withVirtualizationType(java.lang.String virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
Image |
withVirtualizationType(VirtualizationType virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
public java.lang.String getImageId()
public void setImageId(java.lang.String imageId)
imageId - The unique ID of the AMI.public Image withImageId(java.lang.String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId - The unique ID of the AMI.public java.lang.String getImageLocation()
public void setImageLocation(java.lang.String imageLocation)
imageLocation - The location of the AMI.public Image withImageLocation(java.lang.String imageLocation)
Returns a reference to this object so that method calls can be chained together.
imageLocation - The location of the AMI.public java.lang.String getState()
Constraints:
Allowed Values: available, deregistered
ImageStatepublic void setState(java.lang.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.ImageStatepublic Image withState(java.lang.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.ImageStatepublic void setState(ImageState 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.ImageStatepublic Image withState(ImageState 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.ImageStatepublic java.lang.String getOwnerId()
public void setOwnerId(java.lang.String ownerId)
ownerId - AWS Access Key ID of the image owner.public Image withOwnerId(java.lang.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 java.lang.Boolean isPublic()
public void setPublic(java.lang.Boolean publicValue)
publicValue - True if this image has public launch permissions. False if it only has
implicit and explicit launch permissions.public Image withPublic(java.lang.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 java.lang.Boolean getPublic()
public java.util.List<ProductCode> getProductCodes()
public void setProductCodes(java.util.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(java.util.Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes - Product codes of the AMI.public java.lang.String getArchitecture()
public void setArchitecture(java.lang.String architecture)
architecture - The architecture of the image.public Image withArchitecture(java.lang.String architecture)
Returns a reference to this object so that method calls can be chained together.
architecture - The architecture of the image.public java.lang.String getImageType()
public void setImageType(java.lang.String imageType)
imageType - The type of image (machine, kernel, or ramdisk).public Image withImageType(java.lang.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 java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId - The kernel associated with the image, if any. Only applicable for
machine images.public Image withKernelId(java.lang.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 java.lang.String getRamdiskId()
public void setRamdiskId(java.lang.String ramdiskId)
ramdiskId - The RAM disk associated with the image, if any. Only applicable for
machine images.public Image withRamdiskId(java.lang.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 java.lang.String getPlatform()
public void setPlatform(java.lang.String platform)
platform - The operating platform of the AMI.public Image withPlatform(java.lang.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 java.lang.String getImageOwnerAlias()
public void setImageOwnerAlias(java.lang.String imageOwnerAlias)
imageOwnerAlias - The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS
account ID that owns the AMI.public Image withImageOwnerAlias(java.lang.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 java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the AMI that was provided during image creation.public Image withName(java.lang.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 java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description of the AMI that was provided during image creation.public Image withDescription(java.lang.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 java.lang.String getRootDeviceType()
public void setRootDeviceType(java.lang.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(java.lang.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 java.lang.String getRootDeviceName()
/dev/sda1)./dev/sda1).public void setRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1).rootDeviceName - The root device name (e.g., /dev/sda1).public Image withRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1).
Returns a reference to this object so that method calls can be chained together.
rootDeviceName - The root device name (e.g., /dev/sda1).public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(java.util.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(java.util.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 java.lang.String getVirtualizationType()
Constraints:
Allowed Values: hvm, paravirtual
VirtualizationTypepublic void setVirtualizationType(java.lang.String virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType - The new value for the VirtualizationType property for this object.VirtualizationTypepublic Image withVirtualizationType(java.lang.String virtualizationType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType - The new value for the VirtualizationType property for this object.VirtualizationTypepublic void setVirtualizationType(VirtualizationType virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType - The new value for the VirtualizationType property for this object.VirtualizationTypepublic Image withVirtualizationType(VirtualizationType virtualizationType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType - The new value for the VirtualizationType property for this object.VirtualizationTypepublic java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags - A list of tags for the Image.public Image withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags for the Image.public Image withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags for the Image.public java.lang.String getHypervisor()
Constraints:
Allowed Values: ovm, xen
HypervisorTypepublic void setHypervisor(java.lang.String hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor - The new value for the Hypervisor property for this object.HypervisorTypepublic Image withHypervisor(java.lang.String hypervisor)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ovm, xen
hypervisor - The new value for the Hypervisor property for this object.HypervisorTypepublic void setHypervisor(HypervisorType hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor - The new value for the Hypervisor property for this object.HypervisorTypepublic Image withHypervisor(HypervisorType hypervisor)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ovm, xen
hypervisor - The new value for the Hypervisor property for this object.HypervisorTypepublic java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object