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

io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSourceBuilder Maven / Gradle / Ivy

package io.fabric8.kubernetes.api.model;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class CephFSPersistentVolumeSourceBuilder extends io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSourceFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder{
  public CephFSPersistentVolumeSourceBuilder() {
    this(false);
  }
  public CephFSPersistentVolumeSourceBuilder(java.lang.Boolean validationEnabled) {
    this(new CephFSPersistentVolumeSource(), validationEnabled);
  }
  public CephFSPersistentVolumeSourceBuilder(io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSourceFluent fluent) {
    this(fluent, false);
  }
  public CephFSPersistentVolumeSourceBuilder(io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSourceFluent fluent,java.lang.Boolean validationEnabled) {
    this(fluent, new CephFSPersistentVolumeSource(), validationEnabled);
  }
  public CephFSPersistentVolumeSourceBuilder(io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSourceFluent fluent,io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSource instance) {
    this(fluent, instance, false);
  }
  public CephFSPersistentVolumeSourceBuilder(io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSourceFluent fluent,io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSource instance,java.lang.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()); 
    fluent.withAdditionalProperties(instance.getAdditionalProperties());

    this.validationEnabled = validationEnabled; 
  }
  public CephFSPersistentVolumeSourceBuilder(io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSource instance) {
    this(instance,false);
  }
  public CephFSPersistentVolumeSourceBuilder(io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSource instance,java.lang.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.withAdditionalProperties(instance.getAdditionalProperties());

    this.validationEnabled = validationEnabled; 
  }
  io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSourceFluent fluent;
  java.lang.Boolean validationEnabled;
  public io.fabric8.kubernetes.api.model.CephFSPersistentVolumeSource build() {
    CephFSPersistentVolumeSource buildable = new CephFSPersistentVolumeSource(fluent.getMonitors(),fluent.getPath(),fluent.getReadOnly(),fluent.getSecretFile(),fluent.getSecretRef(),fluent.getUser());
    buildable.setAdditionalProperties(fluent.getAdditionalProperties());
    return buildable;
  }
  public boolean equals(java.lang.Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    CephFSPersistentVolumeSourceBuilder that = (CephFSPersistentVolumeSourceBuilder) o;
    if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;

    if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(fluent,  validationEnabled,  super.hashCode());
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy