@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Layer extends Object implements Serializable, Cloneable, StructuredPojo
An object representing an Amazon ECR image layer.
Constructor and Description |
---|
Layer() |
Modifier and Type | Method and Description |
---|---|
Layer |
clone() |
boolean |
equals(Object obj) |
String |
getLayerAvailability()
The availability status of the image layer.
|
String |
getLayerDigest()
The
sha256 digest of the image layer. |
Long |
getLayerSize()
The size, in bytes, of the image layer.
|
String |
getMediaType()
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 . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLayerAvailability(LayerAvailability layerAvailability)
The availability status of the image layer.
|
void |
setLayerAvailability(String layerAvailability)
The availability status of the image layer.
|
void |
setLayerDigest(String layerDigest)
The
sha256 digest of the image layer. |
void |
setLayerSize(Long layerSize)
The size, in bytes, of the image layer.
|
void |
setMediaType(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 . |
String |
toString()
Returns a string representation of this object.
|
Layer |
withLayerAvailability(LayerAvailability layerAvailability)
The availability status of the image layer.
|
Layer |
withLayerAvailability(String layerAvailability)
The availability status of the image layer.
|
Layer |
withLayerDigest(String layerDigest)
The
sha256 digest of the image layer. |
Layer |
withLayerSize(Long layerSize)
The size, in bytes, of the image layer.
|
Layer |
withMediaType(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 . |
public void setLayerDigest(String layerDigest)
The sha256
digest of the image layer.
layerDigest
- The sha256
digest of the image layer.public String getLayerDigest()
The sha256
digest of the image layer.
sha256
digest of the image layer.public Layer withLayerDigest(String layerDigest)
The sha256
digest of the image layer.
layerDigest
- The sha256
digest of the image layer.public void setLayerAvailability(String layerAvailability)
The availability status of the image layer.
layerAvailability
- The availability status of the image layer.LayerAvailability
public String getLayerAvailability()
The availability status of the image layer.
LayerAvailability
public Layer withLayerAvailability(String layerAvailability)
The availability status of the image layer.
layerAvailability
- The availability status of the image layer.LayerAvailability
public void setLayerAvailability(LayerAvailability layerAvailability)
The availability status of the image layer.
layerAvailability
- The availability status of the image layer.LayerAvailability
public Layer withLayerAvailability(LayerAvailability layerAvailability)
The availability status of the image layer.
layerAvailability
- The availability status of the image layer.LayerAvailability
public void setLayerSize(Long layerSize)
The size, in bytes, of the image layer.
layerSize
- The size, in bytes, of the image layer.public Long getLayerSize()
The size, in bytes, of the image layer.
public Layer withLayerSize(Long layerSize)
The size, in bytes, of the image layer.
layerSize
- The size, in bytes, of the image layer.public void setMediaType(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
.
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
.public String getMediaType()
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 withMediaType(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
.
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
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.