@Generated(value="software.amazon.awssdk:codegen") public class Layer extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LayerAvailability |
layerAvailability()
The availability status of the image layer.
|
String |
layerAvailabilityString()
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.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 . |
static Class<? extends Layer.Builder> |
serializableBuilderClass() |
Layer.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
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 layerAvailabilityString()
.
LayerAvailability
public String layerAvailabilityString()
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 layerAvailabilityString()
.
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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Layer.Builder,Layer>
public static Layer.Builder builder()
public static Class<? extends Layer.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.