code: public CorsRule withAllowedMethods(String... allowedMethods) {
          if (this.allowedMethods == null) {
              setAllowedMethods(new java.util.ArrayList<String>(allowedMethods.length));
          }
          for (String ele : allowedMethods) {
              this.allowedMethods.add(ele);
          }
          return this;
      }
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>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAllowedMethods(java.util.Collection)} or {@link #withAllowedMethods(java.util.Collection)} if you want
  to override the existing values.
  </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.
  @return Returns a reference to this object so that method calls can be chained together.
  @see MethodName