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