io.kubernetes.client.openapi.models.V1PodAffinityBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1PodAffinityBuilder extends V1PodAffinityFluentImpl implements VisitableBuilder{
public V1PodAffinityBuilder() {
this(false);
}
public V1PodAffinityBuilder(Boolean validationEnabled) {
this(new V1PodAffinity(), validationEnabled);
}
public V1PodAffinityBuilder(V1PodAffinityFluent> fluent) {
this(fluent, false);
}
public V1PodAffinityBuilder(V1PodAffinityFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1PodAffinity(), validationEnabled);
}
public V1PodAffinityBuilder(V1PodAffinityFluent> fluent,V1PodAffinity instance) {
this(fluent, instance, false);
}
public V1PodAffinityBuilder(V1PodAffinityFluent> fluent,V1PodAffinity instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution());
fluent.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution());
this.validationEnabled = validationEnabled;
}
public V1PodAffinityBuilder(V1PodAffinity instance) {
this(instance,false);
}
public V1PodAffinityBuilder(V1PodAffinity instance,Boolean validationEnabled) {
this.fluent = this;
this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution());
this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution());
this.validationEnabled = validationEnabled;
}
V1PodAffinityFluent> fluent;
Boolean validationEnabled;
public V1PodAffinity build() {
V1PodAffinity buildable = new V1PodAffinity();
buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.getPreferredDuringSchedulingIgnoredDuringExecution());
buildable.setRequiredDuringSchedulingIgnoredDuringExecution(fluent.getRequiredDuringSchedulingIgnoredDuringExecution());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy