code: public void setAllowedMethods(java.util.Collection<String> allowedMethods) {
          if (allowedMethods == null) {
              this.allowedMethods = null;
              return;
          }
  
          this.allowedMethods = new java.util.ArrayList<String>(allowedMethods);
      }
docs: <p>
  Identifies an HTTP method that the origin that is specified in the rule is allowed to execute.
  </p>
  <p>
  Each CORS rule must contain at least one <code>AllowedMethods</code> and one <code>AllowedOrigins</code> element.
  </p>
  
  @param allowedMethods
  Identifies an HTTP method that the origin that is specified in the rule is allowed to execute.</p>
  <p>
  Each CORS rule must contain at least one <code>AllowedMethods</code> and one <code>AllowedOrigins</code>
  element.
  @see MethodName