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

io.kubernetes.client.openapi.models.V1CephFSVolumeSourceBuilder 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 V1CephFSVolumeSourceBuilder extends V1CephFSVolumeSourceFluentImpl implements VisitableBuilder{
  public V1CephFSVolumeSourceBuilder() {
    this(false);
  }
  public V1CephFSVolumeSourceBuilder(Boolean validationEnabled) {
    this(new V1CephFSVolumeSource(), validationEnabled);
  }
  public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent) {
    this(fluent, false);
  }
  public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,Boolean validationEnabled) {
    this(fluent, new V1CephFSVolumeSource(), validationEnabled);
  }
  public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,V1CephFSVolumeSource instance) {
    this(fluent, instance, false);
  }
  public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,V1CephFSVolumeSource instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withMonitors(instance.getMonitors());

    fluent.withPath(instance.getPath());

    fluent.withReadOnly(instance.getReadOnly());

    fluent.withSecretFile(instance.getSecretFile());

    fluent.withSecretRef(instance.getSecretRef());

    fluent.withUser(instance.getUser());

    this.validationEnabled = validationEnabled; 
  }
  public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance) {
    this(instance,false);
  }
  public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance,Boolean validationEnabled) {
    this.fluent = this; 
    this.withMonitors(instance.getMonitors());

    this.withPath(instance.getPath());

    this.withReadOnly(instance.getReadOnly());

    this.withSecretFile(instance.getSecretFile());

    this.withSecretRef(instance.getSecretRef());

    this.withUser(instance.getUser());

    this.validationEnabled = validationEnabled; 
  }
  V1CephFSVolumeSourceFluent fluent;
  Boolean validationEnabled;
  public V1CephFSVolumeSource build() {
    V1CephFSVolumeSource buildable = new V1CephFSVolumeSource();
    buildable.setMonitors(fluent.getMonitors());
    buildable.setPath(fluent.getPath());
    buildable.setReadOnly(fluent.getReadOnly());
    buildable.setSecretFile(fluent.getSecretFile());
    buildable.setSecretRef(fluent.getSecretRef());
    buildable.setUser(fluent.getUser());
    return buildable;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy