io.kubernetes.client.openapi.models.V1TokenRequestStatusBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1TokenRequestStatusBuilder extends V1TokenRequestStatusFluentImpl implements VisitableBuilder {
V1TokenRequestStatusFluent> fluent;
Boolean validationEnabled;
public V1TokenRequestStatusBuilder() {
this(true);
}
public V1TokenRequestStatusBuilder(Boolean validationEnabled) {
this(new V1TokenRequestStatus(), validationEnabled);
}
public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent> fluent) {
this(fluent, true);
}
public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1TokenRequestStatus(), validationEnabled);
}
public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent> fluent,V1TokenRequestStatus instance) {
this(fluent, instance, true);
}
public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent> fluent,V1TokenRequestStatus instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withExpirationTimestamp(instance.getExpirationTimestamp());
fluent.withToken(instance.getToken());
this.validationEnabled = validationEnabled;
}
public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance) {
this(instance,true);
}
public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance,Boolean validationEnabled) {
this.fluent = this;
this.withExpirationTimestamp(instance.getExpirationTimestamp());
this.withToken(instance.getToken());
this.validationEnabled = validationEnabled;
}
public V1TokenRequestStatus build() {
V1TokenRequestStatus buildable = new V1TokenRequestStatus();
buildable.setExpirationTimestamp(fluent.getExpirationTimestamp());
buildable.setToken(fluent.getToken());
return buildable;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1TokenRequestStatusBuilder that = (V1TokenRequestStatusBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(fluent, validationEnabled, super.hashCode());
}
}