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.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;
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;
50 @XmlAccessorType(XmlAccessType.FIELD)
51 @XmlType(name = "", propOrder = {
55 "l3-interface-ipv4-address-list",
56 "l3-interface-ipv6-address-list",
65 @XmlRootElement(name = "result")
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")
88 @XmlElement(name = "vserver")
89 private Vserver vserver;
91 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
93 @XmlElement(name = "cloud-region")
94 public CloudRegion getCloudRegion() {
98 @XmlElement(name = "cloud-region")
99 public void setCloudRegion(CloudRegion cloudRegion) {
100 this.cloudRegion = cloudRegion;
103 @XmlElement(name = "complex")
104 public Complex getComplex() {
108 @XmlElement(name = "complex")
109 public void setComplex(Complex complex) {
110 this.complex = complex;
113 @XmlElement(name = "generic-vnf")
114 public GenericVnf getGenericVnf ()
119 @XmlElement(name = "generic-vnf")
120 public void setGenericVnf (GenericVnf genericVnf)
122 this.genericVnf = genericVnf;
125 @JsonProperty("l3-interface-ipv4-address-list")
126 public L3InterfaceIpv4AddressList getL3InterfaceIpv4AddressList() {
127 return l3InterfaceIpv4AddressList;
130 @JsonProperty("l3-interface-ipv4-address-list")
131 public void setL3InterfaceIpv4AddressList(L3InterfaceIpv4AddressList l3InterfaceIpv4AddressList) {
132 this.l3InterfaceIpv4AddressList = l3InterfaceIpv4AddressList;
135 @JsonProperty("l3-interface-ipv6-address-list")
136 public L3InterfaceIpv6AddressList getL3InterfaceIpv6AddressList() {
137 return l3InterfaceIpv6AddressList;
140 @JsonProperty("l3-interface-ipv6-address-list")
141 public void setL3InterfaceIpv6AddressList(L3InterfaceIpv6AddressList l3InterfaceIpv6AddressList) {
142 this.l3InterfaceIpv6AddressList = l3InterfaceIpv6AddressList;
145 @XmlElement(name = "l3-network")
146 public L3Network getL3Network() {
150 @XmlElement(name = "l3-network")
151 public void setL3Network(L3Network l3Network) {
152 this.l3Network = l3Network;
155 @XmlElement(name = "l-interface")
156 public LInterface getLInterface() {
159 @XmlElement(name = "l-interface")
160 public void setLInterface(LInterface linterface) {
161 this.lInterface = linterface;
164 @XmlElement(name = "pserver")
165 public Pserver getPserver() {
168 @XmlElement(name = "pserver")
169 public void setPserver(Pserver pserver) {
170 this.pserver = pserver;
173 @XmlElement(name = "service-instance")
174 public ServiceInstance getServiceInstance() {
175 return serviceInstance;
178 @XmlElement(name = "service-instance")
179 public void setServiceInstance(ServiceInstance serviceInstance) {
180 this.serviceInstance = serviceInstance;
183 @XmlElement(name = "vnfc")
184 public Vnfc getVnfc() {
188 @XmlElement(name = "vnfc")
189 public void setVnfc(Vnfc vnfc) {
193 @XmlElement(name = "vserver")
194 public Vserver getVserver() {
197 @XmlElement(name = "vserver")
198 public void setVserver(Vserver vserver) {
199 this.vserver = vserver;
203 public String toString()
205 return " [generic-vnf = "+genericVnf+"]";
209 public Map<String, Object> getAdditionalProperties() {
210 return this.additionalProperties;
214 public void setAdditionalProperty(String name, Object value) {
215 this.additionalProperties.put(name, value);