io.kubernetes.client.openapi.models.V1beta1EventSeriesFluentImpl Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import java.lang.Integer;
import java.time.OffsetDateTime;
import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
public class V1beta1EventSeriesFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1beta1EventSeriesFluent {
private Integer count;
private OffsetDateTime lastObservedTime;
public V1beta1EventSeriesFluentImpl() {
}
public V1beta1EventSeriesFluentImpl(V1beta1EventSeries instance) {
this.withCount(instance.getCount());
this.withLastObservedTime(instance.getLastObservedTime());
}
public Integer getCount() {
return this.count;
}
public A withCount(Integer count) {
this.count=count; return (A) this;
}
public Boolean hasCount() {
return this.count != null;
}
public OffsetDateTime getLastObservedTime() {
return this.lastObservedTime;
}
public A withLastObservedTime(OffsetDateTime lastObservedTime) {
this.lastObservedTime=lastObservedTime; return (A) this;
}
public Boolean hasLastObservedTime() {
return this.lastObservedTime != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
V1beta1EventSeriesFluentImpl that = (V1beta1EventSeriesFluentImpl) o;
if (count != null ? !count.equals(that.count) :that.count != null) return false;
if (lastObservedTime != null ? !lastObservedTime.equals(that.lastObservedTime) :that.lastObservedTime != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(count, lastObservedTime, super.hashCode());
}
}