code: public DescribeEnvironmentMembershipsRequest withPermissions(String... permissions) {
          if (this.permissions == null) {
              setPermissions(new java.util.ArrayList<String>(permissions.length));
          }
          for (String ele : permissions) {
              this.permissions.add(ele);
          }
          return this;
      }
docs: <p>
  The type of environment member permissions to get information about. Available values include:
  </p>
  <ul>
  <li>
  <p>
  <code>owner</code>: Owns the environment.
  </p>
  </li>
  <li>
  <p>
  <code>read-only</code>: Has read-only access to the environment.
  </p>
  </li>
  <li>
  <p>
  <code>read-write</code>: Has read-write access to the environment.
  </p>
  </li>
  </ul>
  <p>
  If no value is specified, information about all environment members are returned.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPermissions(java.util.Collection)} or {@link #withPermissions(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param permissions
  The type of environment member permissions to get information about. Available values include:</p>
  <ul>
  <li>
  <p>
  <code>owner</code>: Owns the environment.
  </p>
  </li>
  <li>
  <p>
  <code>read-only</code>: Has read-only access to the environment.
  </p>
  </li>
  <li>
  <p>
  <code>read-write</code>: Has read-write access to the environment.
  </p>
  </li>
  </ul>
  <p>
  If no value is specified, information about all environment members are returned.
  @return Returns a reference to this object so that method calls can be chained together.
  @see Permissions