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

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

package io.kubernetes.client.openapi.models;

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1EnvFromSourceBuilder extends V1EnvFromSourceFluentImpl implements VisitableBuilder{
  public V1EnvFromSourceBuilder() {
    this(false);
  }
  public V1EnvFromSourceBuilder(Boolean validationEnabled) {
    this(new V1EnvFromSource(), validationEnabled);
  }
  public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent) {
    this(fluent, false);
  }
  public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,Boolean validationEnabled) {
    this(fluent, new V1EnvFromSource(), validationEnabled);
  }
  public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,V1EnvFromSource instance) {
    this(fluent, instance, false);
  }
  public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,V1EnvFromSource instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withConfigMapRef(instance.getConfigMapRef());

    fluent.withPrefix(instance.getPrefix());

    fluent.withSecretRef(instance.getSecretRef());

    this.validationEnabled = validationEnabled; 
  }
  public V1EnvFromSourceBuilder(V1EnvFromSource instance) {
    this(instance,false);
  }
  public V1EnvFromSourceBuilder(V1EnvFromSource instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withConfigMapRef(instance.getConfigMapRef());

    this.withPrefix(instance.getPrefix());

    this.withSecretRef(instance.getSecretRef());

    this.validationEnabled = validationEnabled; 
  }
  V1EnvFromSourceFluent fluent;
  Boolean validationEnabled;
  public V1EnvFromSource build() {
    V1EnvFromSource buildable = new V1EnvFromSource();
    buildable.setConfigMapRef(fluent.getConfigMapRef());
    buildable.setPrefix(fluent.getPrefix());
    buildable.setSecretRef(fluent.getSecretRef());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy