io.github.microcks.operator.api.artifact.v1alpha1.APISourceBuilder Maven / Gradle / Ivy
package io.github.microcks.operator.api.artifact.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class APISourceBuilder extends APISourceFluent implements VisitableBuilder{
public APISourceBuilder() {
this(new APISource());
}
public APISourceBuilder(APISourceFluent> fluent) {
this(fluent, new APISource());
}
public APISourceBuilder(APISourceFluent> fluent,APISource instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public APISourceBuilder(APISource instance) {
this.fluent = this;
this.copyInstance(instance);
}
APISourceFluent> fluent;
public APISource build() {
APISource buildable = new APISource();
buildable.setMetadata(fluent.buildMetadata());
buildable.setSpec(fluent.buildSpec());
buildable.setStatus(fluent.getStatus());
buildable.setKind(fluent.getKind());
buildable.setApiVersion(fluent.getApiVersion());
return buildable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy