io.fabric8.tekton.triggers.v1alpha1.TriggerSpecTemplateBuilder Maven / Gradle / Ivy
package io.fabric8.tekton.triggers.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class TriggerSpecTemplateBuilder extends TriggerSpecTemplateFluent implements VisitableBuilder{
public TriggerSpecTemplateBuilder() {
this(new TriggerSpecTemplate());
}
public TriggerSpecTemplateBuilder(TriggerSpecTemplateFluent> fluent) {
this(fluent, new TriggerSpecTemplate());
}
public TriggerSpecTemplateBuilder(TriggerSpecTemplateFluent> fluent,TriggerSpecTemplate instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public TriggerSpecTemplateBuilder(TriggerSpecTemplate instance) {
this.fluent = this;
this.copyInstance(instance);
}
TriggerSpecTemplateFluent> fluent;
public TriggerSpecTemplate build() {
TriggerSpecTemplate buildable = new TriggerSpecTemplate(fluent.getApiversion(),fluent.getRef(),fluent.buildSpec());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}