Class ImageVersion
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.ImageVersion
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ImageVersion.Builder,ImageVersion>
@Generated("software.amazon.awssdk:codegen") public final class ImageVersion extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ImageVersion.Builder,ImageVersion>
A version of a SageMaker
Image. A version represents an existing container image.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImageVersion.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageVersion.Builderbuilder()InstantcreationTime()When the version was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfailureReason()When a create or delete operation fails, the reason for the failure.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringimageArn()The ARN of the image the version is based on.StringimageVersionArn()The ARN of the version.ImageVersionStatusimageVersionStatus()The status of the version.StringimageVersionStatusAsString()The status of the version.InstantlastModifiedTime()When the version was last modified.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ImageVersion.Builder>serializableBuilderClass()ImageVersion.BuildertoBuilder()StringtoString()Returns a string representation of this object.Integerversion()The version number.-
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
-
creationTime
public final Instant creationTime()
When the version was created.
- Returns:
- When the version was created.
-
failureReason
public final String failureReason()
When a create or delete operation fails, the reason for the failure.
- Returns:
- When a create or delete operation fails, the reason for the failure.
-
imageArn
public final String imageArn()
The ARN of the image the version is based on.
- Returns:
- The ARN of the image the version is based on.
-
imageVersionArn
public final String imageVersionArn()
The ARN of the version.
- Returns:
- The ARN of the version.
-
imageVersionStatus
public final ImageVersionStatus imageVersionStatus()
The status of the version.
If the service returns an enum value that is not available in the current SDK version,
imageVersionStatuswill returnImageVersionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimageVersionStatusAsString().- Returns:
- The status of the version.
- See Also:
ImageVersionStatus
-
imageVersionStatusAsString
public final String imageVersionStatusAsString()
The status of the version.
If the service returns an enum value that is not available in the current SDK version,
imageVersionStatuswill returnImageVersionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromimageVersionStatusAsString().- Returns:
- The status of the version.
- See Also:
ImageVersionStatus
-
lastModifiedTime
public final Instant lastModifiedTime()
When the version was last modified.
- Returns:
- When the version was last modified.
-
version
public final Integer version()
The version number.
- Returns:
- The version number.
-
toBuilder
public ImageVersion.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ImageVersion.Builder,ImageVersion>
-
builder
public static ImageVersion.Builder builder()
-
serializableBuilderClass
public static Class<? extends ImageVersion.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
-
-