Openstack adapter can't resolve HEAT parameter
[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 tenantId;
43         private String volumeGroupName;
44         private String volumeGroupId;
45         private String vnfType;
46         private String vnfVersion;
47         private String vfModuleType;
48         private String modelCustomizationUuid;
49         @XmlJavaTypeAdapter(MapAdapter.class)
50         private Map<String,Object> volumeGroupParams = new HashMap<>();
51         private Boolean failIfExists;
52         private Boolean enableBridge;
53         private Boolean suppressBackout;
54         private MsoRequest msoRequest = new MsoRequest();
55
56         public CreateVolumeGroupRequest() {
57                 super();
58         }
59
60         public String getCloudSiteId() {
61                 return cloudSiteId;
62         }
63
64         public void setCloudSiteId(String cloudSiteId) {
65                 this.cloudSiteId = cloudSiteId;
66         }
67
68         public String getTenantId() {
69                 return tenantId;
70         }
71
72         public void setTenantId(String tenantId) {
73                 this.tenantId = tenantId;
74         }
75
76         public String getVnfType() {
77                 return vnfType;
78         }
79
80         public void setVnfType(String vnfType) {
81                 this.vnfType = vnfType;
82         }
83
84         public String getVnfVersion() {
85                 return vnfVersion;
86         }
87
88         public void setVnfVersion(String vnfVersion) {
89                 this.vnfVersion = vnfVersion;
90         }
91
92         public String getVfModuleType() {
93                 return vfModuleType;
94         }
95
96         public void setVfModuleType(String vfModuleType) {
97                 this.vfModuleType = vfModuleType;
98         }
99
100         public Map<String, Object> getVolumeGroupParams() {
101                 return volumeGroupParams;
102         }
103
104         public void setVolumeGroupParams(Map<String, Object> volumeGroupParams) {
105                 this.volumeGroupParams = volumeGroupParams;
106         }
107
108         public String getVolumeGroupName() {
109                 return volumeGroupName;
110         }
111
112         public void setVolumeGroupName(String volumeGroupName) {
113                 this.volumeGroupName = volumeGroupName;
114         }
115
116         public String getVolumeGroupId() {
117                 return volumeGroupId;
118         }
119
120         public String getModelCustomizationUuid() {
121                 return this.modelCustomizationUuid;
122         }
123
124         public void setModelCustomizationUuid(String modelCustomizationUuid) {
125                 this.modelCustomizationUuid = modelCustomizationUuid;
126         }
127
128         public void setVolumeGroupId(String volumeGroupId) {
129                 this.volumeGroupId = volumeGroupId;
130         }
131
132         public Boolean getFailIfExists() {
133                 return failIfExists;
134         }
135
136         public void setFailIfExists(Boolean failIfExists) {
137                 this.failIfExists = failIfExists;
138         }
139
140         public Boolean getSuppressBackout() {
141                 return suppressBackout;
142         }
143
144         public void setSuppressBackout(Boolean suppressBackout) {
145                 this.suppressBackout = suppressBackout;
146         }
147
148         public MsoRequest getMsoRequest() {
149                 return msoRequest;
150         }
151
152         public void setMsoRequest(MsoRequest msoRequest) {
153                 this.msoRequest = msoRequest;
154         }
155
156         public Boolean getEnableBridge() {
157                 return enableBridge;
158         }
159
160         public void setEnableBridge(Boolean enableBridge) {
161                 this.enableBridge = enableBridge;
162         }
163 }