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