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

io.fabric8.knative.internal.networking.v1alpha1.IngressRuleBuilder Maven / Gradle / Ivy

package io.fabric8.knative.internal.networking.v1alpha1;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Boolean;
public class IngressRuleBuilder extends IngressRuleFluent implements VisitableBuilder{
  public IngressRuleBuilder() {
    this(false);
  }
  public IngressRuleBuilder(Boolean validationEnabled) {
    this(new IngressRule(), validationEnabled);
  }
  public IngressRuleBuilder(IngressRuleFluent fluent) {
    this(fluent, false);
  }
  public IngressRuleBuilder(IngressRuleFluent fluent,Boolean validationEnabled) {
    this(fluent, new IngressRule(), validationEnabled);
  }
  public IngressRuleBuilder(IngressRuleFluent fluent,IngressRule instance) {
    this(fluent, instance, false);
  }
  public IngressRuleBuilder(IngressRuleFluent fluent,IngressRule instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    instance = (instance != null ? instance : new IngressRule());

    if (instance != null) {
      fluent.withHosts(instance.getHosts());
      fluent.withHttp(instance.getHttp());
      fluent.withVisibility(instance.getVisibility());
      fluent.withHosts(instance.getHosts());
      fluent.withHttp(instance.getHttp());
      fluent.withVisibility(instance.getVisibility());
    }
    this.validationEnabled = validationEnabled; 
  }
  public IngressRuleBuilder(IngressRule instance) {
    this(instance,false);
  }
  public IngressRuleBuilder(IngressRule instance,Boolean validationEnabled) {
    this.fluent = this; 
    instance = (instance != null ? instance : new IngressRule());

    if (instance != null) {
      this.withHosts(instance.getHosts());
      this.withHttp(instance.getHttp());
      this.withVisibility(instance.getVisibility());
      this.withHosts(instance.getHosts());
      this.withHttp(instance.getHttp());
      this.withVisibility(instance.getVisibility());
    }
    this.validationEnabled = validationEnabled; 
  }
  IngressRuleFluent fluent;
  Boolean validationEnabled;
  public IngressRule build() {
    IngressRule buildable = new IngressRule(fluent.getHosts(),fluent.buildHttp(),fluent.getVisibility());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy