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 AI
Image
. A version represents an existing container image.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ImageVersion.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageVersion.Builder
builder()
Instant
creationTime()
When the version was created.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
failureReason()
When a create or delete operation fails, the reason for the failure.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
imageArn()
The ARN of the image the version is based on.String
imageVersionArn()
The ARN of the version.ImageVersionStatus
imageVersionStatus()
The status of the version.String
imageVersionStatusAsString()
The status of the version.Instant
lastModifiedTime()
When the version was last modified.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends ImageVersion.Builder>
serializableBuilderClass()
ImageVersion.Builder
toBuilder()
String
toString()
Returns a string representation of this object.Integer
version()
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,
imageVersionStatus
will 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,
imageVersionStatus
will 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:
toBuilder
in 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:
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-