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

org.molgenis.api.data.v2.EntityCollectionBatchRequestV2 Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.api.data.v2;

import com.google.auto.value.AutoValue;
import java.util.List;
import java.util.Map;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import org.molgenis.util.AutoGson;

@AutoValue
@AutoGson(autoValueClass = AutoValue_EntityCollectionBatchRequestV2.class)
@SuppressWarnings(
    "squid:S1610") // Abstract classes without fields should be converted to interfaces
public abstract class EntityCollectionBatchRequestV2 {
  @Nullable
  @CheckForNull // See #3897. If hashCode fails, the validation throws an exception
  @NotEmpty(message = "Please provide at least one entity in the entities property.")
  @Size(
      max = RestControllerV2.MAX_ENTITIES,
      message = "Number of entities cannot be more than {max}.")
  public abstract List> getEntities();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy