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

io.strimzi.api.kafka.model.common.GenericSecretSourceFluent 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 GenericSecretSourceFluent> extends BaseFluent{
  public GenericSecretSourceFluent() {
  }
  
  public GenericSecretSourceFluent(GenericSecretSource instance) {
    this.copyInstance(instance);
  }
  private String secretName;
  private String key;
  
  protected void copyInstance(GenericSecretSource instance) {
    instance = (instance != null ? instance : new GenericSecretSource());
    if (instance != null) {
          this.withSecretName(instance.getSecretName());
          this.withKey(instance.getKey());
        }
  }
  
  public String getSecretName() {
    return this.secretName;
  }
  
  public A withSecretName(String secretName) {
    this.secretName = secretName;
    return (A) this;
  }
  
  public boolean hasSecretName() {
    return this.secretName != null;
  }
  
  public String getKey() {
    return this.key;
  }
  
  public A withKey(String key) {
    this.key = key;
    return (A) this;
  }
  
  public boolean hasKey() {
    return this.key != 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;
    GenericSecretSourceFluent that = (GenericSecretSourceFluent) o;
    if (!java.util.Objects.equals(secretName, that.secretName)) return false;
    if (!java.util.Objects.equals(key, that.key)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(secretName,  key,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (secretName != null) { sb.append("secretName:"); sb.append(secretName + ","); }
    if (key != null) { sb.append("key:"); sb.append(key); }
    sb.append("}");
    return sb.toString();
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy