rapture.common.dp.AppStatusDetails 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.dp;
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.List;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class AppStatusDetails implements RaptureTransferObject, Debugable {
/*
* Start of field 'appStatus' (AppStatus)
*/
private AppStatus appStatus;
@JsonProperty("appStatus")
public AppStatus getAppStatus() {
return appStatus;
}
@JsonProperty("appStatus")
public void setAppStatus(AppStatus appStatus) {
this.appStatus = appStatus ;
}
/*
* end of field 'appStatus' (AppStatus)
*/
/*
* Start of field 'workerIdToSteps' (Map>)
*/
private Map> workerIdToSteps = new HashMap>();
@JsonProperty("workerIdToSteps")
public Map> getWorkerIdToSteps() {
return workerIdToSteps;
}
@JsonProperty("workerIdToSteps")
public void setWorkerIdToSteps(Map> workerIdToSteps) {
this.workerIdToSteps = workerIdToSteps ;
}
/*
* end of field 'workerIdToSteps' (Map>)
*/
/*
* Start of field 'logURI' (String)
*/
private String logURI;
@JsonProperty("logURI")
public String getLogURI() {
return logURI;
}
@JsonProperty("logURI")
public void setLogURI(String logURI) {
this.logURI = logURI ;
}
/*
* end of field 'logURI' (String)
*/
/*
* Start of field 'extraContextValues' (Map)
*/
private Map extraContextValues = new HashMap();
@JsonProperty("extraContextValues")
public Map getExtraContextValues() {
return extraContextValues;
}
@JsonProperty("extraContextValues")
public void setExtraContextValues(Map extraContextValues) {
this.extraContextValues = extraContextValues ;
}
/*
* end of field 'extraContextValues' (Map)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((workerIdToSteps == null) ? 0 : workerIdToSteps.hashCode());
result = prime * result + ((extraContextValues == null) ? 0 : extraContextValues.hashCode());
result = prime * result + ((appStatus == null) ? 0 : appStatus.hashCode());
result = prime * result + ((logURI == null) ? 0 : logURI.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;
AppStatusDetails other = (AppStatusDetails) obj;
if (workerIdToSteps == null) {
if (other.workerIdToSteps != null) {
return false;
}
} else if (!workerIdToSteps.equals(other.workerIdToSteps)) {
return false;
}
if (extraContextValues == null) {
if (other.extraContextValues != null) {
return false;
}
} else if (!extraContextValues.equals(other.extraContextValues)) {
return false;
}
if (appStatus == null) {
if (other.appStatus != null) {
return false;
}
} else if (!appStatus.equals(other.appStatus)) {
return false;
}
if (logURI == null) {
if (other.logURI != null) {
return false;
}
} else if (!logURI.equals(other.logURI)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" workerIdToSteps= ");
Object o = workerIdToSteps;
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(" extraContextValues= ");
Object o = extraContextValues;
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(" appStatus= ");
Object o = appStatus;
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(" logURI= ");
Object o = logURI;
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