io.kubernetes.client.openapi.models.V1PriorityClassBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
public class V1PriorityClassBuilder extends V1PriorityClassFluent implements VisitableBuilder{
public V1PriorityClassBuilder() {
this(new V1PriorityClass());
}
public V1PriorityClassBuilder(V1PriorityClassFluent> fluent) {
this(fluent, new V1PriorityClass());
}
public V1PriorityClassBuilder(V1PriorityClassFluent> fluent,V1PriorityClass instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public V1PriorityClassBuilder(V1PriorityClass instance) {
this.fluent = this;
this.copyInstance(instance);
}
V1PriorityClassFluent> fluent;
public V1PriorityClass build() {
V1PriorityClass buildable = new V1PriorityClass();
buildable.setApiVersion(fluent.getApiVersion());
buildable.setDescription(fluent.getDescription());
buildable.setGlobalDefault(fluent.getGlobalDefault());
buildable.setKind(fluent.getKind());
buildable.setMetadata(fluent.buildMetadata());
buildable.setPreemptionPolicy(fluent.getPreemptionPolicy());
buildable.setValue(fluent.getValue());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy