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

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

package io.fabric8.tekton.triggers.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ServiceReferenceBuilder extends ServiceReferenceFluent implements VisitableBuilder{
  public ServiceReferenceBuilder() {
    this(new ServiceReference());
  }
  
  public ServiceReferenceBuilder(ServiceReferenceFluent fluent) {
    this(fluent, new ServiceReference());
  }
  
  public ServiceReferenceBuilder(ServiceReferenceFluent fluent,ServiceReference instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ServiceReferenceBuilder(ServiceReference instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ServiceReferenceFluent fluent;
  
  public ServiceReference build() {
    ServiceReference buildable = new ServiceReference(fluent.getName(),fluent.getNamespace(),fluent.getPath(),fluent.getPort());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy