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

io.kubernetes.client.openapi.models.V1SessionAffinityConfigBuilder Maven / Gradle / Ivy

There is a newer version: 22.0.0
Show newest version
package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1SessionAffinityConfigBuilder extends V1SessionAffinityConfigFluentImpl implements VisitableBuilder{
  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; 
    fluent.withClientIP(instance.getClientIP());

    this.validationEnabled = validationEnabled; 
  }
  public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance) {
    this(instance,false);
  }
  public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withClientIP(instance.getClientIP());

    this.validationEnabled = validationEnabled; 
  }
  V1SessionAffinityConfigFluent fluent;
  Boolean validationEnabled;
  public V1SessionAffinityConfig build() {
    V1SessionAffinityConfig buildable = new V1SessionAffinityConfig();
    buildable.setClientIP(fluent.getClientIP());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy