rapture.common.RaptureServerGroup 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.Set;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class RaptureServerGroup 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 '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 'jmxPort' (Integer)
*/
private Integer jmxPort;
@JsonProperty("jmxPort")
public Integer getJmxPort() {
return jmxPort;
}
@JsonProperty("jmxPort")
public void setJmxPort(Integer jmxPort) {
this.jmxPort = jmxPort ;
}
/*
* end of field 'jmxPort' (Integer)
*/
/*
* Start of field 'inclusions' (Set)
*/
private Set inclusions;
@JsonProperty("inclusions")
public Set getInclusions() {
return inclusions;
}
@JsonProperty("inclusions")
public void setInclusions(Set inclusions) {
this.inclusions = inclusions ;
}
/*
* end of field 'inclusions' (Set)
*/
/*
* Start of field 'exclusions' (Set)
*/
private Set exclusions;
@JsonProperty("exclusions")
public Set getExclusions() {
return exclusions;
}
@JsonProperty("exclusions")
public void setExclusions(Set exclusions) {
this.exclusions = exclusions ;
}
/*
* end of field 'exclusions' (Set)
*/
/*
* Start of field 'libraries' (Set)
*/
private Set libraries;
@JsonProperty("libraries")
public Set getLibraries() {
return libraries;
}
@JsonProperty("libraries")
public void setLibraries(Set libraries) {
this.libraries = libraries ;
}
/*
* end of field 'libraries' (Set)
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((jmxPort == null) ? 0 : jmxPort.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((libraries == null) ? 0 : libraries.hashCode());
result = prime * result + ((description == null) ? 0 : description.hashCode());
result = prime * result + ((exclusions == null) ? 0 : exclusions.hashCode());
result = prime * result + ((inclusions == null) ? 0 : inclusions.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;
RaptureServerGroup other = (RaptureServerGroup) obj;
if (jmxPort == null) {
if (other.jmxPort != null) {
return false;
}
} else if (!jmxPort.equals(other.jmxPort)) {
return false;
}
if (name == null) {
if (other.name != null) {
return false;
}
} else if (!name.equals(other.name)) {
return false;
}
if (libraries == null) {
if (other.libraries != null) {
return false;
}
} else if (!libraries.equals(other.libraries)) {
return false;
}
if (description == null) {
if (other.description != null) {
return false;
}
} else if (!description.equals(other.description)) {
return false;
}
if (exclusions == null) {
if (other.exclusions != null) {
return false;
}
} else if (!exclusions.equals(other.exclusions)) {
return false;
}
if (inclusions == null) {
if (other.inclusions != null) {
return false;
}
} else if (!inclusions.equals(other.inclusions)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" jmxPort= ");
Object o = jmxPort;
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(" libraries= ");
Object o = libraries;
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(" exclusions= ");
Object o = exclusions;
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(" inclusions= ");
Object o = inclusions;
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 RaptureServerGroupPathBuilder()
.name(getName())
.buildStoragePath();
}
@Override
public RaptureURI getStorageLocation() {
return new RaptureServerGroupPathBuilder()
.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