code: public CorsRule withAllowedMethods(MethodName... allowedMethods) {
          java.util.ArrayList<String> allowedMethodsCopy = new java.util.ArrayList<String>(allowedMethods.length);
          for (MethodName value : allowedMethods) {
              allowedMethodsCopy.add(value.toString());
          }
          if (getAllowedMethods() == null) {
              setAllowedMethods(allowedMethodsCopy);
          } else {
              getAllowedMethods().addAll(allowedMethodsCopy);
          }
          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>
  
  @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