All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.molgenis.navigator.MoveResourcesRequest Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.navigator;

import com.google.auto.value.AutoValue;
import java.util.List;
import org.molgenis.navigator.model.ResourceIdentifier;
import org.molgenis.util.AutoGson;

@AutoValue
@AutoGson(autoValueClass = AutoValue_MoveResourcesRequest.class)
@SuppressWarnings(
    "squid:S1610") // Abstract classes without fields should be converted to interfaces
public abstract class MoveResourcesRequest {
  public abstract List getResources();

  public abstract String getTargetFolderId();

  public static MoveResourcesRequest create(
      List newResources, String newTargetFolderId) {
    return builder().setResources(newResources).setTargetFolderId(newTargetFolderId).build();
  }

  public static Builder builder() {
    return new AutoValue_MoveResourcesRequest.Builder();
  }

  @AutoValue.Builder
  public abstract static class Builder {

    public abstract Builder setResources(List newResources);

    public abstract Builder setTargetFolderId(String newTargetFolderId);

    public abstract MoveResourcesRequest build();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy