public class EncryptedInitiateMultipartUploadRequest extends InitiateMultipartUploadRequest implements MaterialsDescriptionProvider, java.io.Serializable
InitiateMultipartUploadRequest
to allow
additional crypto related attributes to be specified.
In particular, this includes the options to
EncryptedInitiateMultipartUploadRequest
is only
recognized by AmazonS3EncryptionClient
.
If EncryptedInitiateMultipartUploadRequest
is used against the
non-encrypting AmazonS3Client
, these additional attributes will be
ignored.
Modifier and Type | Field and Description |
---|---|
private boolean |
createEncryptionMaterial
True if a new set of encryption material is to be created; false
otherwise.
|
private java.util.Map<java.lang.String,java.lang.String> |
materialsDescription
description of encryption materials to be used with this request.
|
objectMetadata
NOOP
Constructor and Description |
---|
EncryptedInitiateMultipartUploadRequest(java.lang.String bucketName,
java.lang.String key) |
EncryptedInitiateMultipartUploadRequest(java.lang.String bucketName,
java.lang.String key,
ObjectMetadata objectMetadata) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getMaterialsDescription()
Returns an unmodifiable view of the MaterialsDescription which the caller
can use to load EncryptionMaterials from any
EncryptionMaterialsAccessor |
boolean |
isCreateEncryptionMaterial()
Returns true if a new set of encryption material is to be created; false
otherwise.
|
void |
setCreateEncryptionMaterial(boolean createEncryptionMaterial) |
void |
setMaterialsDescription(java.util.Map<java.lang.String,java.lang.String> materialsDescription)
sets the materials description for the encryption materials to be used with the current Multi Part Upload Request.
|
EncryptedInitiateMultipartUploadRequest |
withCreateEncryptionMaterial(boolean createEncryptionMaterial) |
EncryptedInitiateMultipartUploadRequest |
withMaterialsDescription(java.util.Map<java.lang.String,java.lang.String> materialsDescription)
sets the materials description for the encryption materials to be used with the current Multi Part Upload Request.
|
getAccessControlList, getBucketName, getCannedACL, getKey, getObjectMetadata, getRedirectLocation, getSSEAwsKeyManagementParams, getSSECustomerKey, getStorageClass, isRequesterPays, setAccessControlList, setBucketName, setCannedACL, setKey, setObjectMetadata, setRedirectLocation, setRequesterPays, setSSEAwsKeyManagementParams, setSSECustomerKey, setStorageClass, withAccessControlList, withBucketName, withCannedACL, withKey, withObjectMetadata, withRedirectLocation, withRequesterPays, withSSEAwsKeyManagementParams, withSSECustomerKey, withStorageClass, withStorageClass
clone, 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.util.Map<java.lang.String,java.lang.String> materialsDescription
private boolean createEncryptionMaterial
public EncryptedInitiateMultipartUploadRequest(java.lang.String bucketName, java.lang.String key)
public EncryptedInitiateMultipartUploadRequest(java.lang.String bucketName, java.lang.String key, ObjectMetadata objectMetadata)
public java.util.Map<java.lang.String,java.lang.String> getMaterialsDescription()
MaterialsDescriptionProvider
EncryptionMaterialsAccessor
getMaterialsDescription
in interface MaterialsDescriptionProvider
public void setMaterialsDescription(java.util.Map<java.lang.String,java.lang.String> materialsDescription)
materialsDescription
- the materialsDescription to setpublic EncryptedInitiateMultipartUploadRequest withMaterialsDescription(java.util.Map<java.lang.String,java.lang.String> materialsDescription)
materialsDescription
- the materialsDescription to setpublic boolean isCreateEncryptionMaterial()
public void setCreateEncryptionMaterial(boolean createEncryptionMaterial)
createEncryptionMaterial
- true if a new set of encryption material is to be created;
false otherwise.public EncryptedInitiateMultipartUploadRequest withCreateEncryptionMaterial(boolean createEncryptionMaterial)
createEncryptionMaterial
- true if a new set of encryption material is to be created;
false otherwise.