org.graylog.freeenterprise.AutoValue_StagedFreeEnterpriseLicense Maven / Gradle / Ivy
package org.graylog.freeenterprise;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;
import org.joda.time.DateTime;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_StagedFreeEnterpriseLicense extends StagedFreeEnterpriseLicense {
private final String clusterId;
private final String license;
private final DateTime createdAt;
private AutoValue_StagedFreeEnterpriseLicense(
String clusterId,
String license,
DateTime createdAt) {
this.clusterId = clusterId;
this.license = license;
this.createdAt = createdAt;
}
@JsonProperty("cluster_id")
@Override
public String clusterId() {
return clusterId;
}
@JsonProperty("license")
@Override
public String license() {
return license;
}
@JsonProperty("created_at")
@Override
public DateTime createdAt() {
return createdAt;
}
@Override
public String toString() {
return "StagedFreeEnterpriseLicense{"
+ "clusterId=" + clusterId + ", "
+ "license=" + license + ", "
+ "createdAt=" + createdAt
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof StagedFreeEnterpriseLicense) {
StagedFreeEnterpriseLicense that = (StagedFreeEnterpriseLicense) o;
return this.clusterId.equals(that.clusterId())
&& this.license.equals(that.license())
&& this.createdAt.equals(that.createdAt());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= clusterId.hashCode();
h$ *= 1000003;
h$ ^= license.hashCode();
h$ *= 1000003;
h$ ^= createdAt.hashCode();
return h$;
}
static final class Builder extends StagedFreeEnterpriseLicense.Builder {
private String clusterId;
private String license;
private DateTime createdAt;
Builder() {
}
@Override
public StagedFreeEnterpriseLicense.Builder clusterId(String clusterId) {
if (clusterId == null) {
throw new NullPointerException("Null clusterId");
}
this.clusterId = clusterId;
return this;
}
@Override
public StagedFreeEnterpriseLicense.Builder license(String license) {
if (license == null) {
throw new NullPointerException("Null license");
}
this.license = license;
return this;
}
@Override
public StagedFreeEnterpriseLicense.Builder createdAt(DateTime createdAt) {
if (createdAt == null) {
throw new NullPointerException("Null createdAt");
}
this.createdAt = createdAt;
return this;
}
@Override
public StagedFreeEnterpriseLicense build() {
String missing = "";
if (this.clusterId == null) {
missing += " clusterId";
}
if (this.license == null) {
missing += " license";
}
if (this.createdAt == null) {
missing += " createdAt";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_StagedFreeEnterpriseLicense(
this.clusterId,
this.license,
this.createdAt);
}
}
}