io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1NodeSelectorTermBuilder extends V1NodeSelectorTermFluentImpl implements VisitableBuilder{
public V1NodeSelectorTermBuilder() {
this(false);
}
public V1NodeSelectorTermBuilder(Boolean validationEnabled) {
this(new V1NodeSelectorTerm(), validationEnabled);
}
public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent> fluent) {
this(fluent, false);
}
public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1NodeSelectorTerm(), validationEnabled);
}
public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent> fluent,V1NodeSelectorTerm instance) {
this(fluent, instance, false);
}
public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent> fluent,V1NodeSelectorTerm instance,Boolean validationEnabled) {
this.fluent = fluent;
if (instance != null) {
fluent.withMatchExpressions(instance.getMatchExpressions());
fluent.withMatchFields(instance.getMatchFields());
}
this.validationEnabled = validationEnabled;
}
public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance) {
this(instance,false);
}
public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance,Boolean validationEnabled) {
this.fluent = this;
if (instance != null) {
this.withMatchExpressions(instance.getMatchExpressions());
this.withMatchFields(instance.getMatchFields());
}
this.validationEnabled = validationEnabled;
}
V1NodeSelectorTermFluent> fluent;
Boolean validationEnabled;
public V1NodeSelectorTerm build() {
V1NodeSelectorTerm buildable = new V1NodeSelectorTerm();
buildable.setMatchExpressions(fluent.getMatchExpressions());
buildable.setMatchFields(fluent.getMatchFields());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy