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

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

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

import java.lang.StringBuffer;
import java.lang.StringBuilder;
import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

public class V1StatusCauseFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1StatusCauseFluent {

    private String field;
    private String message;
    private String reason;

    public V1StatusCauseFluentImpl() { 
    }


    public V1StatusCauseFluentImpl(V1StatusCause instance) { 
        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 A withNewField(String arg1) {
        return (A)withField(new String(arg1));
    }

    public A withNewField(StringBuilder arg1) {
        return (A)withField(new String(arg1));
    }

    public A withNewField(StringBuffer arg1) {
        return (A)withField(new String(arg1));
    }

    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 A withNewMessage(String arg1) {
        return (A)withMessage(new String(arg1));
    }

    public A withNewMessage(StringBuilder arg1) {
        return (A)withMessage(new String(arg1));
    }

    public A withNewMessage(StringBuffer arg1) {
        return (A)withMessage(new String(arg1));
    }

    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 A withNewReason(String arg1) {
        return (A)withReason(new String(arg1));
    }

    public A withNewReason(StringBuilder arg1) {
        return (A)withReason(new String(arg1));
    }

    public A withNewReason(StringBuffer arg1) {
        return (A)withReason(new String(arg1));
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        V1StatusCauseFluentImpl that = (V1StatusCauseFluentImpl) o;
        if (field != null ? !field.equals(that.field) :that.field != null) return false;
        if (message != null ? !message.equals(that.message) :that.message != null) return false;
        if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(field,  message,  reason,  super.hashCode());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy