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 interface
ImageMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageMetadata.Builder
builder()
String
creationDate()
The date and time the AMI was created.String
deprecationTime()
The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
imageId()
The ID of the AMI.String
imageOwnerAlias()
The alias of the AMI owner.Boolean
isPublic()
Indicates whether the AMI has public launch permissions.String
name()
The name of the AMI.String
ownerId()
The ID of the Amazon Web Services account that owns the AMI.List<SdkField<?>>
sdkFields()
static Class<? extends ImageMetadata.Builder>
serializableBuilderClass()
ImageState
state()
The current state of the AMI.String
stateAsString()
The current state of the AMI.ImageMetadata.Builder
toBuilder()
String
toString()
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,
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:
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,
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:
ImageState
-
imageOwnerAlias
public final String imageOwnerAlias()
The alias of the AMI owner.
Valid values:
amazon
|aws-marketplace
- Returns:
- The alias of the AMI owner.
Valid values:
amazon
|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
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
public ImageMetadata.Builder toBuilder()
- Specified by:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-