com.yahoo.athenz.zms.Status Maven / Gradle / Ivy
The 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;
}
}