|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bos.model.GenericBucketRequest
com.baidubce.services.bos.model.SetBucketCorsRequest
public class SetBucketCorsRequest
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 |
---|
public SetBucketCorsRequest()
public SetBucketCorsRequest(String bucketName, String jsonBucketCors)
bucketName
- jsonBucketCors
- The jsonBucketCors of Bucket CORS.public SetBucketCorsRequest(String bucketName, List<CorsConfiguration> corsConfigurationsList)
bucketName
- corsConfigurationsList
- The corsConfigurationsList of Bucket CORS.Method Detail |
---|
public SetBucketCorsRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
public SetBucketCorsRequest withBucketName(String bucketName)
withBucketName
in class GenericBucketRequest
public String getJsonBucketCors()
public void setJsonBucketCors(String jsonBucketCors)
jsonBucketCors
- The jsonBucketCors for Bucket CORS.public List<CorsConfiguration> getCorsConfigurationsList()
public void setCorsConfigurationsList(List<CorsConfiguration> corsConfigurationsList)
corsConfigurationsList
- The corsConfigurationsList of Bucket CORS.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |