Package com.amazonaws.services.s3.model
Class PutInstructionFileRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.s3.model.PutInstructionFileRequest
- All Implemented Interfaces:
ReadLimitInfo
,EncryptionMaterialsFactory
,MaterialsDescriptionProvider
,Cloneable
public final class PutInstructionFileRequest
extends AmazonWebServiceRequest
implements MaterialsDescriptionProvider, EncryptionMaterialsFactory
Used to create a new instruction file, typically used to share an encrypted
S3 object with partners via re-encrypting the CEK of the specified S3 object
with a partner-specific public key.
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionPutInstructionFileRequest
(S3ObjectId s3ObjectId, EncryptionMaterials encryptionMaterials, String suffix) PutInstructionFileRequest
(S3ObjectId s3ObjectId, Map<String, String> matDesc, String suffix) -
Method Summary
Modifier and TypeMethodDescriptioncreatePutObjectRequest
(S3Object s3Object) Creates and returns aPutObjectRequest
for the instruction file with the specified suffix.Returns the optional access control list for the new object.Gets the optional pre-configured access control policy to use for the new object.Returns the encryption materials if specified; or null if not.Returns the material description for the new instruction file.Gets the optional redirect location for the new object.Returns the S3 object id for which the new instruction file will be created.Gets the optional Amazon S3 storage class to use when storing the new object.Returns the suffix for the new instruction file.void
setAccessControlList
(AccessControlList accessControlList) Sets the optional access control list for the new object.void
setCannedAcl
(CannedAccessControlList cannedAcl) Sets the optional pre-configured access control policy to use for the new object.void
setRedirectLocation
(String redirectLocation) Sets the optional redirect location for the new object.void
setStorageClass
(StorageClass storageClass) Sets the optional Amazon S3 storage class to use when storing the new object.void
setStorageClass
(String storageClass) Sets the optional Amazon S3 storage class to use when storing the new object.withAccessControlList
(AccessControlList accessControlList) Sets the optional access control list for the new object.withCannedAcl
(CannedAccessControlList cannedAcl) Sets the optional pre-configured access control policy to use for the new object.withRedirectLocation
(String redirectLocation) Sets the optional redirect location for the new object.Returns thisPutObjectRequest
, enabling additional method calls to be chained together.withStorageClass
(StorageClass storageClass) Sets the optional Amazon S3 storage class to use when storing the new object.withStorageClass
(String storageClass) Sets the optional Amazon S3 storage class to use when storing the new object.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
PutInstructionFileRequest
- Parameters:
s3ObjectId
- id of the corresponding s3 object.matDesc
- material description of the instruction filesuffix
- suffix of the instruction file to be put
-
PutInstructionFileRequest
public PutInstructionFileRequest(S3ObjectId s3ObjectId, EncryptionMaterials encryptionMaterials, String suffix) - Parameters:
s3ObjectId
- id of the corresponding s3 object.encryptionMaterials
- encryption materials to be used for the instruction filesuffix
- suffix of the instruction file to be put
-
-
Method Details
-
getS3ObjectId
Returns the S3 object id for which the new instruction file will be created. This is not the instruction file id. -
getMaterialsDescription
Returns the material description for the new instruction file.- Specified by:
getMaterialsDescription
in interfaceMaterialsDescriptionProvider
- Returns:
- materials description.
-
getEncryptionMaterials
Returns the encryption materials if specified; or null if not.- Specified by:
getEncryptionMaterials
in interfaceEncryptionMaterialsFactory
- Returns:
- EncryptionMaterials which the caller can use to encrypt or decrypt data.
-
getSuffix
Returns the suffix for the new instruction file. -
getCannedAcl
Gets the optional pre-configured access control policy to use for the new object.- Returns:
- The optional pre-configured access control policy to use for the new object.
- See Also:
-
setCannedAcl
Sets the optional pre-configured access control policy to use for the new object.- Parameters:
cannedAcl
- The optional pre-configured access control policy to use for the new object.- See Also:
-
withCannedAcl
Sets the optional pre-configured access control policy to use for the new object. Returns thisPutObjectRequest
, enabling additional method calls to be chained together.- Parameters:
cannedAcl
- The optional pre-configured access control policy to use for the new object.- Returns:
- This
PutObjectRequest
, enabling additional method calls to be chained together. - See Also:
-
getAccessControlList
Returns the optional access control list for the new object. If specified, cannedAcl will be ignored. -
setAccessControlList
Sets the optional access control list for the new object. If specified, cannedAcl will be ignored.- Parameters:
accessControlList
- The access control list for the new object.
-
withAccessControlList
Sets the optional access control list for the new object. If specified, cannedAcl will be ignored. Returns thisPutObjectRequest
, enabling additional method calls to be chained together.- Parameters:
accessControlList
- The access control list for the new object.
-
getRedirectLocation
Gets the optional redirect location for the new object. -
setRedirectLocation
Sets the optional redirect location for the new object.- Parameters:
redirectLocation
- The redirect location for the new object.
-
withRedirectLocation
Sets the optional redirect location for the new object.Returns thisPutObjectRequest
, enabling additional method calls to be chained together.- Parameters:
redirectLocation
- The redirect location for the new object.
-
getStorageClass
Gets the optional Amazon S3 storage class to use when storing the new object. If not specified, the default standard storage class is used when storing the object.For more information on available Amazon S3 storage classes, see the
StorageClass
enumeration.- Returns:
- The Amazon S3 storage class to use when storing the newly copied object.
- See Also:
-
setStorageClass
Sets the optional Amazon S3 storage class to use when storing the new object. If not specified, the default standard storage class will be used when storing the new object.For more information on Amazon S3 storage classes and available values, see the
StorageClass
enumeration.- Parameters:
storageClass
- The storage class to use when storing the new object.- See Also:
-
withStorageClass
Sets the optional Amazon S3 storage class to use when storing the new object. Returns thisPutObjectRequest
, enabling additional method calls to be chained together. If not specified, the default standard storage class will be used when storing the object.For more information on Amazon S3 storage classes and available values, see the
StorageClass
enumeration.- Parameters:
storageClass
- The storage class to use when storing the new object.- Returns:
- This
PutObjectRequest
, enabling additional method calls to be chained together. - See Also:
-
setStorageClass
Sets the optional Amazon S3 storage class to use when storing the new object. If not specified, the default standard storage class will be used when storing the object.For more information on Amazon S3 storage classes and available values, see the
StorageClass
enumeration.- Parameters:
storageClass
- The storage class to use when storing the new object.- See Also:
-
withStorageClass
Sets the optional Amazon S3 storage class to use when storing the new object. Returns thisPutObjectRequest
, enabling additional method calls to be chained together. If not specified, the default standard storage class will be used when storing the object.For more information on Amazon S3 storage classes and available values, see the
StorageClass
enumeration.- Parameters:
storageClass
- The storage class to use when storing the new object.- Returns:
- This
PutObjectRequest
, enabling additional method calls to be chained together. - See Also:
-
createPutObjectRequest
Creates and returns aPutObjectRequest
for the instruction file with the specified suffix.
-