rapture.common.RaptureApplicationInstance 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 RaptureApplicationInstance implements RaptureTransferObject, Debugable ,Storable {
/*
* Start of field 'name' (String)
*/
private String name;
@JsonProperty("name")
public String getName() {
return name;
}
@JsonProperty("name")
public void setName(String name) {
this.name = name ;
}
/*
* end of field 'name' (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 'description' (String)
*/
private String description;
@JsonProperty("description")
public String getDescription() {
return description;
}
@JsonProperty("description")
public void setDescription(String description) {
this.description = description ;
}
/*
* end of field 'description' (String)
*/
/*
* 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 'timeRangeSpecification' (String)
*/
private String timeRangeSpecification;
@JsonProperty("timeRangeSpecification")
public String getTimeRangeSpecification() {
return timeRangeSpecification;
}
@JsonProperty("timeRangeSpecification")
public void setTimeRangeSpecification(String timeRangeSpecification) {
this.timeRangeSpecification = timeRangeSpecification ;
}
/*
* end of field 'timeRangeSpecification' (String)
*/
/*
* Start of field 'retryCount' (Integer)
*/
private Integer retryCount = 0;
@JsonProperty("retryCount")
public Integer getRetryCount() {
return retryCount;
}
@JsonProperty("retryCount")
public void setRetryCount(Integer retryCount) {
this.retryCount = retryCount ;
}
/*
* end of field 'retryCount' (Integer)
*/
/*
* Start of field 'parameters' (String)
*/
private String parameters;
@JsonProperty("parameters")
public String getParameters() {
return parameters;
}
@JsonProperty("parameters")
public void setParameters(String parameters) {
this.parameters = parameters ;
}
/*
* end of field 'parameters' (String)
*/
/*
* Start of field 'apiUser' (String)
*/
private String apiUser;
@JsonProperty("apiUser")
public String getApiUser() {
return apiUser;
}
@JsonProperty("apiUser")
public void setApiUser(String apiUser) {
this.apiUser = apiUser ;
}
/*
* end of field 'apiUser' (String)
*/
/*
* Start of field 'lockedBy' (String)
*/
private String lockedBy;
@JsonProperty("lockedBy")
public String getLockedBy() {
return lockedBy;
}
@JsonProperty("lockedBy")
public void setLockedBy(String lockedBy) {
this.lockedBy = lockedBy ;
}
/*
* end of field 'lockedBy' (String)
*/
/*
* Start of field 'oneShot' (Boolean)
*/
private Boolean oneShot = false;
@JsonProperty("oneShot")
public Boolean getOneShot() {
return oneShot;
}
@JsonProperty("oneShot")
public void setOneShot(Boolean oneShot) {
this.oneShot = oneShot ;
}
/*
* end of field 'oneShot' (Boolean)
*/
/*
* Start of field 'finished' (Boolean)
*/
private Boolean finished = false;
@JsonProperty("finished")
public Boolean getFinished() {
return finished;
}
@JsonProperty("finished")
public void setFinished(Boolean finished) {
this.finished = finished ;
}
/*
* end of field 'finished' (Boolean)
*/
/*
* 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 'lastStateChange' (Date)
*/
private Date lastStateChange;
@JsonProperty("lastStateChange")
public Date getLastStateChange() {
return lastStateChange;
}
@JsonProperty("lastStateChange")
public void setLastStateChange(Date lastStateChange) {
this.lastStateChange = lastStateChange ;
}
/*
* end of field 'lastStateChange' (Date)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((lastStateChange == null) ? 0 : lastStateChange.hashCode());
result = prime * result + ((appName == null) ? 0 : appName.hashCode());
result = prime * result + ((retryCount == null) ? 0 : retryCount.hashCode());
result = prime * result + ((description == null) ? 0 : description.hashCode());
result = prime * result + ((serverGroup == null) ? 0 : serverGroup.hashCode());
result = prime * result + ((finished == null) ? 0 : finished.hashCode());
result = prime * result + ((apiUser == null) ? 0 : apiUser.hashCode());
result = prime * result + ((lockedBy == null) ? 0 : lockedBy.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((parameters == null) ? 0 : parameters.hashCode());
result = prime * result + ((timeRangeSpecification == null) ? 0 : timeRangeSpecification.hashCode());
result = prime * result + ((oneShot == null) ? 0 : oneShot.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;
RaptureApplicationInstance other = (RaptureApplicationInstance) obj;
if (lastStateChange == null) {
if (other.lastStateChange != null) {
return false;
}
} else if (!lastStateChange.equals(other.lastStateChange)) {
return false;
}
if (appName == null) {
if (other.appName != null) {
return false;
}
} else if (!appName.equals(other.appName)) {
return false;
}
if (retryCount == null) {
if (other.retryCount != null) {
return false;
}
} else if (!retryCount.equals(other.retryCount)) {
return false;
}
if (description == null) {
if (other.description != null) {
return false;
}
} else if (!description.equals(other.description)) {
return false;
}
if (serverGroup == null) {
if (other.serverGroup != null) {
return false;
}
} else if (!serverGroup.equals(other.serverGroup)) {
return false;
}
if (finished == null) {
if (other.finished != null) {
return false;
}
} else if (!finished.equals(other.finished)) {
return false;
}
if (apiUser == null) {
if (other.apiUser != null) {
return false;
}
} else if (!apiUser.equals(other.apiUser)) {
return false;
}
if (lockedBy == null) {
if (other.lockedBy != null) {
return false;
}
} else if (!lockedBy.equals(other.lockedBy)) {
return false;
}
if (name == null) {
if (other.name != null) {
return false;
}
} else if (!name.equals(other.name)) {
return false;
}
if (parameters == null) {
if (other.parameters != null) {
return false;
}
} else if (!parameters.equals(other.parameters)) {
return false;
}
if (timeRangeSpecification == null) {
if (other.timeRangeSpecification != null) {
return false;
}
} else if (!timeRangeSpecification.equals(other.timeRangeSpecification)) {
return false;
}
if (oneShot == null) {
if (other.oneShot != null) {
return false;
}
} else if (!oneShot.equals(other.oneShot)) {
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(" lastStateChange= ");
Object o = lastStateChange;
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(" retryCount= ");
Object o = retryCount;
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(" description= ");
Object o = description;
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(" finished= ");
Object o = finished;
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(" apiUser= ");
Object o = apiUser;
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(" lockedBy= ");
Object o = lockedBy;
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(" name= ");
Object o = name;
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(" parameters= ");
Object o = parameters;
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(" timeRangeSpecification= ");
Object o = timeRangeSpecification;
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(" oneShot= ");
Object o = oneShot;
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 getStoragePath() {
// Add key fields
return new RaptureApplicationInstancePathBuilder()
.serverGroup(getServerGroup())
.name(getName())
.buildStoragePath();
}
@Override
public RaptureURI getStorageLocation() {
return new RaptureApplicationInstancePathBuilder()
.serverGroup(getServerGroup())
.name(getName())
.buildStorageLocation();
}
@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