replace type specification for vnf async client
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / adapters / vnf / async / client / QueryVnfNotification.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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 package org.onap.so.adapters.vnf.async.client;
22
23 import java.util.ArrayList;
24 import java.util.List;
25 import javax.xml.bind.annotation.XmlAccessType;
26 import javax.xml.bind.annotation.XmlAccessorType;
27 import javax.xml.bind.annotation.XmlElement;
28 import javax.xml.bind.annotation.XmlType;
29
30
31 /**
32  * <p>
33  * Java class for queryVnfNotification complex type.
34  * 
35  * <p>
36  * The following schema fragment specifies the expected content contained within this class.
37  * 
38  * <pre>
39  * &lt;complexType name="queryVnfNotification">
40  *   &lt;complexContent>
41  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42  *       &lt;sequence>
43  *         &lt;element name="messageId" type="{http://www.w3.org/2001/XMLSchema}string"/>
44  *         &lt;element name="completed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
45  *         &lt;element name="exception" type="{http://org.onap.so/vnfNotify}msoExceptionCategory" minOccurs="0"/>
46  *         &lt;element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
47  *         &lt;element name="vnfExists" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
48  *         &lt;element name="vnfId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
49  *         &lt;element name="status" type="{http://org.onap.so/vnfNotify}vnfStatus" minOccurs="0"/>
50  *         &lt;element name="outputs" 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="entry" maxOccurs="unbounded" minOccurs="0">
56  *                     &lt;complexType>
57  *                       &lt;complexContent>
58  *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
59  *                           &lt;sequence>
60  *                             &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
61  *                             &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
62  *                           &lt;/sequence>
63  *                         &lt;/restriction>
64  *                       &lt;/complexContent>
65  *                     &lt;/complexType>
66  *                   &lt;/element>
67  *                 &lt;/sequence>
68  *               &lt;/restriction>
69  *             &lt;/complexContent>
70  *           &lt;/complexType>
71  *         &lt;/element>
72  *       &lt;/sequence>
73  *     &lt;/restriction>
74  *   &lt;/complexContent>
75  * &lt;/complexType>
76  * </pre>
77  * 
78  * 
79  */
80 @XmlAccessorType(XmlAccessType.FIELD)
81 @XmlType(name = "queryVnfNotification",
82         propOrder = {"messageId", "completed", "exception", "errorMessage", "vnfExists", "vnfId", "status", "outputs"})
83 public class QueryVnfNotification {
84
85     @XmlElement(required = true)
86     protected String messageId;
87     protected boolean completed;
88     protected MsoExceptionCategory exception;
89     protected String errorMessage;
90     protected Boolean vnfExists;
91     protected String vnfId;
92     protected VnfStatus status;
93     protected QueryVnfNotification.Outputs outputs;
94
95     /**
96      * Gets the value of the messageId property.
97      * 
98      * @return possible object is {@link String }
99      * 
100      */
101     public String getMessageId() {
102         return messageId;
103     }
104
105     /**
106      * Sets the value of the messageId property.
107      * 
108      * @param value allowed object is {@link String }
109      * 
110      */
111     public void setMessageId(String value) {
112         this.messageId = value;
113     }
114
115     /**
116      * Gets the value of the completed property.
117      * 
118      */
119     public boolean isCompleted() {
120         return completed;
121     }
122
123     /**
124      * Sets the value of the completed property.
125      * 
126      */
127     public void setCompleted(boolean value) {
128         this.completed = value;
129     }
130
131     /**
132      * Gets the value of the exception property.
133      * 
134      * @return possible object is {@link MsoExceptionCategory }
135      * 
136      */
137     public MsoExceptionCategory getException() {
138         return exception;
139     }
140
141     /**
142      * Sets the value of the exception property.
143      * 
144      * @param value allowed object is {@link MsoExceptionCategory }
145      * 
146      */
147     public void setException(MsoExceptionCategory value) {
148         this.exception = value;
149     }
150
151     /**
152      * Gets the value of the errorMessage property.
153      * 
154      * @return possible object is {@link String }
155      * 
156      */
157     public String getErrorMessage() {
158         return errorMessage;
159     }
160
161     /**
162      * Sets the value of the errorMessage property.
163      * 
164      * @param value allowed object is {@link String }
165      * 
166      */
167     public void setErrorMessage(String value) {
168         this.errorMessage = value;
169     }
170
171     /**
172      * Gets the value of the vnfExists property.
173      * 
174      * @return possible object is {@link Boolean }
175      * 
176      */
177     public Boolean isVnfExists() {
178         return vnfExists;
179     }
180
181     /**
182      * Sets the value of the vnfExists property.
183      * 
184      * @param value allowed object is {@link Boolean }
185      * 
186      */
187     public void setVnfExists(Boolean value) {
188         this.vnfExists = value;
189     }
190
191     /**
192      * Gets the value of the vnfId property.
193      * 
194      * @return possible object is {@link String }
195      * 
196      */
197     public String getVnfId() {
198         return vnfId;
199     }
200
201     /**
202      * Sets the value of the vnfId property.
203      * 
204      * @param value allowed object is {@link String }
205      * 
206      */
207     public void setVnfId(String value) {
208         this.vnfId = value;
209     }
210
211     /**
212      * Gets the value of the status property.
213      * 
214      * @return possible object is {@link VnfStatus }
215      * 
216      */
217     public VnfStatus getStatus() {
218         return status;
219     }
220
221     /**
222      * Sets the value of the status property.
223      * 
224      * @param value allowed object is {@link VnfStatus }
225      * 
226      */
227     public void setStatus(VnfStatus value) {
228         this.status = value;
229     }
230
231     /**
232      * Gets the value of the outputs property.
233      * 
234      * @return possible object is {@link QueryVnfNotification.Outputs }
235      * 
236      */
237     public QueryVnfNotification.Outputs getOutputs() {
238         return outputs;
239     }
240
241     /**
242      * Sets the value of the outputs property.
243      * 
244      * @param value allowed object is {@link QueryVnfNotification.Outputs }
245      * 
246      */
247     public void setOutputs(QueryVnfNotification.Outputs value) {
248         this.outputs = value;
249     }
250
251
252     /**
253      * <p>
254      * Java class for anonymous complex type.
255      * 
256      * <p>
257      * The following schema fragment specifies the expected content contained within this class.
258      * 
259      * <pre>
260      * &lt;complexType>
261      *   &lt;complexContent>
262      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
263      *       &lt;sequence>
264      *         &lt;element name="entry" maxOccurs="unbounded" minOccurs="0">
265      *           &lt;complexType>
266      *             &lt;complexContent>
267      *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
268      *                 &lt;sequence>
269      *                   &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
270      *                   &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
271      *                 &lt;/sequence>
272      *               &lt;/restriction>
273      *             &lt;/complexContent>
274      *           &lt;/complexType>
275      *         &lt;/element>
276      *       &lt;/sequence>
277      *     &lt;/restriction>
278      *   &lt;/complexContent>
279      * &lt;/complexType>
280      * </pre>
281      * 
282      * 
283      */
284     @XmlAccessorType(XmlAccessType.FIELD)
285     @XmlType(name = "", propOrder = {"entry"})
286     public static class Outputs {
287
288         protected List<QueryVnfNotification.Outputs.Entry> entry;
289
290         /**
291          * Gets the value of the entry property.
292          * 
293          * <p>
294          * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you
295          * make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE>
296          * method for the entry property.
297          * 
298          * <p>
299          * For example, to add a new item, do as follows:
300          * 
301          * <pre>
302          * getEntry().add(newItem);
303          * </pre>
304          * 
305          * 
306          * <p>
307          * Objects of the following type(s) are allowed in the list {@link QueryVnfNotification.Outputs.Entry }
308          * 
309          * 
310          */
311         public List<QueryVnfNotification.Outputs.Entry> getEntry() {
312             if (entry == null) {
313                 entry = new ArrayList<>();
314             }
315             return this.entry;
316         }
317
318
319         /**
320          * <p>
321          * Java class for anonymous complex type.
322          * 
323          * <p>
324          * The following schema fragment specifies the expected content contained within this class.
325          * 
326          * <pre>
327          * &lt;complexType>
328          *   &lt;complexContent>
329          *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
330          *       &lt;sequence>
331          *         &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
332          *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
333          *       &lt;/sequence>
334          *     &lt;/restriction>
335          *   &lt;/complexContent>
336          * &lt;/complexType>
337          * </pre>
338          * 
339          * 
340          */
341         @XmlAccessorType(XmlAccessType.FIELD)
342         @XmlType(name = "", propOrder = {"key", "value"})
343         public static class Entry {
344
345             protected String key;
346             protected String value;
347
348             /**
349              * Gets the value of the key property.
350              * 
351              * @return possible object is {@link String }
352              * 
353              */
354             public String getKey() {
355                 return key;
356             }
357
358             /**
359              * Sets the value of the key property.
360              * 
361              * @param value allowed object is {@link String }
362              * 
363              */
364             public void setKey(String value) {
365                 this.key = value;
366             }
367
368             /**
369              * Gets the value of the value property.
370              * 
371              * @return possible object is {@link String }
372              * 
373              */
374             public String getValue() {
375                 return value;
376             }
377
378             /**
379              * Sets the value of the value property.
380              * 
381              * @param value allowed object is {@link String }
382              * 
383              */
384             public void setValue(String value) {
385                 this.value = value;
386             }
387
388         }
389
390     }
391
392 }