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