com.baidubce.services.bos.model
Class DeleteBucketCorsRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bos.model.GenericBucketRequest
          extended by com.baidubce.services.bos.model.DeleteBucketCorsRequest

public class DeleteBucketCorsRequest
extends GenericBucketRequest

Provides options for deleting a Bucket CORS(Cross-Origin Resource Sharing).


Constructor Summary
DeleteBucketCorsRequest()
          Constructs a void Constructor for DeleteBucketCorsRequest.
DeleteBucketCorsRequest(String bucketName)
          Constructs a new DeleteBucketCorsRequest, ready to be executed to delete the specified Bucket CORS.
 
Method Summary
 DeleteBucketCorsRequest withBucketName(String bucketName)
          Sets the name of the Baidu Bos bucket to delete Bucket CORS.
 DeleteBucketCorsRequest withRequestCredentials(BceCredentials credentials)
           
 
Methods inherited from class com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteBucketCorsRequest

public DeleteBucketCorsRequest()
Constructs a void Constructor for DeleteBucketCorsRequest.


DeleteBucketCorsRequest

public DeleteBucketCorsRequest(String bucketName)
Constructs a new DeleteBucketCorsRequest, ready to be executed to delete the specified Bucket CORS.

Parameters:
bucketName - The name of the Baidu Bos bucket to delete Bucket CORS.
Method Detail

withRequestCredentials

public DeleteBucketCorsRequest withRequestCredentials(BceCredentials credentials)
Specified by:
withRequestCredentials in class AbstractBceRequest

withBucketName

public DeleteBucketCorsRequest withBucketName(String bucketName)
Sets the name of the Baidu Bos bucket to delete Bucket CORS.

Specified by:
withBucketName in class GenericBucketRequest
Parameters:
bucketName - The name of the Baidu Bos bucket to delete Bucket CORS.


Copyright © 2018. All rights reserved.