@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.
|
static Image.Builder |
builder() |
String |
creationDate()
The date and time the image was created.
|
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()
Returns true if the BlockDeviceMappings property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasProductCodes()
Returns true if the ProductCodes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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 AWS account alias (for example,
amazon, self) or the AWS 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 AWS account ID of the image owner.
|
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, waitcopypublic 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().
ArchitectureValuespublic 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().
ArchitectureValuespublic String creationDate()
The date and time the image was created.
public String imageId()
The ID of the AMI.
public String imageLocation()
The location of the AMI.
public 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().
ImageTypeValuespublic 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().
ImageTypeValuespublic String kernelId()
The kernel associated with the image, if any. Only applicable for machine images.
public String ownerId()
The AWS account ID of the image owner.
public 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.PlatformValuespublic 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.PlatformValuespublic String platformDetails()
The platform details associated with the billing code of the AMI. For more information, see Obtaining Billing Information in the Amazon Elastic Compute Cloud User Guide.
public 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 AWS Cost and Usage Report and in the AWS Price List API.
For the list of UsageOperation codes, see Platform Details
and Usage Operation Billing Codes in the Amazon Elastic Compute Cloud User Guide.
usageOperation corresponds to the lineitem/Operation column on your AWS Cost and Usage Report and in the AWS Price List
API. For the list of UsageOperation codes, see Platform
Details and Usage Operation Billing Codes in the Amazon Elastic Compute Cloud User Guide.public boolean hasProductCodes()
public List<ProductCode> productCodes()
Any product codes associated with the AMI.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasProductCodes() to see if a value was sent in this field.
public String ramdiskId()
The RAM disk associated with the image, if any. Only applicable for machine images.
public 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.ImageStatepublic 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.ImageStatepublic boolean hasBlockDeviceMappings()
public List<BlockDeviceMapping> blockDeviceMappings()
Any block device mapping entries.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasBlockDeviceMappings() to see if a value was sent in this field.
public String description()
The description of the AMI that was provided during image creation.
public Boolean enaSupport()
Specifies whether enhanced networking with ENA is enabled.
public 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().
HypervisorTypepublic 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().
HypervisorTypepublic String imageOwnerAlias()
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 String name()
The name of the AMI that was provided during image creation.
public String rootDeviceName()
The device name of the root device volume (for example, /dev/sda1).
/dev/sda1).public DeviceType rootDeviceType()
The type of root device used by the AMI. The AMI can use an 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().
DeviceTypepublic String rootDeviceTypeAsString()
The type of root device used by the AMI. The AMI can use an 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().
DeviceTypepublic String sriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
public StateReason stateReason()
The reason for the state change.
public boolean hasTags()
public List<Tag> tags()
Any tags assigned to the image.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public 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().
VirtualizationTypepublic 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().
VirtualizationTypepublic 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.