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

com.yahoo.athenz.zms.Status Maven / Gradle / Ivy

There is a newer version: 1.12.5
Show newest version
//
// This file generated by rdl 1.5.2. Do not modify!
//

package com.yahoo.athenz.zms;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yahoo.rdl.*;

//
// Status - The representation for a status object
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class Status {
    public int code;
    public String message;

    public Status setCode(int code) {
        this.code = code;
        return this;
    }
    public int getCode() {
        return code;
    }
    public Status setMessage(String message) {
        this.message = message;
        return this;
    }
    public String getMessage() {
        return message;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != Status.class) {
                return false;
            }
            Status a = (Status) another;
            if (code != a.code) {
                return false;
            }
            if (message == null ? a.message != null : !message.equals(a.message)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy