io.fabric8.tekton.triggers.v1alpha1.ResourcesBuilder Maven / Gradle / Ivy
package io.fabric8.tekton.triggers.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ResourcesBuilder extends ResourcesFluent implements VisitableBuilder{
public ResourcesBuilder() {
this(new Resources());
}
public ResourcesBuilder(ResourcesFluent> fluent) {
this(fluent, new Resources());
}
public ResourcesBuilder(ResourcesFluent> fluent,Resources instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ResourcesBuilder(Resources instance) {
this.fluent = this;
this.copyInstance(instance);
}
ResourcesFluent> fluent;
public Resources build() {
Resources buildable = new Resources(fluent.buildCustomResource(),fluent.buildKubernetesResource());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}