com.amazonaws.services.ec2.model
Class Image

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Image
All Implemented Interfaces:
java.io.Serializable

public class Image
extends java.lang.Object
implements java.io.Serializable

Describes an image.

See Also:
Serialized Form

Constructor Summary
Image()
           
 
Method Summary
 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 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 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 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 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 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 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image()
Method Detail

getImageId

public java.lang.String getImageId()
The ID of the AMI.

Returns:
The ID of the AMI.

setImageId

public void setImageId(java.lang.String imageId)
The ID of the AMI.

Parameters:
imageId - The ID of the AMI.

withImageId

public Image withImageId(java.lang.String imageId)
The ID of the AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
imageId - The ID of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getImageLocation

public java.lang.String getImageLocation()
The location of the AMI.

Returns:
The location of the AMI.

setImageLocation

public void setImageLocation(java.lang.String imageLocation)
The location of the AMI.

Parameters:
imageLocation - The location of the AMI.

withImageLocation

public Image withImageLocation(java.lang.String imageLocation)
The location of the AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
imageLocation - The location of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

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.

Constraints:
Allowed Values: available, deregistered

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:
ImageState

setState

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.

Constraints:
Allowed Values: available, deregistered

Parameters:
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.
See Also:
ImageState

withState

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: available, deregistered

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ImageState

setState

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.

Constraints:
Allowed Values: available, deregistered

Parameters:
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.
See Also:
ImageState

withState

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: available, deregistered

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ImageState

getOwnerId

public java.lang.String getOwnerId()
The AWS account ID of the image owner.

Returns:
The AWS account ID of the image owner.

setOwnerId

public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the image owner.

Parameters:
ownerId - The AWS account ID of the image owner.

withOwnerId

public Image withOwnerId(java.lang.String ownerId)
The AWS account ID of the image owner.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ownerId - The AWS account ID of the image owner.
Returns:
A reference to this updated object so that method calls can be chained together.

isPublic

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.

Returns:
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.

setPublic

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.

Parameters:
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.

withPublic

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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getPublic

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.

Returns:
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.

getProductCodes

public java.util.List<ProductCode> getProductCodes()
Any product codes associated with the AMI.

Returns:
Any product codes associated with the AMI.

setProductCodes

public void setProductCodes(java.util.Collection<ProductCode> productCodes)
Any product codes associated with the AMI.

Parameters:
productCodes - Any product codes associated with the AMI.

withProductCodes

public Image withProductCodes(ProductCode... productCodes)
Any product codes associated with the AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - Any product codes associated with the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

withProductCodes

public Image withProductCodes(java.util.Collection<ProductCode> productCodes)
Any product codes associated with the AMI.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - Any product codes associated with the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.

getArchitecture

public java.lang.String getArchitecture()
The architecture of the image.

Constraints:
Allowed Values: i386, x86_64

Returns:
The architecture of the image.
See Also:
ArchitectureValues

setArchitecture

public void setArchitecture(java.lang.String architecture)
The architecture of the image.

Constraints:
Allowed Values: i386, x86_64

Parameters:
architecture - The architecture of the image.
See Also:
ArchitectureValues

withArchitecture

public Image withArchitecture(java.lang.String architecture)
The architecture of the image.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: i386, x86_64

Parameters:
architecture - The architecture of the image.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ArchitectureValues

setArchitecture

public void setArchitecture(ArchitectureValues architecture)
The architecture of the image.

Constraints:
Allowed Values: i386, x86_64

Parameters:
architecture - The architecture of the image.
See Also:
ArchitectureValues

withArchitecture

public Image withArchitecture(ArchitectureValues architecture)
The architecture of the image.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: i386, x86_64

Parameters:
architecture - The architecture of the image.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ArchitectureValues

getImageType

public java.lang.String getImageType()
The type of image.

Constraints:
Allowed Values: machine, kernel, ramdisk

Returns:
The type of image.
See Also:
ImageTypeValues

setImageType

public void setImageType(java.lang.String imageType)
The type of image.

Constraints:
Allowed Values: machine, kernel, ramdisk

Parameters:
imageType - The type of image.
See Also:
ImageTypeValues

withImageType

public Image withImageType(java.lang.String imageType)
The type of image.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: machine, kernel, ramdisk

Parameters:
imageType - The type of image.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ImageTypeValues

setImageType

public void setImageType(ImageTypeValues imageType)
The type of image.

Constraints:
Allowed Values: machine, kernel, ramdisk

Parameters:
imageType - The type of image.
See Also:
ImageTypeValues

withImageType

public Image withImageType(ImageTypeValues imageType)
The type of image.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: machine, kernel, ramdisk

Parameters:
imageType - The type of image.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ImageTypeValues

getKernelId

public java.lang.String 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.

setKernelId

public void setKernelId(java.lang.String kernelId)
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.

withKernelId

public Image withKernelId(java.lang.String kernelId)
The kernel associated with the image, if any. Only applicable for machine images.

Returns a reference to this object so that method calls can be chained together.

Parameters:
kernelId - The kernel associated with the image, if any. Only applicable for machine images.
Returns:
A reference to this updated object so that method calls can be chained together.

getRamdiskId

public java.lang.String 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.

setRamdiskId

public void setRamdiskId(java.lang.String ramdiskId)
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.

withRamdiskId

public Image withRamdiskId(java.lang.String ramdiskId)
The RAM disk associated with the image, if any. Only applicable for machine images.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ramdiskId - The RAM disk associated with the image, if any. Only applicable for machine images.
Returns:
A reference to this updated object so that method calls can be chained together.

getPlatform

public java.lang.String getPlatform()
The value is Windows for Windows AMIs; otherwise blank.

Constraints:
Allowed Values: Windows

Returns:
The value is Windows for Windows AMIs; otherwise blank.
See Also:
PlatformValues

setPlatform

public void setPlatform(java.lang.String platform)
The value is Windows for Windows AMIs; otherwise blank.

Constraints:
Allowed Values: Windows

Parameters:
platform - The value is Windows for Windows AMIs; otherwise blank.
See Also:
PlatformValues

withPlatform

public Image withPlatform(java.lang.String platform)
The value is Windows for Windows AMIs; otherwise blank.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Windows

Parameters:
platform - The value is Windows for Windows AMIs; otherwise blank.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlatformValues

setPlatform

public void setPlatform(PlatformValues platform)
The value is Windows for Windows AMIs; otherwise blank.

Constraints:
Allowed Values: Windows

Parameters:
platform - The value is Windows for Windows AMIs; otherwise blank.
See Also:
PlatformValues

withPlatform

public Image withPlatform(PlatformValues platform)
The value is Windows for Windows AMIs; otherwise blank.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Windows

Parameters:
platform - The value is Windows for Windows AMIs; otherwise blank.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
PlatformValues

getSriovNetSupport

public java.lang.String getSriovNetSupport()
Specifies whether enhanced networking is enabled.

Returns:
Specifies whether enhanced networking is enabled.

setSriovNetSupport

public void setSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.

Parameters:
sriovNetSupport - Specifies whether enhanced networking is enabled.

withSriovNetSupport

public Image withSriovNetSupport(java.lang.String sriovNetSupport)
Specifies whether enhanced networking is enabled.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sriovNetSupport - Specifies whether enhanced networking is enabled.
Returns:
A reference to this updated object so that method calls can be chained together.

getStateReason

public StateReason getStateReason()
The reason for the state change.

Returns:
The reason for the state change.

setStateReason

public void setStateReason(StateReason stateReason)
The reason for the state change.

Parameters:
stateReason - The reason for the state change.

withStateReason

public Image withStateReason(StateReason stateReason)
The reason for the state change.

Returns a reference to this object so that method calls can be chained together.

Parameters:
stateReason - The reason for the state change.
Returns:
A reference to this updated object so that method calls can be chained together.

getImageOwnerAlias

public java.lang.String 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.

setImageOwnerAlias

public void setImageOwnerAlias(java.lang.String imageOwnerAlias)
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.

withImageOwnerAlias

public Image withImageOwnerAlias(java.lang.String imageOwnerAlias)
The AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.

Returns a reference to this object so that method calls can be chained together.

Parameters:
imageOwnerAlias - The AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public java.lang.String getName()
The name of the AMI that was provided during image creation.

Returns:
The name of the AMI that was provided during image creation.

setName

public void setName(java.lang.String name)
The name of the AMI that was provided during image creation.

Parameters:
name - The name of the AMI that was provided during image creation.

withName

public Image withName(java.lang.String name)
The name of the AMI that was provided during image creation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The name of the AMI that was provided during image creation.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public java.lang.String getDescription()
The description of the AMI that was provided during image creation.

Returns:
The description of the AMI that was provided during image creation.

setDescription

public void setDescription(java.lang.String description)
The description of the AMI that was provided during image creation.

Parameters:
description - The description of the AMI that was provided during image creation.

withDescription

public Image withDescription(java.lang.String description)
The description of the AMI that was provided during image creation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - The description of the AMI that was provided during image creation.
Returns:
A reference to this updated object so that method calls can be chained together.

getRootDeviceType

public java.lang.String getRootDeviceType()
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

Constraints:
Allowed Values: ebs, instance-store

Returns:
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
See Also:
DeviceType

setRootDeviceType

public void setRootDeviceType(java.lang.String rootDeviceType)
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

Constraints:
Allowed Values: ebs, instance-store

Parameters:
rootDeviceType - The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
See Also:
DeviceType

withRootDeviceType

public Image withRootDeviceType(java.lang.String rootDeviceType)
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ebs, instance-store

Parameters:
rootDeviceType - The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
DeviceType

setRootDeviceType

public void setRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

Constraints:
Allowed Values: ebs, instance-store

Parameters:
rootDeviceType - The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
See Also:
DeviceType

withRootDeviceType

public Image withRootDeviceType(DeviceType rootDeviceType)
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ebs, instance-store

Parameters:
rootDeviceType - The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
DeviceType

getRootDeviceName

public java.lang.String getRootDeviceName()
The device name of the root device (for example, /dev/sda1 or xvda).

Returns:
The device name of the root device (for example, /dev/sda1 or xvda).

setRootDeviceName

public void setRootDeviceName(java.lang.String rootDeviceName)
The device name of the root device (for example, /dev/sda1 or xvda).

Parameters:
rootDeviceName - The device name of the root device (for example, /dev/sda1 or xvda).

withRootDeviceName

public Image withRootDeviceName(java.lang.String rootDeviceName)
The device name of the root device (for example, /dev/sda1 or xvda).

Returns a reference to this object so that method calls can be chained together.

Parameters:
rootDeviceName - The device name of the root device (for example, /dev/sda1 or xvda).
Returns:
A reference to this updated object so that method calls can be chained together.

getBlockDeviceMappings

public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()
Any block device mapping entries.

Returns:
Any block device mapping entries.

setBlockDeviceMappings

public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.

Parameters:
blockDeviceMappings - Any block device mapping entries.

withBlockDeviceMappings

public Image withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - Any block device mapping entries.
Returns:
A reference to this updated object so that method calls can be chained together.

withBlockDeviceMappings

public Image withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries.

Returns a reference to this object so that method calls can be chained together.

Parameters:
blockDeviceMappings - Any block device mapping entries.
Returns:
A reference to this updated object so that method calls can be chained together.

getVirtualizationType

public java.lang.String getVirtualizationType()
The type of virtualization of the AMI.

Constraints:
Allowed Values: hvm, paravirtual

Returns:
The type of virtualization of the AMI.
See Also:
VirtualizationType

setVirtualizationType

public void setVirtualizationType(java.lang.String virtualizationType)
The type of virtualization of the AMI.

Constraints:
Allowed Values: hvm, paravirtual

Parameters:
virtualizationType - The type of virtualization of the AMI.
See Also:
VirtualizationType

withVirtualizationType

public Image withVirtualizationType(java.lang.String virtualizationType)
The type of virtualization of the AMI.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: hvm, paravirtual

Parameters:
virtualizationType - The type of virtualization of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VirtualizationType

setVirtualizationType

public void setVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.

Constraints:
Allowed Values: hvm, paravirtual

Parameters:
virtualizationType - The type of virtualization of the AMI.
See Also:
VirtualizationType

withVirtualizationType

public Image withVirtualizationType(VirtualizationType virtualizationType)
The type of virtualization of the AMI.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: hvm, paravirtual

Parameters:
virtualizationType - The type of virtualization of the AMI.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VirtualizationType

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the image.

Returns:
Any tags assigned to the image.

setTags

public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the image.

Parameters:
tags - Any tags assigned to the image.

withTags

public Image withTags(Tag... tags)
Any tags assigned to the image.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the image.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public Image withTags(java.util.Collection<Tag> tags)
Any tags assigned to the image.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the image.
Returns:
A reference to this updated object so that method calls can be chained together.

getHypervisor

public java.lang.String getHypervisor()
The hypervisor type of the image.

Constraints:
Allowed Values: ovm, xen

Returns:
The hypervisor type of the image.
See Also:
HypervisorType

setHypervisor

public void setHypervisor(java.lang.String hypervisor)
The hypervisor type of the image.

Constraints:
Allowed Values: ovm, xen

Parameters:
hypervisor - The hypervisor type of the image.
See Also:
HypervisorType

withHypervisor

public Image withHypervisor(java.lang.String hypervisor)
The hypervisor type of the image.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ovm, xen

Parameters:
hypervisor - The hypervisor type of the image.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
HypervisorType

setHypervisor

public void setHypervisor(HypervisorType hypervisor)
The hypervisor type of the image.

Constraints:
Allowed Values: ovm, xen

Parameters:
hypervisor - The hypervisor type of the image.
See Also:
HypervisorType

withHypervisor

public Image withHypervisor(HypervisorType hypervisor)
The hypervisor type of the image.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ovm, xen

Parameters:
hypervisor - The hypervisor type of the image.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
HypervisorType

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.