2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 package org.onap.ccsdk.sli.adaptors.aai.query;
24 import java.util.HashMap;
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;
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;
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;
52 @XmlAccessorType(XmlAccessType.FIELD)
53 @XmlType(name = "", propOrder = {
58 "l3-interface-ipv4-address-list",
59 "l3-interface-ipv6-address-list",
68 @XmlRootElement(name = "result")
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")
95 @XmlElement(name = "vserver")
96 private Vserver vserver;
98 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
100 @XmlElement(name = "cloud-region")
101 public CloudRegion getCloudRegion() {
105 @XmlElement(name = "cloud-region")
106 public void setCloudRegion(CloudRegion cloudRegion) {
107 this.cloudRegion = cloudRegion;
110 @XmlElement(name = "complex")
111 public Complex getComplex() {
115 @XmlElement(name = "complex")
116 public void setComplex(Complex complex) {
117 this.complex = complex;
120 @XmlElement(name = "configuration")
121 public Configuration getConfiguration() {
122 return configuration;
125 @XmlElement(name = "configuration")
126 public void setConfiguration(Configuration configuration) {
127 this.configuration = configuration;
130 @XmlElement(name = "generic-vnf")
131 public GenericVnf getGenericVnf ()
136 @XmlElement(name = "generic-vnf")
137 public void setGenericVnf (GenericVnf genericVnf)
139 this.genericVnf = genericVnf;
142 @JsonProperty("l3-interface-ipv4-address-list")
143 public L3InterfaceIpv4AddressList getL3InterfaceIpv4AddressList() {
144 return l3InterfaceIpv4AddressList;
147 @JsonProperty("l3-interface-ipv4-address-list")
148 public void setL3InterfaceIpv4AddressList(L3InterfaceIpv4AddressList l3InterfaceIpv4AddressList) {
149 this.l3InterfaceIpv4AddressList = l3InterfaceIpv4AddressList;
152 @JsonProperty("l3-interface-ipv6-address-list")
153 public L3InterfaceIpv6AddressList getL3InterfaceIpv6AddressList() {
154 return l3InterfaceIpv6AddressList;
157 @JsonProperty("l3-interface-ipv6-address-list")
158 public void setL3InterfaceIpv6AddressList(L3InterfaceIpv6AddressList l3InterfaceIpv6AddressList) {
159 this.l3InterfaceIpv6AddressList = l3InterfaceIpv6AddressList;
162 @XmlElement(name = "l3-network")
163 public L3Network getL3Network() {
167 @XmlElement(name = "l3-network")
168 public void setL3Network(L3Network l3Network) {
169 this.l3Network = l3Network;
172 @XmlElement(name = "l-interface")
173 public LInterface getLInterface() {
176 @XmlElement(name = "l-interface")
177 public void setLInterface(LInterface linterface) {
178 this.lInterface = linterface;
181 // @XmlElement(name = "owning-entity")
182 // public OwningEntity getOwningEntity() {
183 // return owningEntity;
186 // @XmlElement(name = "owning-entity")
187 // public void setOwningEntity(OwningEntity owningEntity) {
188 // this.owningEntity = owningEntity;
191 @XmlElement(name = "pserver")
192 public Pserver getPserver() {
195 @XmlElement(name = "pserver")
196 public void setPserver(Pserver pserver) {
197 this.pserver = pserver;
200 @XmlElement(name = "service-instance")
201 public ServiceInstance getServiceInstance() {
202 return serviceInstance;
205 @XmlElement(name = "service-instance")
206 public void setServiceInstance(ServiceInstance serviceInstance) {
207 this.serviceInstance = serviceInstance;
210 @XmlElement(name = "vnfc")
211 public Vnfc getVnfc() {
215 @XmlElement(name = "vnfc")
216 public void setVnfc(Vnfc vnfc) {
220 @XmlElement(name = "vserver")
221 public Vserver getVserver() {
225 @XmlElement(name = "vserver")
226 public void setVserver(Vserver vserver) {
227 this.vserver = vserver;
231 public String toString()
233 return " [generic-vnf = "+genericVnf+"]";
237 public Map<String, Object> getAdditionalProperties() {
238 return this.additionalProperties;
242 public void setAdditionalProperty(String name, Object value) {
243 this.additionalProperties.put(name, value);