Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2011-2015 Amazon Technologies, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *    http://aws.amazon.com/apache2.0
  *
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
 * OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and
 * limitations under the License.
 */
package com.amazonaws.services.s3.model;

Container for bucket cross origin configuration operations.
    private List<CORSRulerules;

    
Returns the list of rules that comprise this configuration.
    public List<CORSRulegetRules() {
        return ;
    }

    
Sets the rules that comprise this configuration.
    public void setRules(List<CORSRulerules) {
        this. = rules;
    }

    
Sets the rules that comprise this configuration and returns a reference to this object for easy method chaining.
        setRules(rules);
        return this;
    }

    
Convenience array style method for withRules(java.util.List)
    public BucketCrossOriginConfiguration withRules(CORSRule... rules) {
        setRules(Arrays.asList(rules));
        return this;
    }

    
Constructs a new BucketCrossOriginConfiguration object with the rules given.

Parameters:
rules
    public BucketCrossOriginConfiguration(List<CORSRulerules) {
        this. = rules;
    }
        super();
    }
New to GrepCode? Check out our FAQ X