rapture.common.model.RaptureEvent 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.model;
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 rapture.common.Scheme;
import rapture.object.Addressable;
import java.util.Set;
import rapture.common.model.IndexConfig;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
*
**/
@SuppressWarnings("all")
public class RaptureEvent implements RaptureTransferObject, Debugable ,Storable , Addressable {
/*
* Start of field 'uriFullPath' (String)
*/
private String uriFullPath;
@JsonProperty("uriFullPath")
public String getUriFullPath() {
return uriFullPath;
}
@JsonProperty("uriFullPath")
public void setUriFullPath(String uriFullPath) {
this.uriFullPath = uriFullPath ;
}
/*
* end of field 'uriFullPath' (String)
*/
/*
* Start of field 'scripts' (Set)
*/
private Set scripts;
@JsonProperty("scripts")
public Set getScripts() {
return scripts;
}
@JsonProperty("scripts")
public void setScripts(Set scripts) {
this.scripts = scripts ;
}
/*
* end of field 'scripts' (Set)
*/
/*
* Start of field 'messages' (Set)
*/
private Set messages;
@JsonProperty("messages")
public Set getMessages() {
return messages;
}
@JsonProperty("messages")
public void setMessages(Set messages) {
this.messages = messages ;
}
/*
* end of field 'messages' (Set)
*/
/*
* Start of field 'notifications' (Set)
*/
private Set notifications;
@JsonProperty("notifications")
public Set getNotifications() {
return notifications;
}
@JsonProperty("notifications")
public void setNotifications(Set notifications) {
this.notifications = notifications ;
}
/*
* end of field 'notifications' (Set)
*/
/*
* Start of field 'workflows' (Set)
*/
private Set workflows;
@JsonProperty("workflows")
public Set getWorkflows() {
return workflows;
}
@JsonProperty("workflows")
public void setWorkflows(Set workflows) {
this.workflows = workflows ;
}
/*
* end of field 'workflows' (Set)
*/
//@Override
public RaptureURI getAddressURI() {
return new RaptureURI(getStoragePath(), Scheme.EVENT);
// return new EVENTURI(getStoragePath());
}
public static final Scheme scheme = Scheme.EVENT;
//@Override
public Scheme getScheme() {
return scheme;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((messages == null) ? 0 : messages.hashCode());
result = prime * result + ((uriFullPath == null) ? 0 : uriFullPath.hashCode());
result = prime * result + ((workflows == null) ? 0 : workflows.hashCode());
result = prime * result + ((scripts == null) ? 0 : scripts.hashCode());
result = prime * result + ((notifications == null) ? 0 : notifications.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;
RaptureEvent other = (RaptureEvent) obj;
if (messages == null) {
if (other.messages != null) {
return false;
}
} else if (!messages.equals(other.messages)) {
return false;
}
if (uriFullPath == null) {
if (other.uriFullPath != null) {
return false;
}
} else if (!uriFullPath.equals(other.uriFullPath)) {
return false;
}
if (workflows == null) {
if (other.workflows != null) {
return false;
}
} else if (!workflows.equals(other.workflows)) {
return false;
}
if (scripts == null) {
if (other.scripts != null) {
return false;
}
} else if (!scripts.equals(other.scripts)) {
return false;
}
if (notifications == null) {
if (other.notifications != null) {
return false;
}
} else if (!notifications.equals(other.notifications)) {
return false;
}
return true;
}
/**/
public String debug() {
StringBuilder sb = new StringBuilder();
{
sb.append(" messages= ");
Object o = messages;
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(" uriFullPath= ");
Object o = uriFullPath;
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(" workflows= ");
Object o = workflows;
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(" scripts= ");
Object o = scripts;
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(" notifications= ");
Object o = notifications;
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 RaptureEventPathBuilder()
.uriFullPath(getUriFullPath())
.buildStoragePath();
}
@Override
public RaptureURI getStorageLocation() {
return new RaptureEventPathBuilder()
.uriFullPath(getUriFullPath())
.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