public class SetBucketPolicyRequest extends CosServiceRequest implements Serializable
| 构造器和说明 |
|---|
SetBucketPolicyRequest(String bucketName,
String policyText)
Creates a new request object, ready to be executed to set COS
bucket's policy.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBucketName()
Returns the name of the COS bucket whose policy is being set.
|
String |
getPolicyText()
Returns the policy to apply to the specified bucket.
|
void |
setBucketName(String bucketName)
Sets the name of the COS bucket whose policy is being set.
|
void |
setPolicyText(String policyText)
Sets the policy to apply to the specified bucket.
|
SetBucketPolicyRequest |
withBucketName(String bucketName)
Sets the name of the COS bucket whose policy is being set, and
returns the updated request object so that additional method calls can be
chained together.
|
SetBucketPolicyRequest |
withPolicyText(String policyText)
Sets the policy to apply to the specified bucket, and returns the updated
request object so that additional method calls can be chained together.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic String getBucketName()
public void setBucketName(String bucketName)
bucketName - The name of the COS bucket whose policy is being set.public SetBucketPolicyRequest withBucketName(String bucketName)
bucketName - The name of the COS bucket whose policy is being set.public String getPolicyText()
public void setPolicyText(String policyText)
policyText - The policy to apply to the specified bucket.public SetBucketPolicyRequest withPolicyText(String policyText)
policyText - The policy to apply to the specified bucket.Copyright © 2020. All rights reserved.