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

io.kubernetes.client.openapi.models.V1StatusCauseFluent Maven / Gradle / Ivy

There is a newer version: 23.0.0-legacy
Show newest version
package io.kubernetes.client.openapi.models;

import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class V1StatusCauseFluent> extends BaseFluent{
  public V1StatusCauseFluent() {
  }
  
  public V1StatusCauseFluent(V1StatusCause instance) {
    this.copyInstance(instance);
  }
  private String field;
  private String message;
  private String reason;
  
  protected void copyInstance(V1StatusCause instance) {
    instance = (instance != null ? instance : new V1StatusCause());
    if (instance != null) {
          this.withField(instance.getField());
          this.withMessage(instance.getMessage());
          this.withReason(instance.getReason());
        }
  }
  
  public String getField() {
    return this.field;
  }
  
  public A withField(String field) {
    this.field = field;
    return (A) this;
  }
  
  public boolean hasField() {
    return this.field != 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 getReason() {
    return this.reason;
  }
  
  public A withReason(String reason) {
    this.reason = reason;
    return (A) this;
  }
  
  public boolean hasReason() {
    return this.reason != 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;
    V1StatusCauseFluent that = (V1StatusCauseFluent) o;
    if (!java.util.Objects.equals(field, that.field)) return false;
    if (!java.util.Objects.equals(message, that.message)) return false;
    if (!java.util.Objects.equals(reason, that.reason)) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(field,  message,  reason,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    if (field != null) { sb.append("field:"); sb.append(field + ","); }
    if (message != null) { sb.append("message:"); sb.append(message + ","); }
    if (reason != null) { sb.append("reason:"); sb.append(reason); }
    sb.append("}");
    return sb.toString();
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy