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

io.fabric8.knative.internal.pkg.apis.duck.v1.KReferenceBuilder Maven / Gradle / Ivy

package io.fabric8.knative.internal.pkg.apis.duck.v1;

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

    if (instance != null) {
      fluent.withAddress(instance.getAddress());
      fluent.withApiVersion(instance.getApiVersion());
      fluent.withGroup(instance.getGroup());
      fluent.withKind(instance.getKind());
      fluent.withName(instance.getName());
      fluent.withNamespace(instance.getNamespace());
      fluent.withAddress(instance.getAddress());
      fluent.withApiVersion(instance.getApiVersion());
      fluent.withGroup(instance.getGroup());
      fluent.withKind(instance.getKind());
      fluent.withName(instance.getName());
      fluent.withNamespace(instance.getNamespace());
    }
    this.validationEnabled = validationEnabled; 
  }
  public KReferenceBuilder(KReference instance) {
    this(instance,false);
  }
  public KReferenceBuilder(KReference instance,Boolean validationEnabled) {
    this.fluent = this; 
    instance = (instance != null ? instance : new KReference());

    if (instance != null) {
      this.withAddress(instance.getAddress());
      this.withApiVersion(instance.getApiVersion());
      this.withGroup(instance.getGroup());
      this.withKind(instance.getKind());
      this.withName(instance.getName());
      this.withNamespace(instance.getNamespace());
      this.withAddress(instance.getAddress());
      this.withApiVersion(instance.getApiVersion());
      this.withGroup(instance.getGroup());
      this.withKind(instance.getKind());
      this.withName(instance.getName());
      this.withNamespace(instance.getNamespace());
    }
    this.validationEnabled = validationEnabled; 
  }
  KReferenceFluent fluent;
  Boolean validationEnabled;
  public KReference build() {
    KReference buildable = new KReference(fluent.getAddress(),fluent.getApiVersion(),fluent.getGroup(),fluent.getKind(),fluent.getName(),fluent.getNamespace());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy