docs: 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;
      }