Enhancements for the aai-common library
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / domain / notificationEvent / NotificationEvent.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
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
10  *
11  *    http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20 //
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
25 //
26
27 package org.onap.aai.domain.notificationEvent;
28
29 import org.w3c.dom.Element;
30
31 import javax.xml.bind.annotation.*;
32
33 /**
34  * <p>
35  * Java class for anonymous complex type.
36  *
37  * <p>
38  * The following schema fragment specifies the expected content contained within this class.
39  *
40  * <pre>
41  * &lt;complexType>
42  *   &lt;complexContent>
43  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
44  *       &lt;sequence>
45  *         &lt;element name="cambria.partition" type="{http://www.w3.org/2001/XMLSchema}string"/>
46  *         &lt;element name="event-header" minOccurs="0">
47  *           &lt;complexType>
48  *             &lt;complexContent>
49  *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
50  *                 &lt;sequence>
51  *                   &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
52  *                   &lt;element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}string"/>
53  *                   &lt;element name="source-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
54  *                   &lt;element name="domain" type="{http://www.w3.org/2001/XMLSchema}string"/>
55  *                   &lt;element name="sequence-number" type="{http://www.w3.org/2001/XMLSchema}string"/>
56  *                   &lt;element name="severity" type="{http://www.w3.org/2001/XMLSchema}string"/>
57  *                   &lt;element name="event-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
58  *                   &lt;element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
59  *                   &lt;element name="action" type="{http://www.w3.org/2001/XMLSchema}string"/>
60  *                   &lt;element name="entity-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
61  *                   &lt;element name="top-entity-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
62  *                   &lt;element name="entity-link" type="{http://www.w3.org/2001/XMLSchema}string"/>
63  *                   &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/>
64  *                 &lt;/sequence>
65  *               &lt;/restriction>
66  *             &lt;/complexContent>
67  *           &lt;/complexType>
68  *         &lt;/element>
69  *         &lt;any processContents='lax' namespace='##other' minOccurs="0"/>
70  *       &lt;/sequence>
71  *     &lt;/restriction>
72  *   &lt;/complexContent>
73  * &lt;/complexType>
74  * </pre>
75  *
76  *
77  */
78 @XmlAccessorType(XmlAccessType.FIELD)
79 @XmlType(name = "", propOrder = {"cambriaPartition", "eventHeader", "entity"})
80 @XmlRootElement(name = "NotificationEvent")
81 public class NotificationEvent {
82
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;
89
90     /**
91      * Gets the value of the eventHeader property.
92      *
93      * @return
94      *         possible object is
95      *         {@link EventHeader }
96      *
97      */
98     public EventHeader getEventHeader() {
99         return eventHeader;
100     }
101
102     /**
103      * Sets the value of the eventHeader property.
104      *
105      * @param value
106      *        allowed object is
107      *        {@link EventHeader }
108      *
109      */
110     public void setEventHeader(EventHeader value) {
111         this.eventHeader = value;
112     }
113
114     /**
115      * Gets the value of the any property.
116      *
117      * @return
118      *         possible object is
119      *         {@link Object }
120      *         {@link Element }
121      *
122      */
123     public Object getEntity() {
124         return entity;
125     }
126
127     /**
128      * Sets the value of the any property.
129      *
130      * @param value
131      *        allowed object is
132      *        {@link Object }
133      *        {@link Element }
134      *
135      */
136     public void setEntity(Object value) {
137         this.entity = value;
138     }
139
140     /**
141      * Gets the value of the cambriaPartition property.
142      *
143      * @return
144      *         possible object is
145      *         {@link String }
146      *
147      */
148     public String getCambriaPartition() {
149         return cambriaPartition;
150     }
151
152     /**
153      * Sets the value of the cambriaPartition property.
154      *
155      * @param value
156      *        allowed object is
157      *        {@link String }
158      *
159      */
160     public void setCambriaPartition(String value) {
161         this.cambriaPartition = value;
162     }
163
164     /**
165      * <p>
166      * Java class for anonymous complex type.
167      *
168      * <p>
169      * The following schema fragment specifies the expected content contained within this class.
170      *
171      * <pre>
172      * &lt;complexType>
173      *   &lt;complexContent>
174      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
175      *       &lt;sequence>
176      *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
177      *         &lt;element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}string"/>
178      *         &lt;element name="source-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
179      *         &lt;element name="domain" type="{http://www.w3.org/2001/XMLSchema}string"/>
180      *         &lt;element name="sequence-number" type="{http://www.w3.org/2001/XMLSchema}string"/>
181      *         &lt;element name="severity" type="{http://www.w3.org/2001/XMLSchema}string"/>
182      *         &lt;element name="event-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
183      *         &lt;element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
184      *         &lt;element name="action" type="{http://www.w3.org/2001/XMLSchema}string"/>
185      *         &lt;element name="entity-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
186      *         &lt;element name="top-entity-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
187      *         &lt;element name="entity-link" type="{http://www.w3.org/2001/XMLSchema}string"/>
188      *         &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/>
189      *       &lt;/sequence>
190      *     &lt;/restriction>
191      *   &lt;/complexContent>
192      * &lt;/complexType>
193      * </pre>
194      *
195      *
196      */
197     @XmlAccessorType(XmlAccessType.FIELD)
198     @XmlType(
199             name = "",
200             propOrder = {"id", "timestamp", "sourceName", "domain", "sequenceNumber", "severity", "eventType",
201                     "version", "action", "entityType", "topEntityType", "entityLink", "status"})
202     public static class EventHeader {
203
204         @XmlElement(required = true)
205         protected String id;
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;
230
231         /**
232          * Gets the value of the id property.
233          *
234          * @return
235          *         possible object is
236          *         {@link String }
237          *
238          */
239         public String getId() {
240             return id;
241         }
242
243         /**
244          * Sets the value of the id property.
245          *
246          * @param value
247          *        allowed object is
248          *        {@link String }
249          *
250          */
251         public void setId(String value) {
252             this.id = value;
253         }
254
255         /**
256          * Gets the value of the timestamp property.
257          *
258          * @return
259          *         possible object is
260          *         {@link String }
261          *
262          */
263         public String getTimestamp() {
264             return timestamp;
265         }
266
267         /**
268          * Sets the value of the timestamp property.
269          *
270          * @param value
271          *        allowed object is
272          *        {@link String }
273          *
274          */
275         public void setTimestamp(String value) {
276             this.timestamp = value;
277         }
278
279         /**
280          * Gets the value of the sourceName property.
281          *
282          * @return
283          *         possible object is
284          *         {@link String }
285          *
286          */
287         public String getSourceName() {
288             return sourceName;
289         }
290
291         /**
292          * Sets the value of the sourceName property.
293          *
294          * @param value
295          *        allowed object is
296          *        {@link String }
297          *
298          */
299         public void setSourceName(String value) {
300             this.sourceName = value;
301         }
302
303         /**
304          * Gets the value of the domain property.
305          *
306          * @return
307          *         possible object is
308          *         {@link String }
309          *
310          */
311         public String getDomain() {
312             return domain;
313         }
314
315         /**
316          * Sets the value of the domain property.
317          *
318          * @param value
319          *        allowed object is
320          *        {@link String }
321          *
322          */
323         public void setDomain(String value) {
324             this.domain = value;
325         }
326
327         /**
328          * Gets the value of the sequenceNumber property.
329          *
330          * @return
331          *         possible object is
332          *         {@link String }
333          *
334          */
335         public String getSequenceNumber() {
336             return sequenceNumber;
337         }
338
339         /**
340          * Sets the value of the sequenceNumber property.
341          *
342          * @param value
343          *        allowed object is
344          *        {@link String }
345          *
346          */
347         public void setSequenceNumber(String value) {
348             this.sequenceNumber = value;
349         }
350
351         /**
352          * Gets the value of the severity property.
353          *
354          * @return
355          *         possible object is
356          *         {@link String }
357          *
358          */
359         public String getSeverity() {
360             return severity;
361         }
362
363         /**
364          * Sets the value of the severity property.
365          *
366          * @param value
367          *        allowed object is
368          *        {@link String }
369          *
370          */
371         public void setSeverity(String value) {
372             this.severity = value;
373         }
374
375         /**
376          * Gets the value of the eventType property.
377          *
378          * @return
379          *         possible object is
380          *         {@link String }
381          *
382          */
383         public String getEventType() {
384             return eventType;
385         }
386
387         /**
388          * Sets the value of the eventType property.
389          *
390          * @param value
391          *        allowed object is
392          *        {@link String }
393          *
394          */
395         public void setEventType(String value) {
396             this.eventType = value;
397         }
398
399         /**
400          * Gets the value of the version property.
401          *
402          * @return
403          *         possible object is
404          *         {@link String }
405          *
406          */
407         public String getVersion() {
408             return version;
409         }
410
411         /**
412          * Sets the value of the version property.
413          *
414          * @param value
415          *        allowed object is
416          *        {@link String }
417          *
418          */
419         public void setVersion(String value) {
420             this.version = value;
421         }
422
423         /**
424          * Gets the value of the action property.
425          *
426          * @return
427          *         possible object is
428          *         {@link String }
429          *
430          */
431         public String getAction() {
432             return action;
433         }
434
435         /**
436          * Sets the value of the action property.
437          *
438          * @param value
439          *        allowed object is
440          *        {@link String }
441          *
442          */
443         public void setAction(String value) {
444             this.action = value;
445         }
446
447         /**
448          * Gets the value of the entityType property.
449          *
450          * @return
451          *         possible object is
452          *         {@link String }
453          *
454          */
455         public String getEntityType() {
456             return entityType;
457         }
458
459         /**
460          * Sets the value of the entityType property.
461          *
462          * @param value
463          *        allowed object is
464          *        {@link String }
465          *
466          */
467         public void setEntityType(String value) {
468             this.entityType = value;
469         }
470
471         /**
472          * Gets the value of the topEntityType property.
473          *
474          * @return
475          *         possible object is
476          *         {@link String }
477          *
478          */
479         public String getTopEntityType() {
480             return topEntityType;
481         }
482
483         /**
484          * Sets the value of the topEntityType property.
485          *
486          * @param value
487          *        allowed object is
488          *        {@link String }
489          *
490          */
491         public void setTopEntityType(String value) {
492             this.topEntityType = value;
493         }
494
495         /**
496          * Gets the value of the entityLink property.
497          *
498          * @return
499          *         possible object is
500          *         {@link String }
501          *
502          */
503         public String getEntityLink() {
504             return entityLink;
505         }
506
507         /**
508          * Sets the value of the entityLink property.
509          *
510          * @param value
511          *        allowed object is
512          *        {@link String }
513          *
514          */
515         public void setEntityLink(String value) {
516             this.entityLink = value;
517         }
518
519         /**
520          * Gets the value of the status property.
521          *
522          * @return
523          *         possible object is
524          *         {@link String }
525          *
526          */
527         public String getStatus() {
528             return status;
529         }
530
531         /**
532          * Sets the value of the status property.
533          *
534          * @param value
535          *        allowed object is
536          *        {@link String }
537          *
538          */
539         public void setStatus(String value) {
540             this.status = value;
541         }
542
543     }
544
545 }