package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1SessionAffinityConfigBuilder extends V1SessionAffinityConfigFluentImpl<V1SessionAffinityConfigBuilder> implements VisitableBuilder<V1SessionAffinityConfig,V1SessionAffinityConfigBuilder>{
  public V1SessionAffinityConfigBuilder() {
    this(false);
  }
  public V1SessionAffinityConfigBuilder(Boolean validationEnabled) {
    this(new V1SessionAffinityConfig(), validationEnabled);
  }
  public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent<?> fluent) {
    this(fluent, false);
  }
  public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent<?> fluent,Boolean validationEnabled) {
    this(fluent, new V1SessionAffinityConfig(), validationEnabled);
  }
  public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent<?> fluent,V1SessionAffinityConfig instance) {
    this(fluent, instance, false);
  }
  public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent<?> fluent,V1SessionAffinityConfig instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      fluent.withClientIP(instance.getClientIP());
    }
    this.validationEnabled = validationEnabled; 
  }
  public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance) {
    this(instance,false);
  }
  public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      this.withClientIP(instance.getClientIP());
    }
    this.validationEnabled = validationEnabled; 
  }
  V1SessionAffinityConfigFluent<?> fluent;
  Boolean validationEnabled;
  public V1SessionAffinityConfig build() {
    V1SessionAffinityConfig buildable = new V1SessionAffinityConfig();
    buildable.setClientIP(fluent.getClientIP());
    return buildable;
  }
  
}