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

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

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

import java.util.List;
import javax.annotation.processing.Generated;
import javax.validation.constraints.NotEmpty;
import org.molgenis.navigator.model.ResourceIdentifier;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_DeleteResourcesRequest extends DeleteResourcesRequest {

  private final @NotEmpty List resources;

  private AutoValue_DeleteResourcesRequest(
      @NotEmpty List resources) {
    this.resources = resources;
  }

  @Override
  public @NotEmpty List getResources() {
    return resources;
  }

  @Override
  public String toString() {
    return "DeleteResourcesRequest{"
         + "resources=" + resources
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DeleteResourcesRequest) {
      DeleteResourcesRequest that = (DeleteResourcesRequest) o;
      return this.resources.equals(that.getResources());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= resources.hashCode();
    return h$;
  }

  static final class Builder extends DeleteResourcesRequest.Builder {
    private @NotEmpty List resources;
    Builder() {
    }
    @Override
    public DeleteResourcesRequest.Builder setResources(List resources) {
      if (resources == null) {
        throw new NullPointerException("Null resources");
      }
      this.resources = resources;
      return this;
    }
    @Override
    public DeleteResourcesRequest build() {
      String missing = "";
      if (this.resources == null) {
        missing += " resources";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_DeleteResourcesRequest(
          this.resources);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy