@Generated(value="software.amazon.awssdk:codegen") public final class Layer extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Layer.Builder,Layer>
An object representing an Amazon ECR image layer.
Modifier and Type | Class and Description |
---|---|
static interface |
Layer.Builder |
Modifier and Type | Method and Description |
---|---|
static Layer.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LayerAvailability |
layerAvailability()
The availability status of the image layer.
|
String |
layerAvailabilityAsString()
The availability status of the image layer.
|
String |
layerDigest()
The
sha256 digest of the image layer. |
Long |
layerSize()
The size, in bytes, of the image layer.
|
String |
mediaType()
The media type of the layer, such as
application/vnd.docker.image.rootfs.diff.tar.gzip or
application/vnd.oci.image.layer.v1.tar+gzip . |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Layer.Builder> |
serializableBuilderClass() |
Layer.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String layerDigest()
The sha256
digest of the image layer.
sha256
digest of the image layer.public 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, layerAvailability
will return LayerAvailability.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from layerAvailabilityAsString()
.
LayerAvailability
public 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, layerAvailability
will return LayerAvailability.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from layerAvailabilityAsString()
.
LayerAvailability
public Long layerSize()
The size, in bytes, of the image layer.
public String mediaType()
The media type of the layer, such as application/vnd.docker.image.rootfs.diff.tar.gzip
or
application/vnd.oci.image.layer.v1.tar+gzip
.
application/vnd.docker.image.rootfs.diff.tar.gzip
or
application/vnd.oci.image.layer.v1.tar+gzip
.public Layer.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Layer.Builder,Layer>
public static Layer.Builder builder()
public static Class<? extends Layer.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.