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

io.strimzi.api.kafka.model.PasswordSecretSourceFluent 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;

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

    if (instance != null) {
      this.withSecretName(instance.getSecretName());
      this.withPassword(instance.getPassword());
    }
  }
  private String secretName;
  private String password;
  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 getPassword() {
    return this.password;
  }
  public A withPassword(String password) {
    this.password=password; return (A) this;
  }
  public boolean hasPassword() {
    return this.password != 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;
    PasswordSecretSourceFluent that = (PasswordSecretSourceFluent) o;
    if (!java.util.Objects.equals(secretName, that.secretName)) return false;

    if (!java.util.Objects.equals(password, that.password)) return false;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy