Class ImageMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ImageMetadata
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ImageMetadata.Builder,ImageMetadata>
@Generated("software.amazon.awssdk:codegen") public final class ImageMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ImageMetadata.Builder,ImageMetadata>
Information about the AMI.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImageMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageMetadata.Builderbuilder()StringcreationDate()The date and time the AMI was created.StringdeprecationTime()The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringimageId()The ID of the AMI.StringimageOwnerAlias()The alias of the AMI owner.BooleanisPublic()Indicates whether the AMI has public launch permissions.Stringname()The name of the AMI.StringownerId()The ID of the Amazon Web Services account that owns the AMI.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ImageMetadata.Builder>serializableBuilderClass()ImageStatestate()The current state of the AMI.StringstateAsString()The current state of the AMI.ImageMetadata.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
imageId
public final String imageId()
The ID of the AMI.
- Returns:
- The ID of the AMI.
-
name
public final String name()
The name of the AMI.
- Returns:
- The name of the AMI.
-
ownerId
public final String 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
public final ImageState 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:
ImageState
-
stateAsString
public final String 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:
ImageState
-
imageOwnerAlias
public final String 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
public final String creationDate()
The date and time the AMI was created.
- Returns:
- The date and time the AMI was created.
-
deprecationTime
public final String 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.
-
isPublic
public final Boolean 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
public ImageMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ImageMetadata.Builder,ImageMetadata>
-
builder
public static ImageMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends ImageMetadata.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-