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