public CORSRule withAllowedMethods(List<AllowedMethods> allowedMethods) {
        this.allowedMethods = allowedMethods;
        return this;
    }
Sets the allowed methods of this rule and returns a reference to this object for
method chaining.

@see CORSRule#setAllowedMethods(List)
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/CORSRule.java