io.kubernetes.client.openapi.models.V1NodeAddressBuilder 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 V1NodeAddressBuilder extends V1NodeAddressFluentImpl implements VisitableBuilder {
V1NodeAddressFluent> fluent;
Boolean validationEnabled;
public V1NodeAddressBuilder() {
this(true);
}
public V1NodeAddressBuilder(Boolean validationEnabled) {
this(new V1NodeAddress(), validationEnabled);
}
public V1NodeAddressBuilder(V1NodeAddressFluent> fluent) {
this(fluent, true);
}
public V1NodeAddressBuilder(V1NodeAddressFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1NodeAddress(), validationEnabled);
}
public V1NodeAddressBuilder(V1NodeAddressFluent> fluent,V1NodeAddress instance) {
this(fluent, instance, true);
}
public V1NodeAddressBuilder(V1NodeAddressFluent> fluent,V1NodeAddress instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withAddress(instance.getAddress());
fluent.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public V1NodeAddressBuilder(V1NodeAddress instance) {
this(instance,true);
}
public V1NodeAddressBuilder(V1NodeAddress instance,Boolean validationEnabled) {
this.fluent = this;
this.withAddress(instance.getAddress());
this.withType(instance.getType());
this.validationEnabled = validationEnabled;
}
public V1NodeAddress build() {
V1NodeAddress buildable = new V1NodeAddress();
buildable.setAddress(fluent.getAddress());
buildable.setType(fluent.getType());
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;
V1NodeAddressBuilder that = (V1NodeAddressBuilder) 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());
}
}