All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.tekton.triggers.v1alpha1.InterceptorParamsBuilder Maven / Gradle / Ivy

package io.fabric8.tekton.triggers.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class InterceptorParamsBuilder extends InterceptorParamsFluent implements VisitableBuilder{
  public InterceptorParamsBuilder() {
    this(new InterceptorParams());
  }
  
  public InterceptorParamsBuilder(InterceptorParamsFluent fluent) {
    this(fluent, new InterceptorParams());
  }
  
  public InterceptorParamsBuilder(InterceptorParamsFluent fluent,InterceptorParams instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public InterceptorParamsBuilder(InterceptorParams instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  InterceptorParamsFluent fluent;
  
  public InterceptorParams build() {
    InterceptorParams buildable = new InterceptorParams(fluent.getName(),fluent.getValue());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy