Isolate deprecated code in CCSDK aai-service
[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.Configuration;
36 import org.openecomp.aai.inventory.v11.GenericVnf;
37 import org.openecomp.aai.inventory.v11.L3InterfaceIpv4AddressList;
38 import org.openecomp.aai.inventory.v11.L3InterfaceIpv6AddressList;
39 import org.openecomp.aai.inventory.v11.L3Network;
40 import org.openecomp.aai.inventory.v11.LInterface;
41 //import org.openecomp.aai.inventory.v11.OwningEntity;
42 import org.openecomp.aai.inventory.v11.Pserver;
43 import org.openecomp.aai.inventory.v11.ServiceInstance;
44 import org.openecomp.aai.inventory.v11.Vnfc;
45 import org.openecomp.aai.inventory.v11.Vserver;
46
47 import com.fasterxml.jackson.annotation.JsonAnyGetter;
48 import com.fasterxml.jackson.annotation.JsonAnySetter;
49 import com.fasterxml.jackson.annotation.JsonIgnore;
50 import com.fasterxml.jackson.annotation.JsonProperty;
51
52 @XmlAccessorType(XmlAccessType.FIELD)
53 @XmlType(name = "", propOrder = {
54     "cloud-region",
55     "complex",
56         "configuration",
57     "generic-vnf",
58     "l3-interface-ipv4-address-list",
59     "l3-interface-ipv6-address-list",
60     "l3-network",
61     "l-interface",
62     "owning-entity",
63     "pserver",
64     "service-instance",
65     "vnfc",
66     "vserver"
67 })
68 @XmlRootElement(name = "result")
69 public class Result {
70
71     @XmlElement(name = "cloud-region")
72     private CloudRegion cloudRegion;
73     @XmlElement(name = "complex")
74     private Complex complex;
75         @XmlElement(name = "configuration")
76         private Configuration configuration;
77     @XmlElement(name = "generic-vnf")
78     private GenericVnf genericVnf;
79     @XmlElement(name = "l3-interface-ipv4-address-list")
80     private L3InterfaceIpv4AddressList l3InterfaceIpv4AddressList;
81     @XmlElement(name = "l3-interface-ipv6-address-list")
82     private L3InterfaceIpv6AddressList l3InterfaceIpv6AddressList;
83     @XmlElement(name = "l3-network")
84     private L3Network l3Network;
85     @XmlElement(name = "l-interface")
86     private LInterface lInterface;
87 //      @XmlElement(name = "owning-entity")
88 //      private OwningEntity owningEntity;
89     @XmlElement(name = "pserver")
90     private Pserver pserver;
91     @XmlElement(name = "service-instance")
92     private ServiceInstance serviceInstance;
93     @XmlElement(name = "vnfc")
94     private Vnfc vnfc;
95     @XmlElement(name = "vserver")
96     private Vserver vserver;
97     @JsonIgnore
98     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
99
100     @XmlElement(name = "cloud-region")
101     public CloudRegion getCloudRegion() {
102         return cloudRegion;
103     }
104
105     @XmlElement(name = "cloud-region")
106     public void setCloudRegion(CloudRegion cloudRegion) {
107         this.cloudRegion = cloudRegion;
108     }
109
110     @XmlElement(name = "complex")
111     public Complex getComplex() {
112         return complex;
113     }
114
115     @XmlElement(name = "complex")
116     public void setComplex(Complex complex) {
117         this.complex = complex;
118     }
119
120         @XmlElement(name = "configuration")
121         public Configuration getConfiguration() {
122                 return configuration;
123         }
124
125         @XmlElement(name = "configuration")
126         public void setConfiguration(Configuration configuration) {
127                 this.configuration = configuration;
128         }
129
130     @XmlElement(name = "generic-vnf")
131     public GenericVnf getGenericVnf ()
132     {
133         return genericVnf;
134     }
135
136     @XmlElement(name = "generic-vnf")
137     public void setGenericVnf (GenericVnf genericVnf)
138     {
139         this.genericVnf = genericVnf;
140     }
141
142     @JsonProperty("l3-interface-ipv4-address-list")
143     public L3InterfaceIpv4AddressList getL3InterfaceIpv4AddressList() {
144         return l3InterfaceIpv4AddressList;
145     }
146
147     @JsonProperty("l3-interface-ipv4-address-list")
148     public void setL3InterfaceIpv4AddressList(L3InterfaceIpv4AddressList l3InterfaceIpv4AddressList) {
149         this.l3InterfaceIpv4AddressList = l3InterfaceIpv4AddressList;
150     }
151
152     @JsonProperty("l3-interface-ipv6-address-list")
153     public L3InterfaceIpv6AddressList getL3InterfaceIpv6AddressList() {
154         return l3InterfaceIpv6AddressList;
155     }
156
157     @JsonProperty("l3-interface-ipv6-address-list")
158     public void setL3InterfaceIpv6AddressList(L3InterfaceIpv6AddressList l3InterfaceIpv6AddressList) {
159         this.l3InterfaceIpv6AddressList = l3InterfaceIpv6AddressList;
160     }
161
162     @XmlElement(name = "l3-network")
163     public L3Network getL3Network() {
164         return l3Network;
165     }
166
167     @XmlElement(name = "l3-network")
168     public void setL3Network(L3Network l3Network) {
169         this.l3Network = l3Network;
170     }
171
172     @XmlElement(name = "l-interface")
173     public LInterface getLInterface() {
174         return lInterface;
175     }
176     @XmlElement(name = "l-interface")
177     public void setLInterface(LInterface linterface) {
178         this.lInterface = linterface;
179     }
180
181 //      @XmlElement(name = "owning-entity")
182 //      public OwningEntity getOwningEntity() {
183 //              return owningEntity;
184 //      }
185
186 //      @XmlElement(name = "owning-entity")
187 //      public void setOwningEntity(OwningEntity owningEntity) {
188 //              this.owningEntity = owningEntity;
189 //      }
190
191     @XmlElement(name = "pserver")
192     public Pserver getPserver() {
193         return pserver;
194     }
195     @XmlElement(name = "pserver")
196     public void setPserver(Pserver pserver) {
197         this.pserver = pserver;
198     }
199
200     @XmlElement(name = "service-instance")
201     public ServiceInstance getServiceInstance() {
202         return serviceInstance;
203     }
204
205     @XmlElement(name = "service-instance")
206     public void setServiceInstance(ServiceInstance serviceInstance) {
207         this.serviceInstance = serviceInstance;
208     }
209
210     @XmlElement(name = "vnfc")
211     public Vnfc getVnfc() {
212         return vnfc;
213     }
214
215     @XmlElement(name = "vnfc")
216     public void setVnfc(Vnfc vnfc) {
217         this.vnfc = vnfc;
218     }
219
220     @XmlElement(name = "vserver")
221     public Vserver getVserver() {
222         return vserver;
223     }
224
225     @XmlElement(name = "vserver")
226     public void setVserver(Vserver vserver) {
227         this.vserver = vserver;
228     }
229
230     @Override
231     public String toString()
232     {
233         return " [generic-vnf = "+genericVnf+"]";
234     }
235
236     @JsonAnyGetter
237     public Map<String, Object> getAdditionalProperties() {
238         return this.additionalProperties;
239     }
240
241     @JsonAnySetter
242     public void setAdditionalProperty(String name, Object value) {
243         this.additionalProperties.put(name, value);
244     }
245 }