2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
22 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
23 // Any modifications to this file will be lost upon recompilation of the source schema.
24 // Generated on: 2016.01.06 at 05:38:00 PM EST
27 package org.onap.aai.domain.notificationEvent;
29 import org.w3c.dom.Element;
31 import javax.xml.bind.annotation.*;
35 * Java class for anonymous complex type.
38 * The following schema fragment specifies the expected content contained within this class.
43 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45 * <element name="cambria.partition" type="{http://www.w3.org/2001/XMLSchema}string"/>
46 * <element name="event-header" minOccurs="0">
49 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
51 * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
52 * <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}string"/>
53 * <element name="source-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
54 * <element name="domain" type="{http://www.w3.org/2001/XMLSchema}string"/>
55 * <element name="sequence-number" type="{http://www.w3.org/2001/XMLSchema}string"/>
56 * <element name="severity" type="{http://www.w3.org/2001/XMLSchema}string"/>
57 * <element name="event-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
58 * <element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
59 * <element name="action" type="{http://www.w3.org/2001/XMLSchema}string"/>
60 * <element name="entity-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
61 * <element name="top-entity-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
62 * <element name="entity-link" type="{http://www.w3.org/2001/XMLSchema}string"/>
63 * <element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/>
66 * </complexContent>
69 * <any processContents='lax' namespace='##other' minOccurs="0"/>
72 * </complexContent>
78 @XmlAccessorType(XmlAccessType.FIELD)
79 @XmlType(name = "", propOrder = {"cambriaPartition", "eventHeader", "entity"})
80 @XmlRootElement(name = "NotificationEvent")
81 public class NotificationEvent {
83 @XmlElement(name = "cambria.partition")
84 protected String cambriaPartition;
85 @XmlElement(name = "event-header")
86 protected EventHeader eventHeader;
87 @XmlAnyElement(lax = true)
88 protected Object entity;
91 * Gets the value of the eventHeader property.
95 * {@link EventHeader }
98 public EventHeader getEventHeader() {
103 * Sets the value of the eventHeader property.
107 * {@link EventHeader }
110 public void setEventHeader(EventHeader value) {
111 this.eventHeader = value;
115 * Gets the value of the any property.
123 public Object getEntity() {
128 * Sets the value of the any property.
136 public void setEntity(Object value) {
141 * Gets the value of the cambriaPartition property.
148 public String getCambriaPartition() {
149 return cambriaPartition;
153 * Sets the value of the cambriaPartition property.
160 public void setCambriaPartition(String value) {
161 this.cambriaPartition = value;
166 * Java class for anonymous complex type.
169 * The following schema fragment specifies the expected content contained within this class.
173 * <complexContent>
174 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
176 * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
177 * <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}string"/>
178 * <element name="source-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
179 * <element name="domain" type="{http://www.w3.org/2001/XMLSchema}string"/>
180 * <element name="sequence-number" type="{http://www.w3.org/2001/XMLSchema}string"/>
181 * <element name="severity" type="{http://www.w3.org/2001/XMLSchema}string"/>
182 * <element name="event-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
183 * <element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
184 * <element name="action" type="{http://www.w3.org/2001/XMLSchema}string"/>
185 * <element name="entity-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
186 * <element name="top-entity-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
187 * <element name="entity-link" type="{http://www.w3.org/2001/XMLSchema}string"/>
188 * <element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/>
191 * </complexContent>
197 @XmlAccessorType(XmlAccessType.FIELD)
200 propOrder = {"id", "timestamp", "sourceName", "domain", "sequenceNumber", "severity", "eventType",
201 "version", "action", "entityType", "topEntityType", "entityLink", "status"})
202 public static class EventHeader {
204 @XmlElement(required = true)
206 @XmlElement(required = true)
207 protected String timestamp;
208 @XmlElement(name = "source-name", required = true)
209 protected String sourceName;
210 @XmlElement(required = true)
211 protected String domain;
212 @XmlElement(name = "sequence-number", required = true)
213 protected String sequenceNumber;
214 @XmlElement(required = true)
215 protected String severity;
216 @XmlElement(name = "event-type", required = true)
217 protected String eventType;
218 @XmlElement(required = true)
219 protected String version;
220 @XmlElement(required = true)
221 protected String action;
222 @XmlElement(name = "entity-type", required = true)
223 protected String entityType;
224 @XmlElement(name = "top-entity-type", required = true)
225 protected String topEntityType;
226 @XmlElement(name = "entity-link", required = true)
227 protected String entityLink;
228 @XmlElement(required = true)
229 protected String status;
232 * Gets the value of the id property.
239 public String getId() {
244 * Sets the value of the id property.
251 public void setId(String value) {
256 * Gets the value of the timestamp property.
263 public String getTimestamp() {
268 * Sets the value of the timestamp property.
275 public void setTimestamp(String value) {
276 this.timestamp = value;
280 * Gets the value of the sourceName property.
287 public String getSourceName() {
292 * Sets the value of the sourceName property.
299 public void setSourceName(String value) {
300 this.sourceName = value;
304 * Gets the value of the domain property.
311 public String getDomain() {
316 * Sets the value of the domain property.
323 public void setDomain(String value) {
328 * Gets the value of the sequenceNumber property.
335 public String getSequenceNumber() {
336 return sequenceNumber;
340 * Sets the value of the sequenceNumber property.
347 public void setSequenceNumber(String value) {
348 this.sequenceNumber = value;
352 * Gets the value of the severity property.
359 public String getSeverity() {
364 * Sets the value of the severity property.
371 public void setSeverity(String value) {
372 this.severity = value;
376 * Gets the value of the eventType property.
383 public String getEventType() {
388 * Sets the value of the eventType property.
395 public void setEventType(String value) {
396 this.eventType = value;
400 * Gets the value of the version property.
407 public String getVersion() {
412 * Sets the value of the version property.
419 public void setVersion(String value) {
420 this.version = value;
424 * Gets the value of the action property.
431 public String getAction() {
436 * Sets the value of the action property.
443 public void setAction(String value) {
448 * Gets the value of the entityType property.
455 public String getEntityType() {
460 * Sets the value of the entityType property.
467 public void setEntityType(String value) {
468 this.entityType = value;
472 * Gets the value of the topEntityType property.
479 public String getTopEntityType() {
480 return topEntityType;
484 * Sets the value of the topEntityType property.
491 public void setTopEntityType(String value) {
492 this.topEntityType = value;
496 * Gets the value of the entityLink property.
503 public String getEntityLink() {
508 * Sets the value of the entityLink property.
515 public void setEntityLink(String value) {
516 this.entityLink = value;
520 * Gets the value of the status property.
527 public String getStatus() {
532 * Sets the value of the status property.
539 public void setStatus(String value) {