类 SetBucketCorsRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- 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).
-
-
构造器概要
构造器 构造器 说明 SetBucketCorsRequest()Constructs a void Constructor for SetBucketCorsRequest.SetBucketCorsRequest(String bucketName, String jsonBucketCors)Constructs a new SetBucketCorsRequest object, ready to set the specified Bucket CORS.SetBucketCorsRequest(String bucketName, List<CorsConfiguration> corsConfigurationsList)Constructs a new SetBucketCorsRequest object, ready to set the specified Bucket CORS.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<CorsConfiguration>getCorsConfigurationsList()Gets the corsConfigurationsList for Bucket CORS.StringgetJsonBucketCors()Gets the jsonBucketCors for Bucket CORS.voidsetCorsConfigurationsList(List<CorsConfiguration> corsConfigurationsList)Sets the corsConfigurationsList for Bucket CORS.voidsetJsonBucketCors(String jsonBucketCors)Sets the jsonBucketCors for Bucket CORS.SetBucketCorsRequestwithBucketName(String bucketName)SetBucketCorsRequestwithRequestCredentials(BceCredentials credentials)-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
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.- 参数:
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.- 参数:
bucketName-corsConfigurationsList- The corsConfigurationsList of Bucket CORS.
-
-
方法详细资料
-
withRequestCredentials
public SetBucketCorsRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withBucketName
public SetBucketCorsRequest withBucketName(String bucketName)
- 指定者:
withBucketName在类中GenericBucketRequest
-
getJsonBucketCors
public String getJsonBucketCors()
Gets the jsonBucketCors for Bucket CORS.- 返回:
- the jsonBucketCors for Bucket CORS.
-
setJsonBucketCors
public void setJsonBucketCors(String jsonBucketCors)
Sets the jsonBucketCors for Bucket CORS.- 参数:
jsonBucketCors- The jsonBucketCors for Bucket CORS.
-
getCorsConfigurationsList
public List<CorsConfiguration> getCorsConfigurationsList()
Gets the corsConfigurationsList for Bucket CORS.- 返回:
- the corsConfigurationsList of Bucket CORS.
-
setCorsConfigurationsList
public void setCorsConfigurationsList(List<CorsConfiguration> corsConfigurationsList)
Sets the corsConfigurationsList for Bucket CORS.- 参数:
corsConfigurationsList- The corsConfigurationsList of Bucket CORS.
-
-