public class UploadLayerPartRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer |
layerPartBlob
The base64-encoded layer part payload.
|
private java.lang.Long |
partFirstByte
The integer value of the first byte of the layer part.
|
private java.lang.Long |
partLastByte
The integer value of the last byte of the layer part.
|
private java.lang.String |
registryId
The AWS account ID associated with the registry that you are uploading
layer parts to.
|
private java.lang.String |
repositoryName
The name of the repository that you are uploading layer parts to.
|
private java.lang.String |
uploadId
The upload ID from a previous InitiateLayerUpload operation to
associate with the layer part upload.
|
NOOP
Constructor and Description |
---|
UploadLayerPartRequest() |
Modifier and Type | Method and Description |
---|---|
UploadLayerPartRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.nio.ByteBuffer |
getLayerPartBlob()
The base64-encoded layer part payload.
|
java.lang.Long |
getPartFirstByte()
The integer value of the first byte of the layer part.
|
java.lang.Long |
getPartLastByte()
The integer value of the last byte of the layer part.
|
java.lang.String |
getRegistryId()
The AWS account ID associated with the registry that you are uploading
layer parts to.
|
java.lang.String |
getRepositoryName()
The name of the repository that you are uploading layer parts to.
|
java.lang.String |
getUploadId()
The upload ID from a previous InitiateLayerUpload operation to
associate with the layer part upload.
|
int |
hashCode() |
void |
setLayerPartBlob(java.nio.ByteBuffer layerPartBlob)
The base64-encoded layer part payload.
|
void |
setPartFirstByte(java.lang.Long partFirstByte)
The integer value of the first byte of the layer part.
|
void |
setPartLastByte(java.lang.Long partLastByte)
The integer value of the last byte of the layer part.
|
void |
setRegistryId(java.lang.String registryId)
The AWS account ID associated with the registry that you are uploading
layer parts to.
|
void |
setRepositoryName(java.lang.String repositoryName)
The name of the repository that you are uploading layer parts to.
|
void |
setUploadId(java.lang.String uploadId)
The upload ID from a previous InitiateLayerUpload operation to
associate with the layer part upload.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UploadLayerPartRequest |
withLayerPartBlob(java.nio.ByteBuffer layerPartBlob)
The base64-encoded layer part payload.
|
UploadLayerPartRequest |
withPartFirstByte(java.lang.Long partFirstByte)
The integer value of the first byte of the layer part.
|
UploadLayerPartRequest |
withPartLastByte(java.lang.Long partLastByte)
The integer value of the last byte of the layer part.
|
UploadLayerPartRequest |
withRegistryId(java.lang.String registryId)
The AWS account ID associated with the registry that you are uploading
layer parts to.
|
UploadLayerPartRequest |
withRepositoryName(java.lang.String repositoryName)
The name of the repository that you are uploading layer parts to.
|
UploadLayerPartRequest |
withUploadId(java.lang.String uploadId)
The upload ID from a previous InitiateLayerUpload operation to
associate with the layer part upload.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String registryId
The AWS account ID associated with the registry that you are uploading layer parts to. If you do not specify a registry, the default registry is assumed.
private java.lang.String repositoryName
The name of the repository that you are uploading layer parts to.
private java.lang.String uploadId
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
private java.lang.Long partFirstByte
The integer value of the first byte of the layer part.
private java.lang.Long partLastByte
The integer value of the last byte of the layer part.
private java.nio.ByteBuffer layerPartBlob
The base64-encoded layer part payload.
public void setRegistryId(java.lang.String registryId)
The AWS account ID associated with the registry that you are uploading layer parts to. If you do not specify a registry, the default registry is assumed.
registryId
- The AWS account ID associated with the registry that you are
uploading layer parts to. If you do not specify a registry, the
default registry is assumed.public java.lang.String getRegistryId()
The AWS account ID associated with the registry that you are uploading layer parts to. If you do not specify a registry, the default registry is assumed.
public UploadLayerPartRequest withRegistryId(java.lang.String registryId)
The AWS account ID associated with the registry that you are uploading layer parts to. If you do not specify a registry, the default registry is assumed.
registryId
- The AWS account ID associated with the registry that you are
uploading layer parts to. If you do not specify a registry, the
default registry is assumed.public void setRepositoryName(java.lang.String repositoryName)
The name of the repository that you are uploading layer parts to.
repositoryName
- The name of the repository that you are uploading layer parts to.public java.lang.String getRepositoryName()
The name of the repository that you are uploading layer parts to.
public UploadLayerPartRequest withRepositoryName(java.lang.String repositoryName)
The name of the repository that you are uploading layer parts to.
repositoryName
- The name of the repository that you are uploading layer parts to.public void setUploadId(java.lang.String uploadId)
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
uploadId
- The upload ID from a previous InitiateLayerUpload operation
to associate with the layer part upload.public java.lang.String getUploadId()
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
public UploadLayerPartRequest withUploadId(java.lang.String uploadId)
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
uploadId
- The upload ID from a previous InitiateLayerUpload operation
to associate with the layer part upload.public void setPartFirstByte(java.lang.Long partFirstByte)
The integer value of the first byte of the layer part.
partFirstByte
- The integer value of the first byte of the layer part.public java.lang.Long getPartFirstByte()
The integer value of the first byte of the layer part.
public UploadLayerPartRequest withPartFirstByte(java.lang.Long partFirstByte)
The integer value of the first byte of the layer part.
partFirstByte
- The integer value of the first byte of the layer part.public void setPartLastByte(java.lang.Long partLastByte)
The integer value of the last byte of the layer part.
partLastByte
- The integer value of the last byte of the layer part.public java.lang.Long getPartLastByte()
The integer value of the last byte of the layer part.
public UploadLayerPartRequest withPartLastByte(java.lang.Long partLastByte)
The integer value of the last byte of the layer part.
partLastByte
- The integer value of the last byte of the layer part.public void setLayerPartBlob(java.nio.ByteBuffer layerPartBlob)
The base64-encoded layer part payload.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
layerPartBlob
- The base64-encoded layer part payload.public java.nio.ByteBuffer getLayerPartBlob()
The base64-encoded layer part payload.
ByteBuffer
s are stateful. Calling their get
methods
changes their position
. We recommend using
ByteBuffer.asReadOnlyBuffer()
to create a read-only view
of the buffer with an independent position
, and calling
get
methods on this rather than directly on the returned
ByteBuffer
. Doing so will ensure that anyone else using the
ByteBuffer
will not be affected by changes to the position
.
public UploadLayerPartRequest withLayerPartBlob(java.nio.ByteBuffer layerPartBlob)
The base64-encoded layer part payload.
layerPartBlob
- The base64-encoded layer part payload.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UploadLayerPartRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()