Class UploadLayerPartRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ecr.model.UploadLayerPartRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class UploadLayerPartRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UploadLayerPartRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UploadLayerPartRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
ByteBuffer
getLayerPartBlob()
The base64-encoded layer part payload.Long
getPartFirstByte()
The integer value of the first byte of the layer part.Long
getPartLastByte()
The integer value of the last byte of the layer part.String
getRegistryId()
The AWS account ID associated with the registry that you are uploading layer parts to.String
getRepositoryName()
The name of the repository that you are uploading layer parts to.String
getUploadId()
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.int
hashCode()
void
setLayerPartBlob(ByteBuffer layerPartBlob)
The base64-encoded layer part payload.void
setPartFirstByte(Long partFirstByte)
The integer value of the first byte of the layer part.void
setPartLastByte(Long partLastByte)
The integer value of the last byte of the layer part.void
setRegistryId(String registryId)
The AWS account ID associated with the registry that you are uploading layer parts to.void
setRepositoryName(String repositoryName)
The name of the repository that you are uploading layer parts to.void
setUploadId(String uploadId)
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.String
toString()
Returns a string representation of this object; useful for testing and debugging.UploadLayerPartRequest
withLayerPartBlob(ByteBuffer layerPartBlob)
The base64-encoded layer part payload.UploadLayerPartRequest
withPartFirstByte(Long partFirstByte)
The integer value of the first byte of the layer part.UploadLayerPartRequest
withPartLastByte(Long partLastByte)
The integer value of the last byte of the layer part.UploadLayerPartRequest
withRegistryId(String registryId)
The AWS account ID associated with the registry that you are uploading layer parts to.UploadLayerPartRequest
withRepositoryName(String repositoryName)
The name of the repository that you are uploading layer parts to.UploadLayerPartRequest
withUploadId(String uploadId)
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setRegistryId
public void setRegistryId(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.
- Parameters:
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.
-
getRegistryId
public 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.
- Returns:
- 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.
-
withRegistryId
public UploadLayerPartRequest withRegistryId(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRepositoryName
public void setRepositoryName(String repositoryName)
The name of the repository that you are uploading layer parts to.
- Parameters:
repositoryName
- The name of the repository that you are uploading layer parts to.
-
getRepositoryName
public String getRepositoryName()
The name of the repository that you are uploading layer parts to.
- Returns:
- The name of the repository that you are uploading layer parts to.
-
withRepositoryName
public UploadLayerPartRequest withRepositoryName(String repositoryName)
The name of the repository that you are uploading layer parts to.
- Parameters:
repositoryName
- The name of the repository that you are uploading layer parts to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUploadId
public void setUploadId(String uploadId)
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
- Parameters:
uploadId
- The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
-
getUploadId
public String getUploadId()
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
- Returns:
- The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
-
withUploadId
public UploadLayerPartRequest withUploadId(String uploadId)
The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.
- Parameters:
uploadId
- The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPartFirstByte
public void setPartFirstByte(Long partFirstByte)
The integer value of the first byte of the layer part.
- Parameters:
partFirstByte
- The integer value of the first byte of the layer part.
-
getPartFirstByte
public Long getPartFirstByte()
The integer value of the first byte of the layer part.
- Returns:
- The integer value of the first byte of the layer part.
-
withPartFirstByte
public UploadLayerPartRequest withPartFirstByte(Long partFirstByte)
The integer value of the first byte of the layer part.
- Parameters:
partFirstByte
- The integer value of the first byte of the layer part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPartLastByte
public void setPartLastByte(Long partLastByte)
The integer value of the last byte of the layer part.
- Parameters:
partLastByte
- The integer value of the last byte of the layer part.
-
getPartLastByte
public Long getPartLastByte()
The integer value of the last byte of the layer part.
- Returns:
- The integer value of the last byte of the layer part.
-
withPartLastByte
public UploadLayerPartRequest withPartLastByte(Long partLastByte)
The integer value of the last byte of the layer part.
- Parameters:
partLastByte
- The integer value of the last byte of the layer part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLayerPartBlob
public void setLayerPartBlob(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.
- Parameters:
layerPartBlob
- The base64-encoded layer part payload.
-
getLayerPartBlob
public ByteBuffer getLayerPartBlob()
The base64-encoded layer part payload.
ByteBuffer
s are stateful. Calling theirget
methods changes theirposition
. We recommend usingByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independentposition
, and callingget
methods on this rather than directly on the returnedByteBuffer
. Doing so will ensure that anyone else using theByteBuffer
will not be affected by changes to theposition
.- Returns:
- The base64-encoded layer part payload.
-
withLayerPartBlob
public UploadLayerPartRequest withLayerPartBlob(ByteBuffer layerPartBlob)
The base64-encoded layer part payload.
- Parameters:
layerPartBlob
- The base64-encoded layer part payload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UploadLayerPartRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-