org.graylog2.rest.resources.system.AutoValue_SatisfiesVersionResponse Maven / Gradle / Ivy
package org.graylog2.rest.resources.system;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SatisfiesVersionResponse extends SatisfiesVersionResponse {
private final boolean satisfied;
private final String errorMessage;
private AutoValue_SatisfiesVersionResponse(
boolean satisfied,
String errorMessage) {
this.satisfied = satisfied;
this.errorMessage = errorMessage;
}
@JsonProperty("satisfied")
@Override
public boolean satisfied() {
return satisfied;
}
@JsonProperty("errorMessage")
@Override
public String errorMessage() {
return errorMessage;
}
@Override
public String toString() {
return "SatisfiesVersionResponse{"
+ "satisfied=" + satisfied + ", "
+ "errorMessage=" + errorMessage
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SatisfiesVersionResponse) {
SatisfiesVersionResponse that = (SatisfiesVersionResponse) o;
return this.satisfied == that.satisfied()
&& this.errorMessage.equals(that.errorMessage());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= satisfied ? 1231 : 1237;
h$ *= 1000003;
h$ ^= errorMessage.hashCode();
return h$;
}
static final class Builder extends SatisfiesVersionResponse.Builder {
private boolean satisfied;
private String errorMessage;
private byte set$0;
Builder() {
}
@Override
public SatisfiesVersionResponse.Builder satisfied(boolean satisfied) {
this.satisfied = satisfied;
set$0 |= (byte) 1;
return this;
}
@Override
public SatisfiesVersionResponse.Builder errorMessage(String errorMessage) {
if (errorMessage == null) {
throw new NullPointerException("Null errorMessage");
}
this.errorMessage = errorMessage;
return this;
}
@Override
public SatisfiesVersionResponse build() {
if (set$0 != 1
|| this.errorMessage == null) {
StringBuilder missing = new StringBuilder();
if ((set$0 & 1) == 0) {
missing.append(" satisfied");
}
if (this.errorMessage == null) {
missing.append(" errorMessage");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_SatisfiesVersionResponse(
this.satisfied,
this.errorMessage);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy