org.molgenis.navigator.AutoValue_UpdateResourceRequest Maven / Gradle / Ivy
package org.molgenis.navigator;
import javax.annotation.processing.Generated;
import org.molgenis.navigator.model.Resource;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_UpdateResourceRequest extends UpdateResourceRequest {
private final Resource resource;
private AutoValue_UpdateResourceRequest(
Resource resource) {
this.resource = resource;
}
@Override
public Resource getResource() {
return resource;
}
@Override
public String toString() {
return "UpdateResourceRequest{"
+ "resource=" + resource
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof UpdateResourceRequest) {
UpdateResourceRequest that = (UpdateResourceRequest) o;
return this.resource.equals(that.getResource());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= resource.hashCode();
return h$;
}
static final class Builder extends UpdateResourceRequest.Builder {
private Resource resource;
Builder() {
}
@Override
public UpdateResourceRequest.Builder setResource(Resource resource) {
if (resource == null) {
throw new NullPointerException("Null resource");
}
this.resource = resource;
return this;
}
@Override
public UpdateResourceRequest build() {
String missing = "";
if (this.resource == null) {
missing += " resource";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_UpdateResourceRequest(
this.resource);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy