Class Image
- All Implemented Interfaces:
Serializable, Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe architecture of the image.Any block device mapping entries.The date and time the image was created.The description of the AMI that was provided during image creation.The hypervisor type of the image.The ID of the AMI.The location of the AMI.The AWS account alias (for example,amazon,self) or the AWS account ID of the AMI owner.The type of image.The kernel associated with the image, if any.getName()The name of the AMI that was provided during image creation.The AWS account ID of the image owner.The value isWindowsfor Windows AMIs; otherwise blank.Any product codes associated with the AMI.Indicates whether the image has public launch permissions.The RAM disk associated with the image, if any.The device name of the root device (for example,/dev/sda1or/dev/xvda).The type of root device used by the AMI.Specifies whether enhanced networking is enabled.getState()The current state of the AMI.The reason for the state change.getTags()Any tags assigned to the image.The type of virtualization of the AMI.inthashCode()isPublic()Indicates whether the image has public launch permissions.voidsetArchitecture(ArchitectureValues architecture) The architecture of the image.voidsetArchitecture(String architecture) The architecture of the image.voidsetBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings) Any block device mapping entries.voidsetCreationDate(String creationDate) The date and time the image was created.voidsetDescription(String description) The description of the AMI that was provided during image creation.voidsetHypervisor(HypervisorType hypervisor) The hypervisor type of the image.voidsetHypervisor(String hypervisor) The hypervisor type of the image.voidsetImageId(String imageId) The ID of the AMI.voidsetImageLocation(String imageLocation) The location of the AMI.voidsetImageOwnerAlias(String imageOwnerAlias) The AWS account alias (for example,amazon,self) or the AWS account ID of the AMI owner.voidsetImageType(ImageTypeValues imageType) The type of image.voidsetImageType(String imageType) The type of image.voidsetKernelId(String kernelId) The kernel associated with the image, if any.voidThe name of the AMI that was provided during image creation.voidsetOwnerId(String ownerId) The AWS account ID of the image owner.voidsetPlatform(PlatformValues platform) The value isWindowsfor Windows AMIs; otherwise blank.voidsetPlatform(String platform) The value isWindowsfor Windows AMIs; otherwise blank.voidsetProductCodes(Collection<ProductCode> productCodes) Any product codes associated with the AMI.voidIndicates whether the image has public launch permissions.voidsetRamdiskId(String ramdiskId) The RAM disk associated with the image, if any.voidsetRootDeviceName(String rootDeviceName) The device name of the root device (for example,/dev/sda1or/dev/xvda).voidsetRootDeviceType(DeviceType rootDeviceType) The type of root device used by the AMI.voidsetRootDeviceType(String rootDeviceType) The type of root device used by the AMI.voidsetSriovNetSupport(String sriovNetSupport) Specifies whether enhanced networking is enabled.voidsetState(ImageState state) The current state of the AMI.voidThe current state of the AMI.voidsetStateReason(StateReason stateReason) The reason for the state change.voidsetTags(Collection<Tag> tags) Any tags assigned to the image.voidsetVirtualizationType(VirtualizationType virtualizationType) The type of virtualization of the AMI.voidsetVirtualizationType(String virtualizationType) The type of virtualization of the AMI.toString()Returns a string representation of this object; useful for testing and debugging.withArchitecture(ArchitectureValues architecture) The architecture of the image.withArchitecture(String architecture) The architecture of the image.withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings) Any block device mapping entries.withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings) Any block device mapping entries.withCreationDate(String creationDate) The date and time the image was created.withDescription(String description) The description of the AMI that was provided during image creation.withHypervisor(HypervisorType hypervisor) The hypervisor type of the image.withHypervisor(String hypervisor) The hypervisor type of the image.withImageId(String imageId) The ID of the AMI.withImageLocation(String imageLocation) The location of the AMI.withImageOwnerAlias(String imageOwnerAlias) The AWS account alias (for example,amazon,self) or the AWS account ID of the AMI owner.withImageType(ImageTypeValues imageType) The type of image.withImageType(String imageType) The type of image.withKernelId(String kernelId) The kernel associated with the image, if any.The name of the AMI that was provided during image creation.withOwnerId(String ownerId) The AWS account ID of the image owner.withPlatform(PlatformValues platform) The value isWindowsfor Windows AMIs; otherwise blank.withPlatform(String platform) The value isWindowsfor Windows AMIs; otherwise blank.withProductCodes(ProductCode... productCodes) Any product codes associated with the AMI.withProductCodes(Collection<ProductCode> productCodes) Any product codes associated with the AMI.withPublic(Boolean publicValue) Indicates whether the image has public launch permissions.withRamdiskId(String ramdiskId) The RAM disk associated with the image, if any.withRootDeviceName(String rootDeviceName) The device name of the root device (for example,/dev/sda1or/dev/xvda).withRootDeviceType(DeviceType rootDeviceType) The type of root device used by the AMI.withRootDeviceType(String rootDeviceType) The type of root device used by the AMI.withSriovNetSupport(String sriovNetSupport) Specifies whether enhanced networking is enabled.withState(ImageState state) The current state of the AMI.The current state of the AMI.withStateReason(StateReason stateReason) The reason for the state change.Any tags assigned to the image.withTags(Collection<Tag> tags) Any tags assigned to the image.withVirtualizationType(VirtualizationType virtualizationType) The type of virtualization of the AMI.withVirtualizationType(String virtualizationType) The type of virtualization of the AMI.
-
Constructor Details
-
Image
public Image()
-
-
Method Details
-
setImageId
-
getImageId
-
withImageId
-
setImageLocation
The location of the AMI.
- Parameters:
imageLocation- The location of the AMI.
-
getImageLocation
-
withImageLocation
-
setState
The current state of the AMI. If the state is
available, the image is successfully registered and can be used to launch an instance.- Parameters:
state- The current state of the AMI. If the state isavailable, the image is successfully registered and can be used to launch an instance.- See Also:
-
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.- Returns:
- The current state of the AMI. If the state is
available, the image is successfully registered and can be used to launch an instance. - See Also:
-
withState
The current state of the AMI. If the state is
available, the image is successfully registered and can be used to launch an instance.- Parameters:
state- The current state of the AMI. If the state isavailable, the image is successfully registered and can be used to launch an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The current state of the AMI. If the state is
available, the image is successfully registered and can be used to launch an instance.- Parameters:
state- The current state of the AMI. If the state isavailable, the image is successfully registered and can be used to launch an instance.- See Also:
-
withState
The current state of the AMI. If the state is
available, the image is successfully registered and can be used to launch an instance.- Parameters:
state- The current state of the AMI. If the state isavailable, the image is successfully registered and can be used to launch an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setOwnerId
The AWS account ID of the image owner.
- Parameters:
ownerId- The AWS account ID of the image owner.
-
getOwnerId
The AWS account ID of the image owner.
- Returns:
- The AWS account ID of the image owner.
-
withOwnerId
-
setCreationDate
The date and time the image was created.
- Parameters:
creationDate- The date and time the image was created.
-
getCreationDate
The date and time the image was created.
- Returns:
- The date and time the image was created.
-
withCreationDate
-
setPublic
Indicates whether the image has public launch permissions. The value is
trueif this image has public launch permissions orfalseif it has only implicit and explicit launch permissions.- Parameters:
publicValue- Indicates whether the image has public launch permissions. The value istrueif this image has public launch permissions orfalseif it has only implicit and explicit launch permissions.
-
getPublic
Indicates whether the image has public launch permissions. The value is
trueif this image has public launch permissions orfalseif it has only implicit and explicit launch permissions.- Returns:
- Indicates whether the image has public launch permissions. The
value is
trueif this image has public launch permissions orfalseif it has only implicit and explicit launch permissions.
-
withPublic
Indicates whether the image has public launch permissions. The value is
trueif this image has public launch permissions orfalseif it has only implicit and explicit launch permissions.- Parameters:
publicValue- Indicates whether the image has public launch permissions. The value istrueif this image has public launch permissions orfalseif it has only implicit and explicit launch permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPublic
Indicates whether the image has public launch permissions. The value is
trueif this image has public launch permissions orfalseif it has only implicit and explicit launch permissions.- Returns:
- Indicates whether the image has public launch permissions. The
value is
trueif this image has public launch permissions orfalseif it has only implicit and explicit launch permissions.
-
getProductCodes
Any product codes associated with the AMI.
- Returns:
- Any product codes associated with the AMI.
-
setProductCodes
Any product codes associated with the AMI.
- Parameters:
productCodes- Any product codes associated with the AMI.
-
withProductCodes
Any product codes associated with the AMI.
NOTE: This method appends the values to the existing list (if any). Use
setProductCodes(java.util.Collection)orwithProductCodes(java.util.Collection)if you want to override the existing values.- Parameters:
productCodes- Any product codes associated with the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withProductCodes
Any product codes associated with the AMI.
- Parameters:
productCodes- Any product codes associated with the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArchitecture
The architecture of the image.
- Parameters:
architecture- The architecture of the image.- See Also:
-
getArchitecture
The architecture of the image.
- Returns:
- The architecture of the image.
- See Also:
-
withArchitecture
-
setArchitecture
The architecture of the image.
- Parameters:
architecture- The architecture of the image.- See Also:
-
withArchitecture
The architecture of the image.
- Parameters:
architecture- The architecture of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setImageType
The type of image.
- Parameters:
imageType- The type of image.- See Also:
-
getImageType
-
withImageType
-
setImageType
The type of image.
- Parameters:
imageType- The type of image.- See Also:
-
withImageType
The type of image.
- Parameters:
imageType- The type of image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setKernelId
The kernel associated with the image, if any. Only applicable for machine images.
- Parameters:
kernelId- The kernel associated with the image, if any. Only applicable for machine images.
-
getKernelId
The kernel associated with the image, if any. Only applicable for machine images.
- Returns:
- The kernel associated with the image, if any. Only applicable for machine images.
-
withKernelId
The kernel associated with the image, if any. Only applicable for machine images.
- Parameters:
kernelId- The kernel associated with the image, if any. Only applicable for machine images.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRamdiskId
The RAM disk associated with the image, if any. Only applicable for machine images.
- Parameters:
ramdiskId- The RAM disk associated with the image, if any. Only applicable for machine images.
-
getRamdiskId
The RAM disk associated with the image, if any. Only applicable for machine images.
- Returns:
- The RAM disk associated with the image, if any. Only applicable for machine images.
-
withRamdiskId
The RAM disk associated with the image, if any. Only applicable for machine images.
- Parameters:
ramdiskId- The RAM disk associated with the image, if any. Only applicable for machine images.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
The value is
Windowsfor Windows AMIs; otherwise blank.- Parameters:
platform- The value isWindowsfor Windows AMIs; otherwise blank.- See Also:
-
getPlatform
The value is
Windowsfor Windows AMIs; otherwise blank.- Returns:
- The value is
Windowsfor Windows AMIs; otherwise blank. - See Also:
-
withPlatform
-
setPlatform
The value is
Windowsfor Windows AMIs; otherwise blank.- Parameters:
platform- The value isWindowsfor Windows AMIs; otherwise blank.- See Also:
-
withPlatform
The value is
Windowsfor Windows AMIs; otherwise blank.- Parameters:
platform- The value isWindowsfor Windows AMIs; otherwise blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setSriovNetSupport
Specifies whether enhanced networking is enabled.
- Parameters:
sriovNetSupport- Specifies whether enhanced networking is enabled.
-
getSriovNetSupport
Specifies whether enhanced networking is enabled.
- Returns:
- Specifies whether enhanced networking is enabled.
-
withSriovNetSupport
-
setStateReason
The reason for the state change.
- Parameters:
stateReason- The reason for the state change.
-
getStateReason
The reason for the state change.
- Returns:
- The reason for the state change.
-
withStateReason
The reason for the state change.
- Parameters:
stateReason- The reason for the state change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setImageOwnerAlias
The AWS account alias (for example,
amazon,self) or the AWS account ID of the AMI owner.- Parameters:
imageOwnerAlias- The AWS account alias (for example,amazon,self) or the AWS account ID of the AMI owner.
-
getImageOwnerAlias
The AWS account alias (for example,
amazon,self) or the AWS account ID of the AMI owner.- Returns:
- The AWS account alias (for example,
amazon,self) or the AWS account ID of the AMI owner.
-
withImageOwnerAlias
The AWS account alias (for example,
amazon,self) or the AWS account ID of the AMI owner.- Parameters:
imageOwnerAlias- The AWS account alias (for example,amazon,self) or the AWS account ID of the AMI owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The name of the AMI that was provided during image creation.
- Parameters:
name- The name of the AMI that was provided during image creation.
-
getName
The name of the AMI that was provided during image creation.
- Returns:
- The name of the AMI that was provided during image creation.
-
withName
-
setDescription
The description of the AMI that was provided during image creation.
- Parameters:
description- The description of the AMI that was provided during image creation.
-
getDescription
The description of the AMI that was provided during image creation.
- Returns:
- The description of the AMI that was provided during image creation.
-
withDescription
The description of the AMI that was provided during image creation.
- Parameters:
description- The description of the AMI that was provided during image creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRootDeviceType
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
- Parameters:
rootDeviceType- The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.- See Also:
-
getRootDeviceType
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
- Returns:
- The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
- See Also:
-
withRootDeviceType
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
- Parameters:
rootDeviceType- The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setRootDeviceType
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
- Parameters:
rootDeviceType- The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.- See Also:
-
withRootDeviceType
The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
- Parameters:
rootDeviceType- The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setRootDeviceName
The device name of the root device (for example,
/dev/sda1or/dev/xvda).- Parameters:
rootDeviceName- The device name of the root device (for example,/dev/sda1or/dev/xvda).
-
getRootDeviceName
The device name of the root device (for example,
/dev/sda1or/dev/xvda).- Returns:
- The device name of the root device (for example,
/dev/sda1or/dev/xvda).
-
withRootDeviceName
The device name of the root device (for example,
/dev/sda1or/dev/xvda).- Parameters:
rootDeviceName- The device name of the root device (for example,/dev/sda1or/dev/xvda).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBlockDeviceMappings
Any block device mapping entries.
- Returns:
- Any block device mapping entries.
-
setBlockDeviceMappings
Any block device mapping entries.
- Parameters:
blockDeviceMappings- Any block device mapping entries.
-
withBlockDeviceMappings
Any block device mapping entries.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)orwithBlockDeviceMappings(java.util.Collection)if you want to override the existing values.- Parameters:
blockDeviceMappings- Any block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
Any block device mapping entries.
- Parameters:
blockDeviceMappings- Any block device mapping entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVirtualizationType
The type of virtualization of the AMI.
- Parameters:
virtualizationType- The type of virtualization of the AMI.- See Also:
-
getVirtualizationType
The type of virtualization of the AMI.
- Returns:
- The type of virtualization of the AMI.
- See Also:
-
withVirtualizationType
-
setVirtualizationType
The type of virtualization of the AMI.
- Parameters:
virtualizationType- The type of virtualization of the AMI.- See Also:
-
withVirtualizationType
The type of virtualization of the AMI.
- Parameters:
virtualizationType- The type of virtualization of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
getTags
-
setTags
Any tags assigned to the image.
- Parameters:
tags- Any tags assigned to the image.
-
withTags
Any tags assigned to the image.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- Any tags assigned to the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
Any tags assigned to the image.
- Parameters:
tags- Any tags assigned to the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHypervisor
The hypervisor type of the image.
- Parameters:
hypervisor- The hypervisor type of the image.- See Also:
-
getHypervisor
The hypervisor type of the image.
- Returns:
- The hypervisor type of the image.
- See Also:
-
withHypervisor
-
setHypervisor
The hypervisor type of the image.
- Parameters:
hypervisor- The hypervisor type of the image.- See Also:
-
withHypervisor
The hypervisor type of the image.
- Parameters:
hypervisor- The hypervisor type of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
-
equals
-
hashCode
-
clone
-