package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1ExternalDocumentationBuilder extends V1ExternalDocumentationFluentImpl<V1ExternalDocumentationBuilder> implements VisitableBuilder<V1ExternalDocumentation,V1ExternalDocumentationBuilder>{
  public V1ExternalDocumentationBuilder() {
    this(false);
  }
  public V1ExternalDocumentationBuilder(Boolean validationEnabled) {
    this(new V1ExternalDocumentation(), validationEnabled);
  }
  public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent<?> fluent) {
    this(fluent, false);
  }
  public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent<?> fluent,Boolean validationEnabled) {
    this(fluent, new V1ExternalDocumentation(), validationEnabled);
  }
  public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent<?> fluent,V1ExternalDocumentation instance) {
    this(fluent, instance, false);
  }
  public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent<?> fluent,V1ExternalDocumentation instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withDescription(instance.getDescription());
      fluent.withUrl(instance.getUrl());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V1ExternalDocumentationBuilder(V1ExternalDocumentation instance) {
    this(instance,false);
  }
  public V1ExternalDocumentationBuilder(V1ExternalDocumentation instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withDescription(instance.getDescription());
      this.withUrl(instance.getUrl());
    }
    this.validationEnabled = validationEnabled; 
  }
  V1ExternalDocumentationFluent<?> fluent;
  Boolean validationEnabled;
  public V1ExternalDocumentation build() {
    V1ExternalDocumentation buildable = new V1ExternalDocumentation();
    buildable.setDescription(fluent.getDescription());
    buildable.setUrl(fluent.getUrl());
    return buildable;
  }
  
}