code: public App withCustomRules(CustomRule... customRules) {
          if (this.customRules == null) {
              setCustomRules(new java.util.ArrayList<CustomRule>(customRules.length));
          }
          for (CustomRule ele : customRules) {
              this.customRules.add(ele);
          }
          return this;
      }
docs: <p>
  Custom redirect / rewrite rules for the Amplify App.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setCustomRules(java.util.Collection)} or {@link #withCustomRules(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param customRules
  Custom redirect / rewrite rules for the Amplify App.
  @return Returns a reference to this object so that method calls can be chained together.