fb8fb2ed8481b7914139ea84f6d1a4343fce4da1
[so.git] /
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.vnfrest;
22
23 import java.util.HashMap;
24 import java.util.Map;
25 import javax.xml.bind.annotation.XmlAccessType;
26 import javax.xml.bind.annotation.XmlAccessorType;
27 import javax.xml.bind.annotation.XmlAnyElement;
28 import javax.xml.bind.annotation.XmlRootElement;
29 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
30 import org.onap.so.entity.MsoRequest;
31 import org.onap.so.openstack.mappers.MapAdapter;
32 import com.fasterxml.jackson.annotation.JsonRootName;
33
34 /*
35  * README Map<String, String> elements when marshalled to XML produce a list of
36  * <entry><key>${MsoUtils.xmlEscape(key)}</key><value>${MsoUtils.xmlEscape(value)}</value></entry> elements. When
37  * marshalling to JSON they create a list of "${key}" : "${value}" pairs with no extra wrappers.
38  */
39 @JsonRootName("createVfModuleRequest")
40 @XmlRootElement(name = "createVfModuleRequest")
41 @XmlAccessorType(XmlAccessType.FIELD)
42 public class CreateVfModuleRequest extends VfRequestCommon {
43     private String cloudSiteId;
44     private String cloudOwner;
45     private String tenantId;
46
47     private String vnfId;
48     private String vnfType;
49     private String vnfVersion;
50
51     private String vfModuleId;
52     private String vfModuleName;
53     private String vfModuleType;
54
55     private String volumeGroupId;
56     private String volumeGroupStackId;
57     private String baseVfModuleId;
58     private String baseVfModuleStackId;
59     private String modelCustomizationUuid;
60
61     private String requestType;
62     private Boolean failIfExists = false;
63     private Boolean backout = true;
64     private Boolean enableBridge;
65     @XmlJavaTypeAdapter(MapAdapter.class)
66     private Map<String, Object> vfModuleParams = new HashMap<>();
67     private MsoRequest msoRequest = new MsoRequest();
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 getCloudOwner() {
78         return cloudOwner;
79     }
80
81     public void setCloudOwner(String cloudOwner) {
82         this.cloudOwner = cloudOwner;
83     }
84
85     public String getTenantId() {
86         return tenantId;
87     }
88
89     public void setTenantId(String tenantId) {
90         this.tenantId = tenantId;
91     }
92
93     public String getVnfId() {
94         return vnfId;
95     }
96
97     public void setVnfId(String vnfId) {
98         this.vnfId = vnfId;
99     }
100
101     public String getVfModuleName() {
102         return vfModuleName;
103     }
104
105     public void setVfModuleName(String vfModuleName) {
106         this.vfModuleName = vfModuleName;
107     }
108
109     public String getVnfType() {
110         return vnfType;
111     }
112
113     public void setVnfType(String vnfType) {
114         this.vnfType = vnfType;
115     }
116
117     public String getVnfVersion() {
118         return vnfVersion;
119     }
120
121     public void setVnfVersion(String vnfVersion) {
122         this.vnfVersion = vnfVersion;
123     }
124
125     public String getVfModuleId() {
126         return vfModuleId;
127     }
128
129     public void setVfModuleId(String vfModuleId) {
130         this.vfModuleId = vfModuleId;
131     }
132
133     public String getVfModuleType() {
134         return vfModuleType;
135     }
136
137     public void setVfModuleType(String vfModuleType) {
138         this.vfModuleType = vfModuleType;
139     }
140
141     public String getVolumeGroupId() {
142         return volumeGroupId;
143     }
144
145     public void setVolumeGroupId(String volumeGroupId) {
146         this.volumeGroupId = volumeGroupId;
147     }
148
149     public String getVolumeGroupStackId() {
150         return volumeGroupStackId;
151     }
152
153     public void setVolumeGroupStackId(String volumeGroupStackId) {
154         this.volumeGroupStackId = volumeGroupStackId;
155     }
156
157     public String getBaseVfModuleId() {
158         return baseVfModuleId;
159     }
160
161     public void setBaseVfModuleId(String baseVfModuleId) {
162         this.baseVfModuleId = baseVfModuleId;
163     }
164
165     public String getBaseVfModuleStackId() {
166         return baseVfModuleStackId;
167     }
168
169     public void setBaseVfModuleStackId(String baseVfModuleStackId) {
170         this.baseVfModuleStackId = baseVfModuleStackId;
171     }
172
173     public String getModelCustomizationUuid() {
174         return this.modelCustomizationUuid;
175     }
176
177     public void setModelCustomizationUuid(String modelCustomizationUuid) {
178         this.modelCustomizationUuid = modelCustomizationUuid;
179     }
180
181     public String getRequestType() {
182         return requestType;
183     }
184
185     public void setRequestType(String requestType) {
186         this.requestType = requestType;
187     }
188
189     public Boolean getFailIfExists() {
190         return failIfExists;
191     }
192
193     public void setFailIfExists(Boolean failIfExists) {
194         this.failIfExists = failIfExists;
195     }
196
197     public Boolean getBackout() {
198         return backout;
199     }
200
201     public void setBackout(Boolean backout) {
202         this.backout = backout;
203     }
204
205     public Map<String, Object> getVfModuleParams() {
206         return vfModuleParams;
207     }
208
209     public void setVfModuleParams(Map<String, Object> vfModuleParams) {
210         this.vfModuleParams = vfModuleParams;
211     }
212
213     public MsoRequest getMsoRequest() {
214         return msoRequest;
215     }
216
217     public void setMsoRequest(MsoRequest msoRequest) {
218         this.msoRequest = msoRequest;
219     }
220
221     public Boolean getEnableBridge() {
222         return this.enableBridge;
223     }
224
225     public void setEnableBridge(Boolean enableBridge) {
226         this.enableBridge = enableBridge;
227     }
228 }