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

io.strimzi.api.kafka.model.common.RackFluent Maven / Gradle / Ivy

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

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

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class RackFluent> extends BaseFluent{
  public RackFluent() {
  }
  
  public RackFluent(Rack instance) {
    this.copyInstance(instance);
  }
  private String topologyKey;
  
  protected void copyInstance(Rack instance) {
    instance = (instance != null ? instance : new Rack());
    if (instance != null) {
          this.withTopologyKey(instance.getTopologyKey());
        }
  }
  
  public String getTopologyKey() {
    return this.topologyKey;
  }
  
  public A withTopologyKey(String topologyKey) {
    this.topologyKey = topologyKey;
    return (A) this;
  }
  
  public boolean hasTopologyKey() {
    return this.topologyKey != null;
  }
  
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    RackFluent that = (RackFluent) o;
    if (!java.util.Objects.equals(topologyKey, that.topologyKey)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(topologyKey,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (topologyKey != null) { sb.append("topologyKey:"); sb.append(topologyKey); }
    sb.append("}");
    return sb.toString();
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy