io.fabric8.tekton.triggers.v1alpha1.ClusterTriggerBindingBuilder Maven / Gradle / Ivy
package io.fabric8.tekton.triggers.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ClusterTriggerBindingBuilder extends ClusterTriggerBindingFluent implements VisitableBuilder{
public ClusterTriggerBindingBuilder() {
this(new ClusterTriggerBinding());
}
public ClusterTriggerBindingBuilder(ClusterTriggerBindingFluent> fluent) {
this(fluent, new ClusterTriggerBinding());
}
public ClusterTriggerBindingBuilder(ClusterTriggerBindingFluent> fluent,ClusterTriggerBinding instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public ClusterTriggerBindingBuilder(ClusterTriggerBinding instance) {
this.fluent = this;
this.copyInstance(instance);
}
ClusterTriggerBindingFluent> fluent;
public ClusterTriggerBinding build() {
ClusterTriggerBinding buildable = new ClusterTriggerBinding(fluent.getApiVersion(),fluent.getKind(),fluent.buildMetadata(),fluent.buildSpec(),fluent.buildStatus());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}