Class MachineImageDetails
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MachineImageDetails.Builder,MachineImageDetails>
Contains details about an Amazon Machine Image (AMI) that Amazon Inspector scanned directly.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal ArchitectureThe CPU architecture of the machine image, for examplex86_64orarm64.final StringThe CPU architecture of the machine image, for examplex86_64orarm64.static MachineImageDetails.Builderbuilder()final InstantThe date and time that the machine image was created.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final BooleanisPublic()Indicates whether the machine image is shared publicly.final StringThe ID of the machine image, for exampleami-0abcdef1234567890.final Stringname()The name of the machine image.final StringThe ID of the account that owns the machine image.final Stringplatform()The operating system platform of the machine image.final StringThe root device type of the machine image, eitherebsorinstance-store.static Class<? extends MachineImageDetails.Builder> final StringThe ID of the Amazon EC2 instance that the machine image was created from, if available.final Stringstate()The state of the machine image, for exampleavailable,pending, orderegistered.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe virtualization type of the machine image, eitherhvmorparavirtual.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
machineImageId
The ID of the machine image, for example
ami-0abcdef1234567890.- Returns:
- The ID of the machine image, for example
ami-0abcdef1234567890.
-
name
-
ownerAccountId
The ID of the account that owns the machine image.
- Returns:
- The ID of the account that owns the machine image.
-
platform
The operating system platform of the machine image.
- Returns:
- The operating system platform of the machine image.
-
architecture
The CPU architecture of the machine image, for example
x86_64orarm64.If the service returns an enum value that is not available in the current SDK version,
architecturewill returnArchitecture.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromarchitectureAsString().- Returns:
- The CPU architecture of the machine image, for example
x86_64orarm64. - See Also:
-
architectureAsString
The CPU architecture of the machine image, for example
x86_64orarm64.If the service returns an enum value that is not available in the current SDK version,
architecturewill returnArchitecture.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromarchitectureAsString().- Returns:
- The CPU architecture of the machine image, for example
x86_64orarm64. - See Also:
-
creationDate
The date and time that the machine image was created.
- Returns:
- The date and time that the machine image was created.
-
state
The state of the machine image, for example
available,pending, orderegistered.- Returns:
- The state of the machine image, for example
available,pending, orderegistered.
-
isPublic
Indicates whether the machine image is shared publicly.
- Returns:
- Indicates whether the machine image is shared publicly.
-
rootDeviceType
The root device type of the machine image, either
ebsorinstance-store.- Returns:
- The root device type of the machine image, either
ebsorinstance-store.
-
virtualizationType
The virtualization type of the machine image, either
hvmorparavirtual.- Returns:
- The virtualization type of the machine image, either
hvmorparavirtual.
-
sourceResourceId
The ID of the Amazon EC2 instance that the machine image was created from, if available.
- Returns:
- The ID of the Amazon EC2 instance that the machine image was created from, if available.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MachineImageDetails.Builder,MachineImageDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-