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

io.strimzi.api.kafka.model.ExternalConfigurationReferenceFluent Maven / Gradle / Ivy

There is a newer version: 0.44.0
Show newest version
package io.strimzi.api.kafka.model;

import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import io.fabric8.kubernetes.api.model.ConfigMapKeySelector;

 /**
  * Generated
  */
  @SuppressWarnings(value = "unchecked")
  public class ExternalConfigurationReferenceFluent> extends BaseFluent{
  public ExternalConfigurationReferenceFluent() {
  }
  public ExternalConfigurationReferenceFluent(ExternalConfigurationReference instance) {
    instance = (instance != null ? instance : new ExternalConfigurationReference());

    if (instance != null) {
      this.withConfigMapKeyRef(instance.getConfigMapKeyRef());
    }
  }
  private ConfigMapKeySelector configMapKeyRef;
  public ConfigMapKeySelector getConfigMapKeyRef() {
    return this.configMapKeyRef;
  }
  public A withConfigMapKeyRef(ConfigMapKeySelector configMapKeyRef) {
    this.configMapKeyRef=configMapKeyRef; return (A) this;
  }
  public boolean hasConfigMapKeyRef() {
    return this.configMapKeyRef != null;
  }
  public A withNewConfigMapKeyRef(String key,String name,Boolean optional) {
    return (A)withConfigMapKeyRef(new ConfigMapKeySelector(key, name, optional));
  }
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    ExternalConfigurationReferenceFluent that = (ExternalConfigurationReferenceFluent) o;
    if (!java.util.Objects.equals(configMapKeyRef, that.configMapKeyRef)) return false;

    return true;
  }
  public int hashCode() {
    return java.util.Objects.hash(configMapKeyRef,  super.hashCode());
  }
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (configMapKeyRef != null) { sb.append("configMapKeyRef:"); sb.append(configMapKeyRef); }
    sb.append("}");
    return sb.toString();
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy