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.Builderbuilder()final StringThe date and time the AMI was created.final StringThe deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.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 BooleanIftrue, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account.final StringimageId()The ID of the AMI.final StringThe alias of the AMI owner.final BooleanisPublic()Indicates whether the AMI has public launch permissions.final Stringname()The name of the AMI.final StringownerId()The ID of the Amazon Web Services account that owns the AMI.static Class<? extends ImageMetadata.Builder> final ImageStatestate()The current state of the AMI.final StringThe current state of the AMI.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.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,
statewill 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,
statewill 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
truemeans this AMI has public launch permissions, whilefalsemeans 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
truemeans this AMI has public launch permissions, whilefalsemeans it has only implicit (AMI owner) or explicit (shared with your account) launch permissions.
-
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<ImageMetadata.Builder,ImageMetadata> - 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.
-