public class UploadObjectRequest extends AbstractPutObjectRequest implements MaterialsDescriptionProvider, Serializable
S3DataSource.Utils
Constructor and Description |
---|
UploadObjectRequest(String bucketName,
String key,
File file) |
UploadObjectRequest(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
UploadObjectRequest |
clone()
Returns a clone (as deep as possible) of this request object.
|
long |
getDiskLimit()
Returns the maximum size (in bytes) of additional disk space that will be
consumed for this request; or
Long.MAX_VALUE if there is no
limit. |
ExecutorService |
getExecutorService()
Returns a custom executor service for concurrent uploads; or null there
is no customization.
|
Map<String,String> |
getMaterialsDescription()
Returns an unmodifiable view of the MaterialsDescription which the caller
can use to load EncryptionMaterials from any
EncryptionMaterialsAccessor |
com.amazonaws.services.s3.internal.MultiFileOutputStream |
getMultiFileOutputStream()
Returns a custom multi-file output stream; or null if the default is to
be used.
|
long |
getPartSize()
Returns the part-size used for muti-part upload for this request.
|
UploadObjectObserver |
getUploadObjectObserver()
Returns a custom upload-object observer; or null there is no
customization.
|
ObjectMetadata |
getUploadPartMetadata()
Gets the optional metadata to be included in each UploadPart request.
|
void |
setMaterialsDescription(Map<String,String> materialsDescription)
Sets the materials description for the encryption materials to be used
with the current request.
|
void |
setUploadPartMetadata(ObjectMetadata partUploadMetadata)
Sets the optional metadata to be included in each UploadPart request.
|
UploadObjectRequest |
withDiskLimit(long diskLimit)
Configured the maximum disk space (in bytes) that will be consumed for
this request.
|
UploadObjectRequest |
withExecutorService(ExecutorService executorService)
Configure a custom executor service for concurrent uploads.
|
UploadObjectRequest |
withMaterialsDescription(Map<String,String> materialsDescription)
Fluent API for
setMaterialsDescription(Map) . |
UploadObjectRequest |
withMultiFileOutputStream(com.amazonaws.services.s3.internal.MultiFileOutputStream multiFileOutputStream)
Configure a custom multi-file output stream; or null if the default is to
be used.
|
UploadObjectRequest |
withPartSize(long partSize)
Configured the part size for multi-part upload.
|
UploadObjectRequest |
withUploadObjectObserver(UploadObjectObserver uploadObjectObserver)
Configure a custom upload-object observer; or null if the default is to
be used.
|
<T extends UploadObjectRequest> |
withUploadPartMetadata(ObjectMetadata partUploadMetadata)
Fluent API for
setUploadPartMetadata(ObjectMetadata) . |
copyPutObjectBaseTo, getAccessControlList, getBucketName, getCannedAcl, getFile, getInputStream, getKey, getMetadata, getProgressListener, getRedirectLocation, getSSEAwsKeyManagementParams, getSSECustomerKey, getStorageClass, getTagging, setAccessControlList, setBucketName, setCannedAcl, setFile, setInputStream, setKey, setMetadata, setProgressListener, setRedirectLocation, setSSEAwsKeyManagementParams, setSSECustomerKey, setStorageClass, setStorageClass, setTagging, withAccessControlList, withBucketName, withCannedAcl, withFile, withInputStream, withKey, withMetadata, withProgressListener, withRedirectLocation, withSSEAwsKeyManagementParams, withSSECustomerKey, withStorageClass, withStorageClass, withTagging
copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public UploadObjectRequest(String bucketName, String key, InputStream input, ObjectMetadata metadata)
public long getPartSize()
public UploadObjectRequest withPartSize(long partSize)
MIN_PART_SIZE
. This part size will be used as a reference for
the multi-part uploads but the physical part size may vary.public long getDiskLimit()
Long.MAX_VALUE
if there is no
limit.public UploadObjectRequest withDiskLimit(long diskLimit)
partSize
.public ExecutorService getExecutorService()
public UploadObjectRequest withExecutorService(ExecutorService executorService)
public com.amazonaws.services.s3.internal.MultiFileOutputStream getMultiFileOutputStream()
public UploadObjectRequest withMultiFileOutputStream(com.amazonaws.services.s3.internal.MultiFileOutputStream multiFileOutputStream)
public UploadObjectObserver getUploadObjectObserver()
public UploadObjectRequest withUploadObjectObserver(UploadObjectObserver uploadObjectObserver)
public Map<String,String> getMaterialsDescription()
MaterialsDescriptionProvider
EncryptionMaterialsAccessor
getMaterialsDescription
in interface MaterialsDescriptionProvider
public void setMaterialsDescription(Map<String,String> materialsDescription)
materialsDescription
- the materialsDescription to setpublic UploadObjectRequest withMaterialsDescription(Map<String,String> materialsDescription)
setMaterialsDescription(Map)
.public ObjectMetadata getUploadPartMetadata()
public void setUploadPartMetadata(ObjectMetadata partUploadMetadata)
public <T extends UploadObjectRequest> T withUploadPartMetadata(ObjectMetadata partUploadMetadata)
setUploadPartMetadata(ObjectMetadata)
.public UploadObjectRequest clone()
clone
in class AbstractPutObjectRequest
CloneNotSupportedException
Copyright © 2019. All rights reserved.