com.baidubce.services.bos.model
Class SetBucketCorsRequest

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

public class SetBucketCorsRequest
extends GenericBucketRequest

Request object containing all the options for setting a bucket's CORS(Cross-Origin Resource Sharing).


Constructor Summary
SetBucketCorsRequest()
          Constructs a void Constructor for SetBucketCorsRequest.
SetBucketCorsRequest(String bucketName, List<CorsConfiguration> corsConfigurationsList)
          Constructs a new SetBucketCorsRequest object, ready to set the specified Bucket CORS.
SetBucketCorsRequest(String bucketName, String jsonBucketCors)
          Constructs a new SetBucketCorsRequest object, ready to set the specified Bucket CORS.
 
Method Summary
 List<CorsConfiguration> getCorsConfigurationsList()
          Gets the corsConfigurationsList for Bucket CORS.
 String getJsonBucketCors()
          Gets the jsonBucketCors for Bucket CORS.
 void setCorsConfigurationsList(List<CorsConfiguration> corsConfigurationsList)
          Sets the corsConfigurationsList for Bucket CORS.
 void setJsonBucketCors(String jsonBucketCors)
          Sets the jsonBucketCors for Bucket CORS.
 SetBucketCorsRequest withBucketName(String bucketName)
           
 SetBucketCorsRequest 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

SetBucketCorsRequest

public SetBucketCorsRequest()
Constructs a void Constructor for SetBucketCorsRequest.


SetBucketCorsRequest

public SetBucketCorsRequest(String bucketName,
                            String jsonBucketCors)
Constructs a new SetBucketCorsRequest object, ready to set the specified Bucket CORS.

Parameters:
bucketName -
jsonBucketCors - The jsonBucketCors of Bucket CORS.

SetBucketCorsRequest

public SetBucketCorsRequest(String bucketName,
                            List<CorsConfiguration> corsConfigurationsList)
Constructs a new SetBucketCorsRequest object, ready to set the specified Bucket CORS.

Parameters:
bucketName -
corsConfigurationsList - The corsConfigurationsList of Bucket CORS.
Method Detail

withRequestCredentials

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

withBucketName

public SetBucketCorsRequest withBucketName(String bucketName)
Specified by:
withBucketName in class GenericBucketRequest

getJsonBucketCors

public String getJsonBucketCors()
Gets the jsonBucketCors for Bucket CORS.

Returns:
the jsonBucketCors for Bucket CORS.

setJsonBucketCors

public void setJsonBucketCors(String jsonBucketCors)
Sets the jsonBucketCors for Bucket CORS.

Parameters:
jsonBucketCors - The jsonBucketCors for Bucket CORS.

getCorsConfigurationsList

public List<CorsConfiguration> getCorsConfigurationsList()
Gets the corsConfigurationsList for Bucket CORS.

Returns:
the corsConfigurationsList of Bucket CORS.

setCorsConfigurationsList

public void setCorsConfigurationsList(List<CorsConfiguration> corsConfigurationsList)
Sets the corsConfigurationsList for Bucket CORS.

Parameters:
corsConfigurationsList - The corsConfigurationsList of Bucket CORS.


Copyright © 2018. All rights reserved.