public class Image
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an image.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
architecture
The architecture of the image.
|
private SdkInternalList<BlockDeviceMapping> |
blockDeviceMappings
Any block device mapping entries.
|
private java.lang.String |
creationDate
The date and time the image was created.
|
private java.lang.String |
description
The description of the AMI that was provided during image creation.
|
private java.lang.String |
hypervisor
The hypervisor type of the image.
|
private java.lang.String |
imageId
The ID of the AMI.
|
private java.lang.String |
imageLocation
The location of the AMI.
|
private java.lang.String |
imageOwnerAlias
The AWS account alias (for example,
amazon ,
self ) or the AWS account ID of the AMI owner. |
private java.lang.String |
imageType
The type of image.
|
private java.lang.String |
kernelId
The kernel associated with the image, if any.
|
private java.lang.String |
name
The name of the AMI that was provided during image creation.
|
private java.lang.String |
ownerId
The AWS account ID of the image owner.
|
private java.lang.String |
platform
The value is
Windows for Windows AMIs; otherwise blank. |
private SdkInternalList<ProductCode> |
productCodes
Any product codes associated with the AMI.
|
private java.lang.Boolean |
publicValue
Indicates whether the image has public launch permissions.
|
private java.lang.String |
ramdiskId
The RAM disk associated with the image, if any.
|
private java.lang.String |
rootDeviceName
The device name of the root device (for example,
/dev/sda1
or /dev/xvda ). |
private java.lang.String |
rootDeviceType
The type of root device used by the AMI.
|
private java.lang.String |
sriovNetSupport
Specifies whether enhanced networking is enabled.
|
private java.lang.String |
state
The current state of the AMI.
|
private StateReason |
stateReason
The reason for the state change.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the image.
|
private java.lang.String |
virtualizationType
The type of virtualization of the AMI.
|
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
Image |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArchitecture()
The architecture of the image.
|
java.util.List<BlockDeviceMapping> |
getBlockDeviceMappings()
Any block device mapping entries.
|
java.lang.String |
getCreationDate()
The date and time the image was created.
|
java.lang.String |
getDescription()
The description of the AMI that was provided during image creation.
|
java.lang.String |
getHypervisor()
The hypervisor type of the image.
|
java.lang.String |
getImageId()
The ID of the AMI.
|
java.lang.String |
getImageLocation()
The location of the AMI.
|
java.lang.String |
getImageOwnerAlias()
The AWS account alias (for example,
amazon ,
self ) or the AWS account ID of the AMI owner. |
java.lang.String |
getImageType()
The type of image.
|
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()
The AWS account ID of the image owner.
|
java.lang.String |
getPlatform()
The value is
Windows for Windows AMIs; otherwise blank. |
java.util.List<ProductCode> |
getProductCodes()
Any product codes associated with the AMI.
|
java.lang.Boolean |
getPublic()
Indicates whether the image has public launch permissions.
|
java.lang.String |
getRamdiskId()
The RAM disk associated with the image, if any.
|
java.lang.String |
getRootDeviceName()
The device name of the root device (for example,
/dev/sda1
or /dev/xvda ). |
java.lang.String |
getRootDeviceType()
The type of root device used by the AMI.
|
java.lang.String |
getSriovNetSupport()
Specifies whether enhanced networking is enabled.
|
java.lang.String |
getState()
The current state of the AMI.
|
StateReason |
getStateReason()
The reason for the state change.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the image.
|
java.lang.String |
getVirtualizationType()
The type of virtualization of the AMI.
|
int |
hashCode() |
java.lang.Boolean |
isPublic()
Indicates whether the image has public launch permissions.
|
void |
setArchitecture(ArchitectureValues architecture)
The architecture of the image.
|
void |
setArchitecture(java.lang.String architecture)
The architecture of the image.
|
void |
setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
|
void |
setCreationDate(java.lang.String creationDate)
The date and time the image was created.
|
void |
setDescription(java.lang.String description)
The description of the AMI that was provided during image creation.
|
void |
setHypervisor(HypervisorType hypervisor)
The hypervisor type of the image.
|
void |
setHypervisor(java.lang.String hypervisor)
The hypervisor type of the image.
|
void |
setImageId(java.lang.String imageId)
The 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 (for example,
amazon ,
self ) or the AWS account ID of the AMI owner. |
void |
setImageType(ImageTypeValues imageType)
The type of image.
|
void |
setImageType(java.lang.String imageType)
The type of image.
|
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)
The AWS account ID of the image owner.
|
void |
setPlatform(PlatformValues platform)
The value is
Windows for Windows AMIs; otherwise blank. |
void |
setPlatform(java.lang.String platform)
The value is
Windows for Windows AMIs; otherwise blank. |
void |
setProductCodes(java.util.Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
|
void |
setPublic(java.lang.Boolean publicValue)
Indicates whether the 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 device name of the root device (for example,
/dev/sda1
or /dev/xvda ). |
void |
setRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI.
|
void |
setRootDeviceType(java.lang.String rootDeviceType)
The type of root device used by the AMI.
|
void |
setSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.
|
void |
setState(ImageState state)
The current state of the AMI.
|
void |
setState(java.lang.String state)
The current state of the AMI.
|
void |
setStateReason(StateReason stateReason)
The reason for the state change.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the image.
|
void |
setVirtualizationType(java.lang.String virtualizationType)
The type of virtualization of the AMI.
|
void |
setVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Image |
withArchitecture(ArchitectureValues architecture)
The architecture of the image.
|
Image |
withArchitecture(java.lang.String architecture)
The architecture of the image.
|
Image |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries.
|
Image |
withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
|
Image |
withCreationDate(java.lang.String creationDate)
The date and time the image was created.
|
Image |
withDescription(java.lang.String description)
The description of the AMI that was provided during image creation.
|
Image |
withHypervisor(HypervisorType hypervisor)
The hypervisor type of the image.
|
Image |
withHypervisor(java.lang.String hypervisor)
The hypervisor type of the image.
|
Image |
withImageId(java.lang.String imageId)
The 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 (for example,
amazon ,
self ) or the AWS account ID of the AMI owner. |
Image |
withImageType(ImageTypeValues imageType)
The type of image.
|
Image |
withImageType(java.lang.String imageType)
The type of image.
|
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)
The AWS account ID of the image owner.
|
Image |
withPlatform(PlatformValues platform)
The value is
Windows for Windows AMIs; otherwise blank. |
Image |
withPlatform(java.lang.String platform)
The value is
Windows for Windows AMIs; otherwise blank. |
Image |
withProductCodes(java.util.Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
|
Image |
withProductCodes(ProductCode... productCodes)
Any product codes associated with the AMI.
|
Image |
withPublic(java.lang.Boolean publicValue)
Indicates whether the 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 device name of the root device (for example,
/dev/sda1
or /dev/xvda ). |
Image |
withRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI.
|
Image |
withRootDeviceType(java.lang.String rootDeviceType)
The type of root device used by the AMI.
|
Image |
withSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.
|
Image |
withState(ImageState state)
The current state of the AMI.
|
Image |
withState(java.lang.String state)
The current state of the AMI.
|
Image |
withStateReason(StateReason stateReason)
The reason for the state change.
|
Image |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the image.
|
Image |
withTags(Tag... tags)
Any tags assigned to the image.
|
Image |
withVirtualizationType(java.lang.String virtualizationType)
The type of virtualization of the AMI.
|
Image |
withVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
|
private java.lang.String imageId
The ID of the AMI.
private java.lang.String imageLocation
The location of the AMI.
private java.lang.String state
The current state of the AMI. If the state is available
, the
image is successfully registered and can be used to launch an instance.
private java.lang.String ownerId
The AWS account ID of the image owner.
private java.lang.String creationDate
The date and time the image was created.
private java.lang.Boolean publicValue
Indicates whether the image has public launch permissions. The value is
true
if this image has public launch permissions or
false
if it has only implicit and explicit launch
permissions.
private SdkInternalList<ProductCode> productCodes
Any product codes associated with the AMI.
private java.lang.String architecture
The architecture of the image.
private java.lang.String imageType
The type of image.
private java.lang.String kernelId
The kernel associated with the image, if any. Only applicable for machine images.
private java.lang.String ramdiskId
The RAM disk associated with the image, if any. Only applicable for machine images.
private java.lang.String platform
The value is Windows
for Windows AMIs; otherwise blank.
private java.lang.String sriovNetSupport
Specifies whether enhanced networking is enabled.
private StateReason stateReason
The reason for the state change.
private java.lang.String imageOwnerAlias
The AWS account alias (for example, amazon
,
self
) or the AWS account ID of the AMI owner.
private java.lang.String name
The name of the AMI that was provided during image creation.
private java.lang.String description
The description of the AMI that was provided during image creation.
private java.lang.String rootDeviceType
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
private java.lang.String rootDeviceName
The device name of the root device (for example, /dev/sda1
or /dev/xvda
).
private SdkInternalList<BlockDeviceMapping> blockDeviceMappings
Any block device mapping entries.
private java.lang.String virtualizationType
The type of virtualization of the AMI.
private SdkInternalList<Tag> tags
Any tags assigned to the image.
private java.lang.String hypervisor
The hypervisor type of the image.
public void setImageId(java.lang.String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public java.lang.String getImageId()
The ID of the AMI.
public Image withImageId(java.lang.String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public void setImageLocation(java.lang.String imageLocation)
The location of the AMI.
imageLocation
- The location of the AMI.public java.lang.String getImageLocation()
The location of the AMI.
public Image withImageLocation(java.lang.String imageLocation)
The location of the AMI.
imageLocation
- The location of the AMI.public void setState(java.lang.String state)
The current state of the AMI. If the state is available
, the
image is successfully registered and can be used to launch an instance.
state
- The current state of the AMI. If the state is
available
, the image is successfully registered and
can be used to launch an instance.ImageState
public java.lang.String getState()
The current state of the AMI. If the state is available
, the
image is successfully registered and can be used to launch an instance.
available
, the image is successfully registered and
can be used to launch an instance.ImageState
public Image withState(java.lang.String state)
The current state of the AMI. If the state is available
, the
image is successfully registered and can be used to launch an instance.
state
- The current state of the AMI. If the state is
available
, the image is successfully registered and
can be used to launch an instance.ImageState
public void setState(ImageState state)
The current state of the AMI. If the state is available
, the
image is successfully registered and can be used to launch an instance.
state
- The current state of the AMI. If the state is
available
, the image is successfully registered and
can be used to launch an instance.ImageState
public Image withState(ImageState state)
The current state of the AMI. If the state is available
, the
image is successfully registered and can be used to launch an instance.
state
- The current state of the AMI. If the state is
available
, the image is successfully registered and
can be used to launch an instance.ImageState
public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the image owner.
ownerId
- The AWS account ID of the image owner.public java.lang.String getOwnerId()
The AWS account ID of the image owner.
public Image withOwnerId(java.lang.String ownerId)
The AWS account ID of the image owner.
ownerId
- The AWS account ID of the image owner.public void setCreationDate(java.lang.String creationDate)
The date and time the image was created.
creationDate
- The date and time the image was created.public java.lang.String getCreationDate()
The date and time the image was created.
public Image withCreationDate(java.lang.String creationDate)
The date and time the image was created.
creationDate
- The date and time the image was created.public void setPublic(java.lang.Boolean publicValue)
Indicates whether the image has public launch permissions. The value is
true
if this image has public launch permissions or
false
if it has only implicit and explicit launch
permissions.
publicValue
- Indicates whether the image has public launch permissions. The
value is true
if this image has public launch
permissions or false
if it has only implicit and
explicit launch permissions.public java.lang.Boolean getPublic()
Indicates whether the image has public launch permissions. The value is
true
if this image has public launch permissions or
false
if it has only implicit and explicit launch
permissions.
true
if this image has public launch
permissions or false
if it has only implicit and
explicit launch permissions.public Image withPublic(java.lang.Boolean publicValue)
Indicates whether the image has public launch permissions. The value is
true
if this image has public launch permissions or
false
if it has only implicit and explicit launch
permissions.
publicValue
- Indicates whether the image has public launch permissions. The
value is true
if this image has public launch
permissions or false
if it has only implicit and
explicit launch permissions.public java.lang.Boolean isPublic()
Indicates whether the image has public launch permissions. The value is
true
if this image has public launch permissions or
false
if it has only implicit and explicit launch
permissions.
true
if this image has public launch
permissions or false
if it has only implicit and
explicit launch permissions.public java.util.List<ProductCode> getProductCodes()
Any product codes associated with the AMI.
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
productCodes
- Any product codes associated with the AMI.public Image withProductCodes(ProductCode... productCodes)
Any product codes associated with the AMI.
NOTE: This method appends the values to the existing list (if
any). Use setProductCodes(java.util.Collection)
or
withProductCodes(java.util.Collection)
if you want to override
the existing values.
productCodes
- Any product codes associated with the AMI.public Image withProductCodes(java.util.Collection<ProductCode> productCodes)
Any product codes associated with the AMI.
productCodes
- Any product codes associated with the AMI.public void setArchitecture(java.lang.String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public java.lang.String getArchitecture()
The architecture of the image.
ArchitectureValues
public Image withArchitecture(java.lang.String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public Image withArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public void setImageType(java.lang.String imageType)
The type of image.
imageType
- The type of image.ImageTypeValues
public java.lang.String getImageType()
The type of image.
ImageTypeValues
public Image withImageType(java.lang.String imageType)
The type of image.
imageType
- The type of image.ImageTypeValues
public void setImageType(ImageTypeValues imageType)
The type of image.
imageType
- The type of image.ImageTypeValues
public Image withImageType(ImageTypeValues imageType)
The type of image.
imageType
- The type of image.ImageTypeValues
public void setKernelId(java.lang.String kernelId)
The kernel associated with the image, if any. Only applicable for machine images.
kernelId
- The kernel associated with the image, if any. Only applicable for
machine images.public java.lang.String getKernelId()
The kernel associated with the image, if any. Only applicable for machine images.
public Image withKernelId(java.lang.String kernelId)
The kernel associated with the image, if any. Only applicable for machine images.
kernelId
- The kernel associated with the image, if any. Only applicable for
machine images.public void setRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with the image, if any. Only applicable for machine images.
ramdiskId
- The RAM disk associated with the image, if any. Only applicable
for machine images.public java.lang.String getRamdiskId()
The RAM disk associated with the image, if any. Only applicable for machine images.
public Image withRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with the image, if any. Only applicable for machine images.
ramdiskId
- The RAM disk associated with the image, if any. Only applicable
for machine images.public void setPlatform(java.lang.String platform)
The value is Windows
for Windows AMIs; otherwise blank.
platform
- The value is Windows
for Windows AMIs; otherwise
blank.PlatformValues
public java.lang.String getPlatform()
The value is Windows
for Windows AMIs; otherwise blank.
Windows
for Windows AMIs; otherwise
blank.PlatformValues
public Image withPlatform(java.lang.String platform)
The value is Windows
for Windows AMIs; otherwise blank.
platform
- The value is Windows
for Windows AMIs; otherwise
blank.PlatformValues
public void setPlatform(PlatformValues platform)
The value is Windows
for Windows AMIs; otherwise blank.
platform
- The value is Windows
for Windows AMIs; otherwise
blank.PlatformValues
public Image withPlatform(PlatformValues platform)
The value is Windows
for Windows AMIs; otherwise blank.
platform
- The value is Windows
for Windows AMIs; otherwise
blank.PlatformValues
public void setSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.
sriovNetSupport
- Specifies whether enhanced networking is enabled.public java.lang.String getSriovNetSupport()
Specifies whether enhanced networking is enabled.
public Image withSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.
sriovNetSupport
- Specifies whether enhanced networking is enabled.public void setStateReason(StateReason stateReason)
The reason for the state change.
stateReason
- The reason for the state change.public StateReason getStateReason()
The reason for the state change.
public Image withStateReason(StateReason stateReason)
The reason for the state change.
stateReason
- The reason for the state change.public void setImageOwnerAlias(java.lang.String imageOwnerAlias)
The AWS account alias (for example, amazon
,
self
) or the AWS account ID of the AMI owner.
imageOwnerAlias
- The AWS account alias (for example, amazon
,
self
) or the AWS account ID of the AMI owner.public java.lang.String getImageOwnerAlias()
The AWS account alias (for example, amazon
,
self
) or the AWS account ID of the AMI owner.
amazon
,
self
) or the AWS account ID of the AMI owner.public Image withImageOwnerAlias(java.lang.String imageOwnerAlias)
The AWS account alias (for example, amazon
,
self
) or the AWS account ID of the AMI owner.
imageOwnerAlias
- The AWS account alias (for example, amazon
,
self
) or the AWS account ID of the AMI owner.public void setName(java.lang.String name)
The name of the AMI that was provided during image creation.
name
- The name of the AMI that was provided during image creation.public java.lang.String getName()
The name of the AMI that was provided during image creation.
public Image withName(java.lang.String name)
The name of the AMI that was provided during image creation.
name
- The name of the AMI that was provided during image creation.public void setDescription(java.lang.String description)
The description of the AMI that was provided during image creation.
description
- The description of the AMI that was provided during image
creation.public java.lang.String getDescription()
The description of the AMI that was provided during image creation.
public Image withDescription(java.lang.String description)
The description of the AMI that was provided during image creation.
description
- The description of the AMI that was provided during image
creation.public void setRootDeviceType(java.lang.String rootDeviceType)
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The type of root device used by the AMI. The AMI can use an EBS
volume or an instance store volume.DeviceType
public java.lang.String getRootDeviceType()
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
DeviceType
public Image withRootDeviceType(java.lang.String rootDeviceType)
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The type of root device used by the AMI. The AMI can use an EBS
volume or an instance store volume.DeviceType
public void setRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The type of root device used by the AMI. The AMI can use an EBS
volume or an instance store volume.DeviceType
public Image withRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The type of root device used by the AMI. The AMI can use an EBS
volume or an instance store volume.DeviceType
public void setRootDeviceName(java.lang.String rootDeviceName)
The device name of the root device (for example, /dev/sda1
or /dev/xvda
).
rootDeviceName
- The device name of the root device (for example,
/dev/sda1
or /dev/xvda
).public java.lang.String getRootDeviceName()
The device name of the root device (for example, /dev/sda1
or /dev/xvda
).
/dev/sda1
or /dev/xvda
).public Image withRootDeviceName(java.lang.String rootDeviceName)
The device name of the root device (for example, /dev/sda1
or /dev/xvda
).
rootDeviceName
- The device name of the root device (for example,
/dev/sda1
or /dev/xvda
).public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
Any block device mapping entries.
public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
blockDeviceMappings
- Any block device mapping entries.public Image withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries.
NOTE: This method appends the values to the existing list (if
any). Use setBlockDeviceMappings(java.util.Collection)
or
withBlockDeviceMappings(java.util.Collection)
if you want to
override the existing values.
blockDeviceMappings
- Any block device mapping entries.public Image withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.
blockDeviceMappings
- Any block device mapping entries.public void setVirtualizationType(java.lang.String virtualizationType)
The type of virtualization of the AMI.
virtualizationType
- The type of virtualization of the AMI.VirtualizationType
public java.lang.String getVirtualizationType()
The type of virtualization of the AMI.
VirtualizationType
public Image withVirtualizationType(java.lang.String virtualizationType)
The type of virtualization of the AMI.
virtualizationType
- The type of virtualization of the AMI.VirtualizationType
public void setVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
virtualizationType
- The type of virtualization of the AMI.VirtualizationType
public Image withVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.
virtualizationType
- The type of virtualization of the AMI.VirtualizationType
public java.util.List<Tag> getTags()
Any tags assigned to the image.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the image.
tags
- Any tags assigned to the image.public Image withTags(Tag... tags)
Any tags assigned to the image.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the image.public Image withTags(java.util.Collection<Tag> tags)
Any tags assigned to the image.
tags
- Any tags assigned to the image.public void setHypervisor(java.lang.String hypervisor)
The hypervisor type of the image.
hypervisor
- The hypervisor type of the image.HypervisorType
public java.lang.String getHypervisor()
The hypervisor type of the image.
HypervisorType
public Image withHypervisor(java.lang.String hypervisor)
The hypervisor type of the image.
hypervisor
- The hypervisor type of the image.HypervisorType
public void setHypervisor(HypervisorType hypervisor)
The hypervisor type of the image.
hypervisor
- The hypervisor type of the image.HypervisorType
public Image withHypervisor(HypervisorType hypervisor)
The hypervisor type of the image.
hypervisor
- The hypervisor type of the image.HypervisorType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Image clone()
clone
in class java.lang.Object