code: public DescribeEnvironmentMembershipsRequest withPermissions(Permissions... permissions) {
          java.util.ArrayList<String> permissionsCopy = new java.util.ArrayList<String>(permissions.length);
          for (Permissions value : permissions) {
              permissionsCopy.add(value.toString());
          }
          if (getPermissions() == null) {
              setPermissions(permissionsCopy);
          } else {
              getPermissions().addAll(permissionsCopy);
          }
          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>
  
  @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