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

io.debezium.operator.api.model.status.ConditionFluent Maven / Gradle / Ivy

There is a newer version: 3.0.6.Final
Show newest version
package io.debezium.operator.api.model.status;

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

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class ConditionFluent> extends BaseFluent{
  public ConditionFluent() {
  }
  
  public ConditionFluent(Condition instance) {
    this.copyInstance(instance);
  }
  private String status;
  private String message;
  private String type;
  
  protected void copyInstance(Condition instance) {
    instance = (instance != null ? instance : new Condition());
    if (instance != null) {
          this.withType(instance.getType());
          this.withStatus(instance.getStatus());
          this.withMessage(instance.getMessage());
        }
  }
  
  public String getStatus() {
    return this.status;
  }
  
  public A withStatus(String status) {
    this.status = status;
    return (A) this;
  }
  
  public boolean hasStatus() {
    return this.status != null;
  }
  
  public String getMessage() {
    return this.message;
  }
  
  public A withMessage(String message) {
    this.message = message;
    return (A) this;
  }
  
  public boolean hasMessage() {
    return this.message != null;
  }
  
  public String getType() {
    return this.type;
  }
  
  public A withType(String type) {
    this.type = type;
    return (A) this;
  }
  
  public boolean hasType() {
    return this.type != 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;
    ConditionFluent that = (ConditionFluent) o;
    if (!java.util.Objects.equals(status, that.status)) return false;
    if (!java.util.Objects.equals(message, that.message)) return false;
    if (!java.util.Objects.equals(type, that.type)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(status,  message,  type,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (status != null) { sb.append("status:"); sb.append(status + ","); }
    if (message != null) { sb.append("message:"); sb.append(message + ","); }
    if (type != null) { sb.append("type:"); sb.append(type); }
    sb.append("}");
    return sb.toString();
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy