a1443f569a700a67949e10a994f549b5857d9d3a
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vnfrest / CreateVolumeGroupRequest.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.vnfrest;
22
23
24 import java.util.HashMap;
25 import java.util.Map;
26
27 import javax.xml.bind.annotation.XmlAccessType;
28 import javax.xml.bind.annotation.XmlAccessorType;
29 import javax.xml.bind.annotation.XmlRootElement;
30 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
31
32 import org.onap.so.entity.MsoRequest;
33 import org.onap.so.openstack.mappers.MapAdapter;
34
35 import com.fasterxml.jackson.annotation.JsonRootName;
36
37 @JsonRootName("createVolumeGroupRequest")
38 @XmlRootElement(name = "createVolumeGroupRequest")
39 @XmlAccessorType(XmlAccessType.FIELD)
40 public class CreateVolumeGroupRequest extends VfRequestCommon {
41         private String cloudSiteId;
42         private String cloudOwner;
43         private String tenantId;
44         private String volumeGroupName;
45         private String volumeGroupId;
46         private String vnfType;
47         private String vnfVersion;
48         private String vfModuleType;
49         private String modelCustomizationUuid;
50         @XmlJavaTypeAdapter(MapAdapter.class)
51         private Map<String,Object> volumeGroupParams = new HashMap<>();
52         private Boolean failIfExists;
53         private Boolean enableBridge;
54         private Boolean suppressBackout;
55         private MsoRequest msoRequest = new MsoRequest();
56
57         public CreateVolumeGroupRequest() {
58                 super();
59         }
60
61         public String getCloudSiteId() {
62                 return cloudSiteId;
63         }
64
65         public void setCloudSiteId(String cloudSiteId) {
66                 this.cloudSiteId = cloudSiteId;
67         }
68
69         public String getCloudOwner() {
70                 return cloudOwner;
71         }
72
73         public void setCloudOwner(String cloudOwner) {
74                 this.cloudOwner = cloudOwner;
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 getVnfType() {
86                 return vnfType;
87         }
88
89         public void setVnfType(String vnfType) {
90                 this.vnfType = vnfType;
91         }
92
93         public String getVnfVersion() {
94                 return vnfVersion;
95         }
96
97         public void setVnfVersion(String vnfVersion) {
98                 this.vnfVersion = vnfVersion;
99         }
100
101         public String getVfModuleType() {
102                 return vfModuleType;
103         }
104
105         public void setVfModuleType(String vfModuleType) {
106                 this.vfModuleType = vfModuleType;
107         }
108
109         public Map<String, Object> getVolumeGroupParams() {
110                 return volumeGroupParams;
111         }
112
113         public void setVolumeGroupParams(Map<String, Object> volumeGroupParams) {
114                 this.volumeGroupParams = volumeGroupParams;
115         }
116
117         public String getVolumeGroupName() {
118                 return volumeGroupName;
119         }
120
121         public void setVolumeGroupName(String volumeGroupName) {
122                 this.volumeGroupName = volumeGroupName;
123         }
124
125         public String getVolumeGroupId() {
126                 return volumeGroupId;
127         }
128
129         public String getModelCustomizationUuid() {
130                 return this.modelCustomizationUuid;
131         }
132
133         public void setModelCustomizationUuid(String modelCustomizationUuid) {
134                 this.modelCustomizationUuid = modelCustomizationUuid;
135         }
136
137         public void setVolumeGroupId(String volumeGroupId) {
138                 this.volumeGroupId = volumeGroupId;
139         }
140
141         public Boolean getFailIfExists() {
142                 return failIfExists;
143         }
144
145         public void setFailIfExists(Boolean failIfExists) {
146                 this.failIfExists = failIfExists;
147         }
148
149         public Boolean getSuppressBackout() {
150                 return suppressBackout;
151         }
152
153         public void setSuppressBackout(Boolean suppressBackout) {
154                 this.suppressBackout = suppressBackout;
155         }
156
157         public MsoRequest getMsoRequest() {
158                 return msoRequest;
159         }
160
161         public void setMsoRequest(MsoRequest msoRequest) {
162                 this.msoRequest = msoRequest;
163         }
164
165         public Boolean getEnableBridge() {
166                 return enableBridge;
167         }
168
169         public void setEnableBridge(Boolean enableBridge) {
170                 this.enableBridge = enableBridge;
171         }
172 }