Class ImageMetadata
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ImageMetadata.Builder,
ImageMetadata>
Information about the AMI.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageMetadata.Builder
builder()
final String
The date and time the AMI was created.final String
The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.final boolean
final boolean
equalsBySdkFields
(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 int
hashCode()
final Boolean
Iftrue
, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account.final String
imageId()
The ID of the AMI.final String
The alias of the AMI owner.final Boolean
isPublic()
Indicates whether the AMI has public launch permissions.final String
name()
The name of the AMI.final String
ownerId()
The ID of the Amazon Web Services account that owns the AMI.static Class
<? extends ImageMetadata.Builder> final ImageState
state()
The current state of the AMI.final String
The current state of the AMI.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
imageId
-
name
-
ownerId
The ID of the Amazon Web Services account that owns the AMI.
- Returns:
- The ID of the Amazon Web Services account that owns the AMI.
-
state
The current state of the AMI. If the state is
available
, the AMI 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 returnImageState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstateAsString()
.- Returns:
- The current state of the AMI. If the state is
available
, the AMI is successfully registered and can be used to launch an instance. - See Also:
-
stateAsString
The current state of the AMI. If the state is
available
, the AMI 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 returnImageState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstateAsString()
.- Returns:
- The current state of the AMI. If the state is
available
, the AMI is successfully registered and can be used to launch an instance. - See Also:
-
imageOwnerAlias
The alias of the AMI owner.
Valid values:
amazon
|aws-backup-vault
|aws-marketplace
- Returns:
- The alias of the AMI owner.
Valid values:
amazon
|aws-backup-vault
|aws-marketplace
-
creationDate
The date and time the AMI was created.
- Returns:
- The date and time the AMI was created.
-
deprecationTime
The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.
- Returns:
- The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.
-
imageAllowed
If
true
, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. Iffalse
, the AMI can't be discovered or used in the account.For more information, see Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs in Amazon EC2 User Guide.
- Returns:
- If
true
, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. Iffalse
, the AMI can't be discovered or used in the account.For more information, see Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs in Amazon EC2 User Guide.
-
isPublic
Indicates whether the AMI has public launch permissions. A value of
true
means this AMI has public launch permissions, whilefalse
means it has only implicit (AMI owner) or explicit (shared with your account) launch permissions.- Returns:
- Indicates whether the AMI has public launch permissions. A value of
true
means this AMI has public launch permissions, whilefalse
means it has only implicit (AMI owner) or explicit (shared with your account) launch permissions.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ImageMetadata.Builder,
ImageMetadata> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-