Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / nwrest / CreateNetworkRequest.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.nwrest;
22
23
24
25 import java.util.HashMap;
26 import java.util.List;
27 import java.util.Map;
28 import javax.xml.bind.annotation.XmlRootElement;
29 import org.onap.so.entity.MsoRequest;
30 import org.onap.so.openstack.beans.Subnet;
31 import com.fasterxml.jackson.annotation.JsonIgnore;
32 import com.fasterxml.jackson.annotation.JsonProperty;
33 import com.fasterxml.jackson.annotation.JsonRootName;
34
35
36 /*
37  * README Map<String, String> elements when marshalled to XML produce a list of
38  * <entry><key>${MsoUtils.xmlEscape(key)}</key><value>${MsoUtils.xmlEscape(value)}</value></entry> elements. When
39  * marshalling to JSON they create a list of "${key}" : "${value}" pairs with no extra wrappers.
40  */
41 @JsonRootName("createNetworkRequest")
42 @XmlRootElement(name = "createNetworkRequest")
43 public class CreateNetworkRequest extends NetworkRequestCommon {
44     /**
45      * 
46      */
47     private static final long serialVersionUID = -8984362978831333521L;
48     private String cloudSiteId;
49     private String tenantId;
50     private String networkId;
51     private String networkName;
52     private String networkType;
53     private String networkTypeVersion;
54     private String modelCustomizationUuid;
55     private String networkTechnology = "NEUTRON";
56     private List<Subnet> subnets;
57     private ProviderVlanNetwork providerVlanNetwork;
58     private ContrailNetwork contrailNetwork;
59     private Boolean failIfExists = false;
60     private Boolean backout = true;
61     private Map<String, String> networkParams = new HashMap<>();
62     private MsoRequest msoRequest = new MsoRequest();
63     private boolean contrailRequest;
64
65     public CreateNetworkRequest() {
66         super();
67     }
68
69     public String getCloudSiteId() {
70         return cloudSiteId;
71     }
72
73     public void setCloudSiteId(String cloudSiteId) {
74         this.cloudSiteId = cloudSiteId;
75     }
76
77     public String getTenantId() {
78         return tenantId;
79     }
80
81     public void setTenantId(String tenantId) {
82         this.tenantId = tenantId;
83     }
84
85     public String getNetworkId() {
86         return networkId;
87     }
88
89     public void setNetworkId(String networkId) {
90         this.networkId = networkId;
91     }
92
93     public String getNetworkName() {
94         return networkName;
95     }
96
97     public void setNetworkName(String networkName) {
98         this.networkName = networkName;
99     }
100
101     public String getNetworkType() {
102         return networkType;
103     }
104
105     public void setNetworkType(String networkType) {
106         this.networkType = networkType;
107     }
108
109     public String getModelCustomizationUuid() {
110         return this.modelCustomizationUuid;
111     }
112
113     public void setModelCustomizationUuid(String modelCustomizationUuid) {
114         this.modelCustomizationUuid = modelCustomizationUuid;
115     }
116
117     public String getNetworkTypeVersion() {
118         return networkTypeVersion;
119     }
120
121     public void setNetworkTypeVersion(String networkTypeVersion) {
122         this.networkTypeVersion = networkTypeVersion;
123     }
124
125     public String getNetworkTechnology() {
126         return networkTechnology;
127     }
128
129     public void setNetworkTechnology(String networkTechnology) {
130         this.networkTechnology = networkTechnology;
131     }
132
133     public List<Subnet> getSubnets() {
134         return subnets;
135     }
136
137     public void setSubnets(List<Subnet> subnets) {
138         this.subnets = subnets;
139     }
140
141     public ProviderVlanNetwork getProviderVlanNetwork() {
142         return providerVlanNetwork;
143     }
144
145     public void setProviderVlanNetwork(ProviderVlanNetwork providerVlanNetwork) {
146         this.providerVlanNetwork = providerVlanNetwork;
147     }
148
149     public ContrailNetwork getContrailNetwork() {
150         return contrailNetwork;
151     }
152
153     public void setContrailNetwork(ContrailNetwork contrailNetwork) {
154         this.contrailNetwork = contrailNetwork;
155     }
156
157     public Boolean getFailIfExists() {
158         return failIfExists;
159     }
160
161     public void setFailIfExists(Boolean failIfExists) {
162         this.failIfExists = failIfExists;
163     }
164
165     public Boolean getBackout() {
166         return backout;
167     }
168
169     public void setBackout(Boolean backout) {
170         this.backout = backout;
171     }
172
173     public Map<String, String> getNetworkParams() {
174         return networkParams;
175     }
176
177     public void setNetworkParams(Map<String, String> networkParams) {
178         this.networkParams = networkParams;
179     }
180
181     public MsoRequest getMsoRequest() {
182         return msoRequest;
183     }
184
185     public void setMsoRequest(MsoRequest msoRequest) {
186         this.msoRequest = msoRequest;
187     }
188
189     public boolean isContrailRequest() {
190         return this.contrailRequest;
191     }
192
193     public void setContrailRequest(boolean contrailRequest) {
194         this.contrailRequest = contrailRequest;
195     }
196
197 }