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