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 UploadLayerPartRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)ByteBuffergetLayerPartBlob()The base64-encoded layer part payload.LonggetPartFirstByte()The integer value of the first byte of the layer part.LonggetPartLastByte()The integer value of the last byte of the layer part.StringgetRegistryId()The AWS account ID associated with the registry that you are uploading layer parts to.StringgetRepositoryName()The name of the repository that you are uploading layer parts to.StringgetUploadId()The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.inthashCode()voidsetLayerPartBlob(ByteBuffer layerPartBlob)The base64-encoded layer part payload.voidsetPartFirstByte(Long partFirstByte)The integer value of the first byte of the layer part.voidsetPartLastByte(Long partLastByte)The integer value of the last byte of the layer part.voidsetRegistryId(String registryId)The AWS account ID associated with the registry that you are uploading layer parts to.voidsetRepositoryName(String repositoryName)The name of the repository that you are uploading layer parts to.voidsetUploadId(String uploadId)The upload ID from a previous InitiateLayerUpload operation to associate with the layer part upload.StringtoString()Returns a string representation of this object; useful for testing and debugging.UploadLayerPartRequestwithLayerPartBlob(ByteBuffer layerPartBlob)The base64-encoded layer part payload.UploadLayerPartRequestwithPartFirstByte(Long partFirstByte)The integer value of the first byte of the layer part.UploadLayerPartRequestwithPartLastByte(Long partLastByte)The integer value of the last byte of the layer part.UploadLayerPartRequestwithRegistryId(String registryId)The AWS account ID associated with the registry that you are uploading layer parts to.UploadLayerPartRequestwithRepositoryName(String repositoryName)The name of the repository that you are uploading layer parts to.UploadLayerPartRequestwithUploadId(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.
ByteBuffers are stateful. Calling theirgetmethods changes theirposition. We recommend usingByteBuffer.asReadOnlyBuffer()to create a read-only view of the buffer with an independentposition, and callinggetmethods on this rather than directly on the returnedByteBuffer. Doing so will ensure that anyone else using theByteBufferwill 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UploadLayerPartRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-