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

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

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

import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Boolean;
public class V1CephFSPersistentVolumeSourceBuilder extends V1CephFSPersistentVolumeSourceFluentImpl implements VisitableBuilder{
  public V1CephFSPersistentVolumeSourceBuilder() {
    this(false);
  }
  public V1CephFSPersistentVolumeSourceBuilder(Boolean validationEnabled) {
    this(new V1CephFSPersistentVolumeSource(), validationEnabled);
  }
  public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent) {
    this(fluent, false);
  }
  public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,Boolean validationEnabled) {
    this(fluent, new V1CephFSPersistentVolumeSource(), validationEnabled);
  }
  public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,V1CephFSPersistentVolumeSource instance) {
    this(fluent, instance, false);
  }
  public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,V1CephFSPersistentVolumeSource instance,Boolean validationEnabled) {
    this.fluent = fluent; 
    if (instance != null) {
      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 V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance) {
    this(instance,false);
  }
  public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance,Boolean validationEnabled) {
    this.fluent = this; 
    if (instance != null) {
      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; 
  }
  V1CephFSPersistentVolumeSourceFluent fluent;
  Boolean validationEnabled;
  public V1CephFSPersistentVolumeSource build() {
    V1CephFSPersistentVolumeSource buildable = new V1CephFSPersistentVolumeSource();
    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