@Generated(value="software.amazon.awssdk:codegen") public final class Image extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Image.Builder,Image>
Describes an image.
Modifier and Type | Class and Description |
---|---|
static interface |
Image.Builder |
Modifier and Type | Method and Description |
---|---|
ArchitectureValues |
architecture()
The architecture of the image.
|
String |
architectureAsString()
The architecture of the image.
|
List<BlockDeviceMapping> |
blockDeviceMappings()
Any block device mapping entries.
|
BootModeValues |
bootMode()
The boot mode of the image.
|
String |
bootModeAsString()
The boot mode of the image.
|
static Image.Builder |
builder() |
String |
creationDate()
The date and time the image was created.
|
String |
deprecationTime()
The date and time to deprecate the AMI, in UTC, in the following format:
YYYY-MM-DDTHH:MM:SSZ.
|
String |
description()
The description of the AMI that was provided during image creation.
|
Boolean |
enaSupport()
Specifies whether enhanced networking with ENA is enabled.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasBlockDeviceMappings()
For responses, this returns true if the service returned a value for the BlockDeviceMappings property.
|
int |
hashCode() |
boolean |
hasProductCodes()
For responses, this returns true if the service returned a value for the ProductCodes property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
HypervisorType |
hypervisor()
The hypervisor type of the image.
|
String |
hypervisorAsString()
The hypervisor type of the image.
|
String |
imageId()
The ID of the AMI.
|
String |
imageLocation()
The location of the AMI.
|
String |
imageOwnerAlias()
The Amazon Web Services account alias (for example,
amazon , self ) or the Amazon Web
Services account ID of the AMI owner. |
ImageTypeValues |
imageType()
The type of image.
|
String |
imageTypeAsString()
The type of image.
|
String |
kernelId()
The kernel associated with the image, if any.
|
String |
name()
The name of the AMI that was provided during image creation.
|
String |
ownerId()
The ID of the Amazon Web Services account that owns the image.
|
PlatformValues |
platform()
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
String |
platformAsString()
This value is set to
windows for Windows AMIs; otherwise, it is blank. |
String |
platformDetails()
The platform details associated with the billing code of the AMI.
|
List<ProductCode> |
productCodes()
Any product codes associated with the AMI.
|
Boolean |
publicLaunchPermissions()
Indicates whether the image has public launch permissions.
|
String |
ramdiskId()
The RAM disk associated with the image, if any.
|
String |
rootDeviceName()
The device name of the root device volume (for example,
/dev/sda1 ). |
DeviceType |
rootDeviceType()
The type of root device used by the AMI.
|
String |
rootDeviceTypeAsString()
The type of root device used by the AMI.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Image.Builder> |
serializableBuilderClass() |
String |
sriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
ImageState |
state()
The current state of the AMI.
|
String |
stateAsString()
The current state of the AMI.
|
StateReason |
stateReason()
The reason for the state change.
|
List<Tag> |
tags()
Any tags assigned to the image.
|
Image.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
usageOperation()
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
|
VirtualizationType |
virtualizationType()
The type of virtualization of the AMI.
|
String |
virtualizationTypeAsString()
The type of virtualization of the AMI.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final ArchitectureValues architecture()
The architecture of the image.
If the service returns an enum value that is not available in the current SDK version, architecture
will
return ArchitectureValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
architectureAsString()
.
ArchitectureValues
public final String architectureAsString()
The architecture of the image.
If the service returns an enum value that is not available in the current SDK version, architecture
will
return ArchitectureValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
architectureAsString()
.
ArchitectureValues
public final String creationDate()
The date and time the image was created.
public final String imageId()
The ID of the AMI.
public final String imageLocation()
The location of the AMI.
public final ImageTypeValues imageType()
The type of image.
If the service returns an enum value that is not available in the current SDK version, imageType
will
return ImageTypeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
imageTypeAsString()
.
ImageTypeValues
public final String imageTypeAsString()
The type of image.
If the service returns an enum value that is not available in the current SDK version, imageType
will
return ImageTypeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
imageTypeAsString()
.
ImageTypeValues
public final String kernelId()
The kernel associated with the image, if any. Only applicable for machine images.
public final String ownerId()
The ID of the Amazon Web Services account that owns the image.
public final PlatformValues platform()
This value is set to windows
for Windows AMIs; otherwise, it is blank.
If the service returns an enum value that is not available in the current SDK version, platform
will
return PlatformValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
platformAsString()
.
windows
for Windows AMIs; otherwise, it is blank.PlatformValues
public final String platformAsString()
This value is set to windows
for Windows AMIs; otherwise, it is blank.
If the service returns an enum value that is not available in the current SDK version, platform
will
return PlatformValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
platformAsString()
.
windows
for Windows AMIs; otherwise, it is blank.PlatformValues
public final String platformDetails()
The platform details associated with the billing code of the AMI. For more information, see Understanding AMI billing in the Amazon Elastic Compute Cloud User Guide.
public final String usageOperation()
The operation of the Amazon EC2 instance and the billing code that is associated with the AMI.
usageOperation
corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web Services Price
List API. You can view these fields on the Instances or AMIs pages in the Amazon EC2 console,
or in the responses that are returned by the DescribeImages command
in the Amazon EC2 API, or the describe-images command in
the CLI.
usageOperation
corresponds to the lineitem/Operation column on your Amazon Web Services Cost and Usage Report and in the Amazon Web
Services Price List API. You can view these fields on the Instances or AMIs pages in
the Amazon EC2 console, or in the responses that are returned by the DescribeImages
command in the Amazon EC2 API, or the describe-images
command in the CLI.public final boolean hasProductCodes()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<ProductCode> productCodes()
Any product codes associated with the AMI.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasProductCodes()
method.
public final String ramdiskId()
The RAM disk associated with the image, if any. Only applicable for machine images.
public final 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.
If the service returns an enum value that is not available in the current SDK version, state
will return
ImageState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
available
, the image is successfully
registered and can be used to launch an instance.ImageState
public final String stateAsString()
The current state of the AMI. If the state is available
, the image is successfully registered and
can be used to launch an instance.
If the service returns an enum value that is not available in the current SDK version, state
will return
ImageState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
available
, the image is successfully
registered and can be used to launch an instance.ImageState
public final boolean hasBlockDeviceMappings()
isEmpty()
method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<BlockDeviceMapping> blockDeviceMappings()
Any block device mapping entries.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasBlockDeviceMappings()
method.
public final String description()
The description of the AMI that was provided during image creation.
public final Boolean enaSupport()
Specifies whether enhanced networking with ENA is enabled.
public final HypervisorType hypervisor()
The hypervisor type of the image.
If the service returns an enum value that is not available in the current SDK version, hypervisor
will
return HypervisorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
hypervisorAsString()
.
HypervisorType
public final String hypervisorAsString()
The hypervisor type of the image.
If the service returns an enum value that is not available in the current SDK version, hypervisor
will
return HypervisorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
hypervisorAsString()
.
HypervisorType
public final String imageOwnerAlias()
The Amazon Web Services account alias (for example, amazon
, self
) or the Amazon Web
Services account ID of the AMI owner.
amazon
, self
) or the Amazon
Web Services account ID of the AMI owner.public final String name()
The name of the AMI that was provided during image creation.
public final String rootDeviceName()
The device name of the root device volume (for example, /dev/sda1
).
/dev/sda1
).public final DeviceType rootDeviceType()
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
If the service returns an enum value that is not available in the current SDK version, rootDeviceType
will return DeviceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
rootDeviceTypeAsString()
.
DeviceType
public final String rootDeviceTypeAsString()
The type of root device used by the AMI. The AMI can use an Amazon EBS volume or an instance store volume.
If the service returns an enum value that is not available in the current SDK version, rootDeviceType
will return DeviceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
rootDeviceTypeAsString()
.
DeviceType
public final String sriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
public final StateReason stateReason()
The reason for the state change.
public final boolean hasTags()
isEmpty()
method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
Any tags assigned to the image.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags()
method.
public final VirtualizationType virtualizationType()
The type of virtualization of the AMI.
If the service returns an enum value that is not available in the current SDK version,
virtualizationType
will return VirtualizationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from virtualizationTypeAsString()
.
VirtualizationType
public final String virtualizationTypeAsString()
The type of virtualization of the AMI.
If the service returns an enum value that is not available in the current SDK version,
virtualizationType
will return VirtualizationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from virtualizationTypeAsString()
.
VirtualizationType
public final BootModeValues bootMode()
The boot mode of the image. For more information, see Boot modes in the Amazon Elastic Compute Cloud User Guide.
If the service returns an enum value that is not available in the current SDK version, bootMode
will
return BootModeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
bootModeAsString()
.
BootModeValues
public final String bootModeAsString()
The boot mode of the image. For more information, see Boot modes in the Amazon Elastic Compute Cloud User Guide.
If the service returns an enum value that is not available in the current SDK version, bootMode
will
return BootModeValues.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
bootModeAsString()
.
BootModeValues
public final String deprecationTime()
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
public final Boolean publicLaunchPermissions()
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.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Image.Builder,Image>
public static Image.Builder builder()
public static Class<? extends Image.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.