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

org.molgenis.navigator.AutoValue_CopyResourcesRequest 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 org.molgenis.navigator.model.ResourceIdentifier;

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

  private final List resources;

  private final String targetFolderId;

  private AutoValue_CopyResourcesRequest(
      List resources,
      String targetFolderId) {
    this.resources = resources;
    this.targetFolderId = targetFolderId;
  }

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

  @Override
  public String getTargetFolderId() {
    return targetFolderId;
  }

  @Override
  public String toString() {
    return "CopyResourcesRequest{"
         + "resources=" + resources + ", "
         + "targetFolderId=" + targetFolderId
        + "}";
  }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy