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