org.graylog2.rest.resources.streams.requests.AutoValue_CloneStreamRequest Maven / Gradle / Ivy
package org.graylog2.rest.resources.streams.requests;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CloneStreamRequest extends CloneStreamRequest {
private final String title;
private final String description;
AutoValue_CloneStreamRequest(
String title,
String description) {
if (title == null) {
throw new NullPointerException("Null title");
}
this.title = title;
if (description == null) {
throw new NullPointerException("Null description");
}
this.description = description;
}
@JsonProperty
@Override
public String title() {
return title;
}
@JsonProperty
@Override
public String description() {
return description;
}
@Override
public String toString() {
return "CloneStreamRequest{"
+ "title=" + title + ", "
+ "description=" + description
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CloneStreamRequest) {
CloneStreamRequest that = (CloneStreamRequest) o;
return (this.title.equals(that.title()))
&& (this.description.equals(that.description()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.title.hashCode();
h *= 1000003;
h ^= this.description.hashCode();
return h;
}
}