Class Layer
- java.lang.Object
-
- software.amazon.awssdk.services.ecrpublic.model.Layer
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Layer.Builder,Layer>
@Generated("software.amazon.awssdk:codegen") public final class Layer extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Layer.Builder,Layer>
An object that represents an Amazon ECR image layer.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLayer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Layer.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LayerAvailabilitylayerAvailability()The availability status of the image layer.StringlayerAvailabilityAsString()The availability status of the image layer.StringlayerDigest()Thesha256digest of the image layer.LonglayerSize()The size, in bytes, of the image layer.StringmediaType()The media type of the layer, such asapplication/vnd.docker.image.rootfs.diff.tar.gziporapplication/vnd.oci.image.layer.v1.tar+gzip.List<SdkField<?>>sdkFields()static Class<? extends Layer.Builder>serializableBuilderClass()Layer.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
-
layerDigest
public final String layerDigest()
The
sha256digest of the image layer.- Returns:
- The
sha256digest of the image layer.
-
layerAvailability
public final LayerAvailability layerAvailability()
The availability status of the image layer.
If the service returns an enum value that is not available in the current SDK version,
layerAvailabilitywill returnLayerAvailability.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlayerAvailabilityAsString().- Returns:
- The availability status of the image layer.
- See Also:
LayerAvailability
-
layerAvailabilityAsString
public final String layerAvailabilityAsString()
The availability status of the image layer.
If the service returns an enum value that is not available in the current SDK version,
layerAvailabilitywill returnLayerAvailability.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlayerAvailabilityAsString().- Returns:
- The availability status of the image layer.
- See Also:
LayerAvailability
-
layerSize
public final Long layerSize()
The size, in bytes, of the image layer.
- Returns:
- The size, in bytes, of the image layer.
-
mediaType
public final String mediaType()
The media type of the layer, such as
application/vnd.docker.image.rootfs.diff.tar.gziporapplication/vnd.oci.image.layer.v1.tar+gzip.- Returns:
- The media type of the layer, such as
application/vnd.docker.image.rootfs.diff.tar.gziporapplication/vnd.oci.image.layer.v1.tar+gzip.
-
toBuilder
public Layer.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Layer.Builder,Layer>
-
builder
public static Layer.Builder builder()
-
serializableBuilderClass
public static Class<? extends Layer.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.
-
-