Updated XSD Model and path properties
[ccsdk/sli/adaptors.git] / aai-service / provider / src / main / java / org / onap / ccsdk / sli / adaptors / aai / query / Result.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : SDN-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                         reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.ccsdk.sli.adaptors.aai.query;
23
24 import java.util.HashMap;
25 import java.util.Map;
26
27 import javax.xml.bind.annotation.XmlAccessType;
28 import javax.xml.bind.annotation.XmlAccessorType;
29 import javax.xml.bind.annotation.XmlElement;
30 import javax.xml.bind.annotation.XmlRootElement;
31 import javax.xml.bind.annotation.XmlType;
32
33 import org.openecomp.aai.inventory.v11.CloudRegion;
34 import org.openecomp.aai.inventory.v11.Complex;
35 import org.openecomp.aai.inventory.v11.GenericVnf;
36 import org.openecomp.aai.inventory.v11.L3InterfaceIpv4AddressList;
37 import org.openecomp.aai.inventory.v11.L3InterfaceIpv6AddressList;
38 import org.openecomp.aai.inventory.v11.L3Network;
39 import org.openecomp.aai.inventory.v11.LInterface;
40 import org.openecomp.aai.inventory.v11.Pserver;
41 import org.openecomp.aai.inventory.v11.ServiceInstance;
42 import org.openecomp.aai.inventory.v11.Vnfc;
43 import org.openecomp.aai.inventory.v11.Vserver;
44
45 import com.fasterxml.jackson.annotation.JsonAnyGetter;
46 import com.fasterxml.jackson.annotation.JsonAnySetter;
47 import com.fasterxml.jackson.annotation.JsonIgnore;
48 import com.fasterxml.jackson.annotation.JsonProperty;
49
50 @XmlAccessorType(XmlAccessType.FIELD)
51 @XmlType(name = "", propOrder = {
52     "cloud-region",
53     "complex",
54     "generic-vnf",
55     "l3-interface-ipv4-address-list",
56     "l3-interface-ipv6-address-list",
57     "l3-network",
58     "l-interface",
59     "owning-entity",
60     "pserver",
61     "service-instance",
62     "vnfc",
63     "vserver"
64 })
65 @XmlRootElement(name = "result")
66 public class Result {
67
68     @XmlElement(name = "cloud-region")
69     private CloudRegion cloudRegion;
70     @XmlElement(name = "complex")
71     private Complex complex;
72     @XmlElement(name = "generic-vnf")
73     private GenericVnf genericVnf;
74     @XmlElement(name = "l3-interface-ipv4-address-list")
75     private L3InterfaceIpv4AddressList l3InterfaceIpv4AddressList;
76     @XmlElement(name = "l3-interface-ipv6-address-list")
77     private L3InterfaceIpv6AddressList l3InterfaceIpv6AddressList;
78     @XmlElement(name = "l3-network")
79     private L3Network l3Network;
80     @XmlElement(name = "l-interface")
81     private LInterface lInterface;
82     @XmlElement(name = "pserver")
83     private Pserver pserver;
84     @XmlElement(name = "service-instance")
85     private ServiceInstance serviceInstance;
86     @XmlElement(name = "vnfc")
87     private Vnfc vnfc;
88     @XmlElement(name = "vserver")
89     private Vserver vserver;
90     @JsonIgnore
91     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
92
93     @XmlElement(name = "cloud-region")
94     public CloudRegion getCloudRegion() {
95         return cloudRegion;
96     }
97
98     @XmlElement(name = "cloud-region")
99     public void setCloudRegion(CloudRegion cloudRegion) {
100         this.cloudRegion = cloudRegion;
101     }
102
103     @XmlElement(name = "complex")
104     public Complex getComplex() {
105         return complex;
106     }
107
108     @XmlElement(name = "complex")
109     public void setComplex(Complex complex) {
110         this.complex = complex;
111     }
112
113     @XmlElement(name = "generic-vnf")
114     public GenericVnf getGenericVnf ()
115     {
116         return genericVnf;
117     }
118
119     @XmlElement(name = "generic-vnf")
120     public void setGenericVnf (GenericVnf genericVnf)
121     {
122         this.genericVnf = genericVnf;
123     }
124
125     @JsonProperty("l3-interface-ipv4-address-list")
126     public L3InterfaceIpv4AddressList getL3InterfaceIpv4AddressList() {
127         return l3InterfaceIpv4AddressList;
128     }
129
130     @JsonProperty("l3-interface-ipv4-address-list")
131     public void setL3InterfaceIpv4AddressList(L3InterfaceIpv4AddressList l3InterfaceIpv4AddressList) {
132         this.l3InterfaceIpv4AddressList = l3InterfaceIpv4AddressList;
133     }
134
135     @JsonProperty("l3-interface-ipv6-address-list")
136     public L3InterfaceIpv6AddressList getL3InterfaceIpv6AddressList() {
137         return l3InterfaceIpv6AddressList;
138     }
139
140     @JsonProperty("l3-interface-ipv6-address-list")
141     public void setL3InterfaceIpv6AddressList(L3InterfaceIpv6AddressList l3InterfaceIpv6AddressList) {
142         this.l3InterfaceIpv6AddressList = l3InterfaceIpv6AddressList;
143     }
144
145     @XmlElement(name = "l3-network")
146     public L3Network getL3Network() {
147         return l3Network;
148     }
149
150     @XmlElement(name = "l3-network")
151     public void setL3Network(L3Network l3Network) {
152         this.l3Network = l3Network;
153     }
154
155     @XmlElement(name = "l-interface")
156     public LInterface getLInterface() {
157         return lInterface;
158     }
159     @XmlElement(name = "l-interface")
160     public void setLInterface(LInterface linterface) {
161         this.lInterface = linterface;
162     }
163
164     @XmlElement(name = "pserver")
165     public Pserver getPserver() {
166         return pserver;
167     }
168     @XmlElement(name = "pserver")
169     public void setPserver(Pserver pserver) {
170         this.pserver = pserver;
171     }
172
173     @XmlElement(name = "service-instance")
174     public ServiceInstance getServiceInstance() {
175         return serviceInstance;
176     }
177
178     @XmlElement(name = "service-instance")
179     public void setServiceInstance(ServiceInstance serviceInstance) {
180         this.serviceInstance = serviceInstance;
181     }
182
183     @XmlElement(name = "vnfc")
184     public Vnfc getVnfc() {
185         return vnfc;
186     }
187
188     @XmlElement(name = "vnfc")
189     public void setVnfc(Vnfc vnfc) {
190         this.vnfc = vnfc;
191     }
192
193     @XmlElement(name = "vserver")
194     public Vserver getVserver() {
195         return vserver;
196     }
197     @XmlElement(name = "vserver")
198     public void setVserver(Vserver vserver) {
199         this.vserver = vserver;
200     }
201
202     @Override
203     public String toString()
204     {
205         return " [generic-vnf = "+genericVnf+"]";
206     }
207
208     @JsonAnyGetter
209     public Map<String, Object> getAdditionalProperties() {
210         return this.additionalProperties;
211     }
212
213     @JsonAnySetter
214     public void setAdditionalProperty(String name, Object value) {
215         this.additionalProperties.put(name, value);
216     }
217 }