
io.kubernetes.client.models.V1PodDNSConfigOptionBuilder Maven / Gradle / Ivy
package io.kubernetes.client.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1PodDNSConfigOptionBuilder extends V1PodDNSConfigOptionFluentImpl implements VisitableBuilder{
V1PodDNSConfigOptionFluent> fluent;
Boolean validationEnabled;
public V1PodDNSConfigOptionBuilder(){
this(true);
}
public V1PodDNSConfigOptionBuilder(Boolean validationEnabled){
this(new V1PodDNSConfigOption(), validationEnabled);
}
public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent> fluent){
this(fluent, true);
}
public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent> fluent,Boolean validationEnabled){
this(fluent, new V1PodDNSConfigOption(), validationEnabled);
}
public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent> fluent,V1PodDNSConfigOption instance){
this(fluent, instance, true);
}
public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent> fluent,V1PodDNSConfigOption instance,Boolean validationEnabled){
this.fluent = fluent;
fluent.withName(instance.getName());
fluent.withValue(instance.getValue());
this.validationEnabled = validationEnabled;
}
public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance){
this(instance,true);
}
public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance,Boolean validationEnabled){
this.fluent = this;
this.withName(instance.getName());
this.withValue(instance.getValue());
this.validationEnabled = validationEnabled;
}
public V1PodDNSConfigOption build(){
V1PodDNSConfigOption buildable = new V1PodDNSConfigOption();
buildable.setName(fluent.getName());
buildable.setValue(fluent.getValue());
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;
V1PodDNSConfigOptionBuilder that = (V1PodDNSConfigOptionBuilder) 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy