public final class PutInstructionFileRequest extends AmazonWebServiceRequest implements MaterialsDescriptionProvider, EncryptionMaterialsFactory
NOOP
Constructor and Description |
---|
PutInstructionFileRequest(S3ObjectId s3ObjectId,
EncryptionMaterials encryptionMaterials,
String suffix) |
PutInstructionFileRequest(S3ObjectId s3ObjectId,
Map<String,String> matDesc,
String suffix) |
Modifier and Type | Method and Description |
---|---|
PutObjectRequest |
createPutObjectRequest(S3Object s3Object)
Creates and returns a
PutObjectRequest for the instruction file
with the specified suffix. |
AccessControlList |
getAccessControlList()
Returns the optional access control list for the new object.
|
CannedAccessControlList |
getCannedAcl()
Gets the optional pre-configured access control policy to use for the new
object.
|
EncryptionMaterials |
getEncryptionMaterials()
Returns the encryption materials if specified; or null if not.
|
Map<String,String> |
getMaterialsDescription()
Returns the material description for the new instruction file.
|
String |
getRedirectLocation()
Gets the optional redirect location for the new object.
|
S3ObjectId |
getS3ObjectId()
Returns the S3 object id for which the new instruction file will be
created.
|
String |
getStorageClass()
Gets the optional Amazon S3 storage class to use when storing the new
object.
|
String |
getSuffix()
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.
|
PutInstructionFileRequest |
withAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new object.
|
PutInstructionFileRequest |
withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional pre-configured access control policy to use for the new
object.
|
PutInstructionFileRequest |
withRedirectLocation(String redirectLocation)
Sets the optional redirect location for the new object.Returns this
PutObjectRequest , enabling additional method calls to be chained
together. |
PutInstructionFileRequest |
withStorageClass(StorageClass storageClass)
Sets the optional Amazon S3 storage class to use when storing the new
object.
|
PutInstructionFileRequest |
withStorageClass(String storageClass)
Sets the optional Amazon S3 storage class to use when storing the new
object.
|
addHandlerContext, clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public PutInstructionFileRequest(S3ObjectId s3ObjectId, Map<String,String> matDesc, String suffix)
s3ObjectId
- id of the corresponding s3 object.matDesc
- material description of the instruction filesuffix
- suffix of the instruction file to be putpublic PutInstructionFileRequest(S3ObjectId s3ObjectId, EncryptionMaterials encryptionMaterials, String suffix)
s3ObjectId
- id of the corresponding s3 object.encryptionMaterials
- encryption materials to be used for the instruction filesuffix
- suffix of the instruction file to be putpublic S3ObjectId getS3ObjectId()
public Map<String,String> getMaterialsDescription()
getMaterialsDescription
in interface MaterialsDescriptionProvider
public EncryptionMaterials getEncryptionMaterials()
getEncryptionMaterials
in interface EncryptionMaterialsFactory
public String getSuffix()
public CannedAccessControlList getCannedAcl()
AbstractPutObjectRequest.setCannedAcl(CannedAccessControlList)
,
PutObjectRequest.withCannedAcl(CannedAccessControlList)
public void setCannedAcl(CannedAccessControlList cannedAcl)
cannedAcl
- The optional pre-configured access control policy to use for
the new object.AbstractPutObjectRequest.getCannedAcl()
,
PutObjectRequest.withCannedAcl(CannedAccessControlList)
public PutInstructionFileRequest withCannedAcl(CannedAccessControlList cannedAcl)
PutObjectRequest
, enabling additional method
calls to be chained together.cannedAcl
- The optional pre-configured access control policy to use for
the new object.PutObjectRequest
, enabling additional method calls
to be chained together.AbstractPutObjectRequest.getCannedAcl()
,
AbstractPutObjectRequest.setCannedAcl(CannedAccessControlList)
public AccessControlList getAccessControlList()
public void setAccessControlList(AccessControlList accessControlList)
accessControlList
- The access control list for the new object.public PutInstructionFileRequest withAccessControlList(AccessControlList accessControlList)
PutObjectRequest
,
enabling additional method calls to be chained together.accessControlList
- The access control list for the new object.public String getRedirectLocation()
public void setRedirectLocation(String redirectLocation)
redirectLocation
- The redirect location for the new object.public PutInstructionFileRequest withRedirectLocation(String redirectLocation)
PutObjectRequest
, enabling additional method calls to be chained
together.redirectLocation
- The redirect location for the new object.public String getStorageClass()
For more information on available Amazon S3 storage classes, see the
StorageClass
enumeration.
setStorageClass(String)
,
setStorageClass(StorageClass)
,
withStorageClass(StorageClass)
,
withStorageClass(String)
public void setStorageClass(String storageClass)
For more information on Amazon S3 storage classes and available values,
see the StorageClass
enumeration.
storageClass
- The storage class to use when storing the new object.getStorageClass()
,
setStorageClass(String)
,
withStorageClass(StorageClass)
,
withStorageClass(String)
public PutInstructionFileRequest withStorageClass(String storageClass)
PutObjectRequest
, 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.
storageClass
- The storage class to use when storing the new object.PutObjectRequest
, enabling additional method calls
to be chained together.getStorageClass()
,
setStorageClass(StorageClass)
,
setStorageClass(String)
,
withStorageClass(StorageClass)
public void setStorageClass(StorageClass storageClass)
For more information on Amazon S3 storage classes and available values,
see the StorageClass
enumeration.
storageClass
- The storage class to use when storing the new object.getStorageClass()
,
setStorageClass(String)
public PutInstructionFileRequest withStorageClass(StorageClass storageClass)
PutObjectRequest
, 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.
storageClass
- The storage class to use when storing the new object.PutObjectRequest
, enabling additional method calls
to be chained together.getStorageClass()
,
setStorageClass(StorageClass)
,
setStorageClass(String)
,
withStorageClass(String)
public PutObjectRequest createPutObjectRequest(S3Object s3Object)
PutObjectRequest
for the instruction file
with the specified suffix.Copyright © 2020. All rights reserved.