public class PutInstructionFileRequest extends CosServiceRequest implements MaterialsDescriptionProvider, EncryptionMaterialsFactory
| 构造器和说明 |
|---|
PutInstructionFileRequest(COSObjectId cosObjectId,
EncryptionMaterials encryptionMaterials,
String suffix) |
PutInstructionFileRequest(COSObjectId cosObjectId,
Map<String,String> matDesc,
String suffix) |
| 限定符和类型 | 方法和说明 |
|---|---|
PutObjectRequest |
createPutObjectRequest(COSObject cosObject)
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.
|
COSObjectId |
getCOSObjectId()
Returns the COS object id for which the new instruction file will be created.
|
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.
|
String |
getStorageClass()
Gets the optional COS 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 COS storage class to use when storing the new object.
|
void |
setStorageClass(String storageClass)
Sets the optional COS 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 COS storage class to use when storing the new object.
|
PutInstructionFileRequest |
withStorageClass(String storageClass)
Sets the optional COS storage class to use when storing the new object.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getCosCredentials, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setCosCredentials, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic PutInstructionFileRequest(COSObjectId cosObjectId, Map<String,String> matDesc, String suffix)
COSObjectId - id of the corresponding cos object.matDesc - material description of the instruction filesuffix - suffix of the instruction file to be putpublic PutInstructionFileRequest(COSObjectId cosObjectId, EncryptionMaterials encryptionMaterials, String suffix)
cosObjectId - id of the corresponding cos object.encryptionMaterials - encryption materials to be used for the instruction filesuffix - suffix of the instruction file to be putpublic COSObjectId getCOSObjectId()
public Map<String,String> getMaterialsDescription()
getMaterialsDescription 在接口中 MaterialsDescriptionProviderpublic EncryptionMaterials getEncryptionMaterials()
getEncryptionMaterials 在接口中 EncryptionMaterialsFactorypublic 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 COS storage classes, see the StorageClass
enumeration.
setStorageClass(String),
setStorageClass(StorageClass),
withStorageClass(StorageClass),
withStorageClass(String)public void setStorageClass(String storageClass)
For more information on COS 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 COS 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 COS 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 COS 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(COSObject cosObject)
PutObjectRequest for the instruction file with the specified
suffix.Copyright © 2021. All rights reserved.