io.fabric8.openshift.api.model.console.v1.ConsoleYAMLSampleBuilder Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.console.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ConsoleYAMLSampleBuilder extends ConsoleYAMLSampleFluent implements VisitableBuilder{
public ConsoleYAMLSampleBuilder() {
this(new ConsoleYAMLSample());
}
public ConsoleYAMLSampleBuilder(ConsoleYAMLSampleFluent> fluent) {
this(fluent, new ConsoleYAMLSample());
}
public ConsoleYAMLSampleBuilder(ConsoleYAMLSampleFluent> fluent,ConsoleYAMLSample instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ConsoleYAMLSampleBuilder(ConsoleYAMLSample instance) {
this.fluent = this;
this.copyInstance(instance);
}
ConsoleYAMLSampleFluent> fluent;
public ConsoleYAMLSample build() {
ConsoleYAMLSample buildable = new ConsoleYAMLSample(fluent.getApiVersion(),fluent.getKind(),fluent.buildMetadata(),fluent.buildSpec());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}