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

io.fabric8.kubernetes.api.model.SecretVolumeSourceBuilder 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 SecretVolumeSourceBuilder extends io.fabric8.kubernetes.api.model.SecretVolumeSourceFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder{
  public SecretVolumeSourceBuilder() {
    this(false);
  }
  public SecretVolumeSourceBuilder(java.lang.Boolean validationEnabled) {
    this(new SecretVolumeSource(), validationEnabled);
  }
  public SecretVolumeSourceBuilder(io.fabric8.kubernetes.api.model.SecretVolumeSourceFluent fluent) {
    this(fluent, false);
  }
  public SecretVolumeSourceBuilder(io.fabric8.kubernetes.api.model.SecretVolumeSourceFluent fluent,java.lang.Boolean validationEnabled) {
    this(fluent, new SecretVolumeSource(), validationEnabled);
  }
  public SecretVolumeSourceBuilder(io.fabric8.kubernetes.api.model.SecretVolumeSourceFluent fluent,io.fabric8.kubernetes.api.model.SecretVolumeSource instance) {
    this(fluent, instance, false);
  }
  public SecretVolumeSourceBuilder(io.fabric8.kubernetes.api.model.SecretVolumeSourceFluent fluent,io.fabric8.kubernetes.api.model.SecretVolumeSource instance,java.lang.Boolean validationEnabled) {
    this.fluent = fluent; 
    fluent.withDefaultMode(instance.getDefaultMode()); 
    fluent.withItems(instance.getItems()); 
    fluent.withOptional(instance.getOptional()); 
    fluent.withSecretName(instance.getSecretName()); 
    fluent.withAdditionalProperties(instance.getAdditionalProperties());

    this.validationEnabled = validationEnabled; 
  }
  public SecretVolumeSourceBuilder(io.fabric8.kubernetes.api.model.SecretVolumeSource instance) {
    this(instance,false);
  }
  public SecretVolumeSourceBuilder(io.fabric8.kubernetes.api.model.SecretVolumeSource instance,java.lang.Boolean validationEnabled) {
    this.fluent = this; 
    this.withDefaultMode(instance.getDefaultMode()); 
    this.withItems(instance.getItems()); 
    this.withOptional(instance.getOptional()); 
    this.withSecretName(instance.getSecretName()); 
    this.withAdditionalProperties(instance.getAdditionalProperties());

    this.validationEnabled = validationEnabled; 
  }
  io.fabric8.kubernetes.api.model.SecretVolumeSourceFluent fluent;
  java.lang.Boolean validationEnabled;
  public io.fabric8.kubernetes.api.model.SecretVolumeSource build() {
    SecretVolumeSource buildable = new SecretVolumeSource(fluent.getDefaultMode(),fluent.getItems(),fluent.getOptional(),fluent.getSecretName());
    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;
    SecretVolumeSourceBuilder that = (SecretVolumeSourceBuilder) 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