public void setAllowedMethods(List<AllowedMethods> allowedMethods) {
        this.allowedMethods = allowedMethods;
    }
Sets the allowed methods of the rule.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/CORSRule.java