org.graylog.plugins.views.search.export.AutoValue_SearchTypeExportJob Maven / Gradle / Ivy
package org.graylog.plugins.views.search.export;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import javax.validation.constraints.NotEmpty;
import org.joda.time.DateTime;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SearchTypeExportJob extends SearchTypeExportJob {
private final String id;
private final DateTime createdAt;
private final String searchId;
private final String searchTypeId;
private final @NotEmpty ResultFormat resultFormat;
AutoValue_SearchTypeExportJob(
String id,
DateTime createdAt,
String searchId,
String searchTypeId,
@NotEmpty ResultFormat resultFormat) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (createdAt == null) {
throw new NullPointerException("Null createdAt");
}
this.createdAt = createdAt;
if (searchId == null) {
throw new NullPointerException("Null searchId");
}
this.searchId = searchId;
if (searchTypeId == null) {
throw new NullPointerException("Null searchTypeId");
}
this.searchTypeId = searchTypeId;
if (resultFormat == null) {
throw new NullPointerException("Null resultFormat");
}
this.resultFormat = resultFormat;
}
@Override
public String id() {
return id;
}
@JsonProperty
@Override
public DateTime createdAt() {
return createdAt;
}
@JsonProperty("search_id")
@Override
public String searchId() {
return searchId;
}
@JsonProperty("search_type_id")
@Override
public String searchTypeId() {
return searchTypeId;
}
@JsonProperty("result_format")
@Override
public @NotEmpty ResultFormat resultFormat() {
return resultFormat;
}
@Override
public String toString() {
return "SearchTypeExportJob{"
+ "id=" + id + ", "
+ "createdAt=" + createdAt + ", "
+ "searchId=" + searchId + ", "
+ "searchTypeId=" + searchTypeId + ", "
+ "resultFormat=" + resultFormat
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SearchTypeExportJob) {
SearchTypeExportJob that = (SearchTypeExportJob) o;
return this.id.equals(that.id())
&& this.createdAt.equals(that.createdAt())
&& this.searchId.equals(that.searchId())
&& this.searchTypeId.equals(that.searchTypeId())
&& this.resultFormat.equals(that.resultFormat());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= createdAt.hashCode();
h$ *= 1000003;
h$ ^= searchId.hashCode();
h$ *= 1000003;
h$ ^= searchTypeId.hashCode();
h$ *= 1000003;
h$ ^= resultFormat.hashCode();
return h$;
}
}