org.graylog2.rest.models.system.contentpacks.responses.$AutoValue_ContentPackInstallationRequest Maven / Gradle / Ivy
package org.graylog2.rest.models.system.contentpacks.responses;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import org.graylog2.contentpacks.model.entities.references.ValueReference;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ContentPackInstallationRequest extends ContentPackInstallationRequest {
private final Map parameters;
private final String comment;
$AutoValue_ContentPackInstallationRequest(
Map parameters,
@Nullable String comment) {
if (parameters == null) {
throw new NullPointerException("Null parameters");
}
this.parameters = parameters;
this.comment = comment;
}
@JsonProperty("parameters")
@Override
public Map parameters() {
return parameters;
}
@JsonProperty("comment")
@Nullable
@Override
public String comment() {
return comment;
}
@Override
public String toString() {
return "ContentPackInstallationRequest{"
+ "parameters=" + parameters + ", "
+ "comment=" + comment
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ContentPackInstallationRequest) {
ContentPackInstallationRequest that = (ContentPackInstallationRequest) o;
return this.parameters.equals(that.parameters())
&& (this.comment == null ? that.comment() == null : this.comment.equals(that.comment()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= parameters.hashCode();
h$ *= 1000003;
h$ ^= (comment == null) ? 0 : comment.hashCode();
return h$;
}
}