code: public PutRestApiResult withBinaryMediaTypes(String... binaryMediaTypes) {
          if (this.binaryMediaTypes == null) {
              setBinaryMediaTypes(new java.util.ArrayList<String>(binaryMediaTypes.length));
          }
          for (String ele : binaryMediaTypes) {
              this.binaryMediaTypes.add(ele);
          }
          return this;
      }
docs: <p>
  The list of binary media types supported by the <a>RestApi</a>. By default, the <a>RestApi</a> supports only
  UTF-8-encoded text payloads.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setBinaryMediaTypes(java.util.Collection)} or {@link #withBinaryMediaTypes(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param binaryMediaTypes
  The list of binary media types supported by the <a>RestApi</a>. By default, the <a>RestApi</a> supports
  only UTF-8-encoded text payloads.
  @return Returns a reference to this object so that method calls can be chained together.