类 SetBucketCorsRequest


  • public class SetBucketCorsRequest
    extends GenericBucketRequest
    Request object containing all the options for setting a bucket's CORS(Cross-Origin Resource Sharing).
    • 构造器详细资料

      • 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.
    • 方法详细资料

      • 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.