org.graylog.scheduler.schedule.AutoValue_OnceJobSchedule Maven / Gradle / Ivy
package org.graylog.scheduler.schedule;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_OnceJobSchedule extends OnceJobSchedule {
private final String type;
private AutoValue_OnceJobSchedule(
String type) {
this.type = type;
}
@JsonProperty("type")
@Override
public String type() {
return type;
}
@Override
public String toString() {
return "OnceJobSchedule{"
+ "type=" + type
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof OnceJobSchedule) {
OnceJobSchedule that = (OnceJobSchedule) o;
return this.type.equals(that.type());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
return h$;
}
@Override
public OnceJobSchedule.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends OnceJobSchedule.Builder {
private String type;
Builder() {
}
private Builder(OnceJobSchedule source) {
this.type = source.type();
}
@Override
public OnceJobSchedule.Builder type(String type) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
return this;
}
@Override
OnceJobSchedule autoBuild() {
if (this.type == null) {
String missing = " type";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_OnceJobSchedule(
this.type);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy