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

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

package io.fabric8.kubernetes.api.model;

import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;

 /**
  * Generated
  */
public class QuobyteVolumeSourceFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.kubernetes.api.model.QuobyteVolumeSourceFluent{
  public QuobyteVolumeSourceFluentImpl() {
  }
  public QuobyteVolumeSourceFluentImpl(io.fabric8.kubernetes.api.model.QuobyteVolumeSource instance) {
    this.withGroup(instance.getGroup()); 
    this.withReadOnly(instance.getReadOnly()); 
    this.withRegistry(instance.getRegistry()); 
    this.withTenant(instance.getTenant()); 
    this.withUser(instance.getUser()); 
    this.withVolume(instance.getVolume()); 
    this.withAdditionalProperties(instance.getAdditionalProperties());

  }
  private java.lang.String group;
  private java.lang.Boolean readOnly;
  private java.lang.String registry;
  private java.lang.String tenant;
  private java.lang.String user;
  private java.lang.String volume;
  private java.util.Map additionalProperties;
  public java.lang.String getGroup() {
    return this.group;
  }
  public A withGroup(java.lang.String group) {
    this.group=group; return (A) this;
  }
  public java.lang.Boolean hasGroup() {
    return this.group != null;
  }
  
  /**
   * Method is deprecated. use withGroup instead.
   */
  @java.lang.Deprecated
  public A withNewGroup(java.lang.String arg0) {
    return (A)withGroup(new String(arg0));
  }
  public java.lang.Boolean getReadOnly() {
    return this.readOnly;
  }
  public A withReadOnly(java.lang.Boolean readOnly) {
    this.readOnly=readOnly; return (A) this;
  }
  public java.lang.Boolean hasReadOnly() {
    return this.readOnly != null;
  }
  public java.lang.String getRegistry() {
    return this.registry;
  }
  public A withRegistry(java.lang.String registry) {
    this.registry=registry; return (A) this;
  }
  public java.lang.Boolean hasRegistry() {
    return this.registry != null;
  }
  
  /**
   * Method is deprecated. use withRegistry instead.
   */
  @java.lang.Deprecated
  public A withNewRegistry(java.lang.String arg0) {
    return (A)withRegistry(new String(arg0));
  }
  public java.lang.String getTenant() {
    return this.tenant;
  }
  public A withTenant(java.lang.String tenant) {
    this.tenant=tenant; return (A) this;
  }
  public java.lang.Boolean hasTenant() {
    return this.tenant != null;
  }
  
  /**
   * Method is deprecated. use withTenant instead.
   */
  @java.lang.Deprecated
  public A withNewTenant(java.lang.String arg0) {
    return (A)withTenant(new String(arg0));
  }
  public java.lang.String getUser() {
    return this.user;
  }
  public A withUser(java.lang.String user) {
    this.user=user; return (A) this;
  }
  public java.lang.Boolean hasUser() {
    return this.user != null;
  }
  
  /**
   * Method is deprecated. use withUser instead.
   */
  @java.lang.Deprecated
  public A withNewUser(java.lang.String arg0) {
    return (A)withUser(new String(arg0));
  }
  public java.lang.String getVolume() {
    return this.volume;
  }
  public A withVolume(java.lang.String volume) {
    this.volume=volume; return (A) this;
  }
  public java.lang.Boolean hasVolume() {
    return this.volume != null;
  }
  
  /**
   * Method is deprecated. use withVolume instead.
   */
  @java.lang.Deprecated
  public A withNewVolume(java.lang.String arg0) {
    return (A)withVolume(new String(arg0));
  }
  public A addToAdditionalProperties(java.lang.String key,java.lang.Object value) {
    if(this.additionalProperties == null && key != null && value != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (A)this;
  }
  public A addToAdditionalProperties(java.util.Map map) {
    if(this.additionalProperties == null && map != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
    if(map != null) { this.additionalProperties.putAll(map);} return (A)this;
  }
  public A removeFromAdditionalProperties(java.lang.String key) {
    if(this.additionalProperties == null) { return (A) this; }
    if(key != null && this.additionalProperties != null) {this.additionalProperties.remove(key);} return (A)this;
  }
  public A removeFromAdditionalProperties(java.util.Map map) {
    if(this.additionalProperties == null) { return (A) this; }
    if(map != null) { for(Object key : map.keySet()) {if (this.additionalProperties != null){this.additionalProperties.remove(key);}}} return (A)this;
  }
  public java.util.Map getAdditionalProperties() {
    return this.additionalProperties;
  }
  public A withAdditionalProperties(java.util.Map additionalProperties) {
    if (additionalProperties == null) { this.additionalProperties =  null;} else {this.additionalProperties = new java.util.LinkedHashMap(additionalProperties);} return (A) this;
  }
  public java.lang.Boolean hasAdditionalProperties() {
    return this.additionalProperties != null;
  }
  public boolean equals(java.lang.Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    QuobyteVolumeSourceFluentImpl that = (QuobyteVolumeSourceFluentImpl) o;
    if (group != null ? !group.equals(that.group) :that.group != null) return false;
    if (readOnly != null ? !readOnly.equals(that.readOnly) :that.readOnly != null) return false;
    if (registry != null ? !registry.equals(that.registry) :that.registry != null) return false;
    if (tenant != null ? !tenant.equals(that.tenant) :that.tenant != null) return false;
    if (user != null ? !user.equals(that.user) :that.user != null) return false;
    if (volume != null ? !volume.equals(that.volume) :that.volume != null) return false;
    if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(group,  readOnly,  registry,  tenant,  user,  volume,  additionalProperties,  super.hashCode());
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy