rapture.common.RaptureRunnerInstanceStatus Maven / Gradle / Ivy
/**
* The MIT License (MIT)
*
* Copyright (C) 2011-2016 Incapture Technologies LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* This file is autogenerated and any changes will be overwritten.
*/
package rapture.common;
import rapture.common.*;
import rapture.object.Searchable;
import rapture.object.Storable;
import rapture.object.Debugable;
import rapture.common.version.ApiVersion;
import rapture.common.impl.jackson.JacksonUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class RaptureRunnerInstanceStatus implements RaptureTransferObject, Debugable {
/*
* Start of field 'serverGroup' (String)
*/
private String serverGroup;
@JsonProperty("serverGroup")
public String getServerGroup() {
return serverGroup;
}
@JsonProperty("serverGroup")
public void setServerGroup(String serverGroup) {
this.serverGroup = serverGroup ;
}
/*
* end of field 'serverGroup' (String)
*/
/*
* Start of field 'appInstance' (String)
*/
private String appInstance;
@JsonProperty("appInstance")
public String getAppInstance() {
return appInstance;
}
@JsonProperty("appInstance")
public void setAppInstance(String appInstance) {
this.appInstance = appInstance ;
}
/*
* end of field 'appInstance' (String)
*/
/*
* Start of field 'appName' (String)
*/
private String appName;
@JsonProperty("appName")
public String getAppName() {
return appName;
}
@JsonProperty("appName")
public void setAppName(String appName) {
this.appName = appName ;
}
/*
* end of field 'appName' (String)
*/
/*
* Start of field 'status' (String)
*/
private String status;
@JsonProperty("status")
public String getStatus() {
return status;
}
@JsonProperty("status")
public void setStatus(String status) {
this.status = status ;
}
/*
* end of field 'status' (String)
*/
/*
* Start of field 'lastSeen' (Date)
*/
private Date lastSeen;
@JsonProperty("lastSeen")
public Date getLastSeen() {
return lastSeen;
}
@JsonProperty("lastSeen")
public void setLastSeen(Date lastSeen) {
this.lastSeen = lastSeen ;
}
/*
* end of field 'lastSeen' (Date)
*/
/*
* Start of field 'needsRestart' (Boolean)
*/
private Boolean needsRestart = false;
@JsonProperty("needsRestart")
public Boolean getNeedsRestart() {
return needsRestart;
}
@JsonProperty("needsRestart")
public void setNeedsRestart(Boolean needsRestart) {
this.needsRestart = needsRestart ;
}
/*
* end of field 'needsRestart' (Boolean)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((lastSeen == null) ? 0 : lastSeen.hashCode());
result = prime * result + ((appName == null) ? 0 : appName.hashCode());
result = prime * result + ((serverGroup == null) ? 0 : serverGroup.hashCode());
result = prime * result + ((appInstance == null) ? 0 : appInstance.hashCode());
result = prime * result + ((needsRestart == null) ? 0 : needsRestart.hashCode());
result = prime * result + ((status == null) ? 0 : status.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
RaptureRunnerInstanceStatus other = (RaptureRunnerInstanceStatus) obj;
if (lastSeen == null) {
if (other.lastSeen != null) {
return false;
}
} else if (!lastSeen.equals(other.lastSeen)) {
return false;
}
if (appName == null) {
if (other.appName != null) {
return false;
}
} else if (!appName.equals(other.appName)) {
return false;
}
if (serverGroup == null) {
if (other.serverGroup != null) {
return false;
}
} else if (!serverGroup.equals(other.serverGroup)) {
return false;
}
if (appInstance == null) {
if (other.appInstance != null) {
return false;
}
} else if (!appInstance.equals(other.appInstance)) {
return false;
}
if (needsRestart == null) {
if (other.needsRestart != null) {
return false;
}
} else if (!needsRestart.equals(other.needsRestart)) {
return false;
}
if (status == null) {
if (other.status != null) {
return false;
}
} else if (!status.equals(other.status)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" lastSeen= ");
Object o = lastSeen;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" appName= ");
Object o = appName;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" serverGroup= ");
Object o = serverGroup;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" appInstance= ");
Object o = appInstance;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" needsRestart= ");
Object o = needsRestart;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
{
sb.append(" status= ");
Object o = status;
if (o != null) {
if (o instanceof java.util.Collection) {
sb.append("{ ");
for (Object oo : (java.util.Collection>) o) {
if (oo == null) sb.append("null");
else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
else sb.append(oo.toString()).append(", ");
}
sb.append(" } ");
} else {
if (o instanceof Debugable) sb.append(((Debugable) o).debug());
else sb.append(o.toString());
}
}
}
return sb.append("\n").toString();
}
@Override
public String toString() {
return JacksonUtil.jsonFromObject(this);
}
private ApiVersion _raptureVersion;
@JsonProperty("_raptureVersion")
public ApiVersion get_raptureVersion() {
return _raptureVersion;
}
@JsonProperty("_raptureVersion")
public void set_raptureVersion(ApiVersion _raptureVersion) {
this._raptureVersion = _raptureVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy