3689d34204691a66a68213a690e583aef28c89f9
[so.git] / adapters / mso-adapter-utils / src / main / java / org / onap / so / openstack / utils / MulticloudRequest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2019 Intel Corp. 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.openstack.utils;
22
23 import java.io.Serializable;
24 import com.fasterxml.jackson.annotation.JsonInclude;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27 import com.fasterxml.jackson.databind.JsonNode;
28 import com.woorea.openstack.heat.model.CreateStackParam;
29
30 import org.apache.commons.lang.builder.ToStringBuilder;
31
32 @JsonInclude(JsonInclude.Include.NON_NULL)
33 @JsonPropertyOrder({
34         "generic-vnf-id",
35         "vf-module-id",
36         "vf-module-model-invariant-id",
37         "vf-module-model-version-id",
38         "vf-module-model-customization-id",
39         "oof_directives",
40         "sdnc_directives",
41         "user_directives",
42         "template_type",
43         "template_data"
44 })
45 public class MulticloudRequest implements Serializable {
46     private final static long serialVersionUID = -5215028275577848311L;
47
48     @JsonProperty("generic-vnf-id")
49     private String genericVnfId;
50     @JsonProperty("vf-module-id")
51     private String vfModuleId;
52     @JsonProperty("vf-module-model-invariant-id")
53     private String vfModuleModelInvariantId;
54     @JsonProperty("vf-module-model-version-id")
55     private String vfModuleModelVersionId;
56     @JsonProperty("vf-module-model-customization-id")
57     private String vfModuleModelCustomizationId;
58     @JsonProperty("oof_directives")
59     private JsonNode oofDirectives;
60     @JsonProperty("sdnc_directives")
61     private JsonNode sdncDirectives;
62     @JsonProperty("user_directives")
63     private JsonNode userDirectives;
64     @JsonProperty("template_type")
65     private String templateType;
66     @JsonProperty("template_data")
67     private CreateStackParam templateData;
68
69
70     @JsonProperty("generic-vnf-id")
71     public String getGenericVnfId() {
72         return genericVnfId;
73     }
74
75     @JsonProperty("generic-vnf-id")
76     public void setGenericVnfId(String genericVnfId) {
77         this.genericVnfId = genericVnfId;
78     }
79
80     @JsonProperty("vf-module-id")
81     public String getVfModuleId() {
82         return vfModuleId;
83     }
84
85     @JsonProperty("vf-module-id")
86     public void setVfModuleId(String vfModuleId) {
87         this.vfModuleId = vfModuleId;
88     }
89
90     @JsonProperty("vf-module-model-invariant-id")
91     public String getVfModuleModelInvariantId() {
92         return vfModuleModelInvariantId;
93     }
94
95     @JsonProperty("vf-module-model-invariant-id")
96     public void setVfModuleModelInvariantId(String vfModuleModelInvariantId) {
97         this.vfModuleModelInvariantId = vfModuleModelInvariantId;
98     }
99
100     @JsonProperty("vf-module-model-version-id")
101     public String getVfModuleModelVersionId() {
102         return vfModuleModelVersionId;
103     }
104
105     @JsonProperty("vf-module-model-version-id")
106     public void setVfModuleModelVersionId(String vfModuleModelVersionId) {
107         this.vfModuleModelVersionId = vfModuleModelVersionId;
108     }
109
110     @JsonProperty("vf-module-model-customization-id")
111     public String getVfModuleModelCustomizationId() {
112         return vfModuleModelCustomizationId;
113     }
114
115     @JsonProperty("vf-module-model-customization-id")
116     public void setVfModuleModelCustomizationId(String vfModuleModelCustomizationId) {
117         this.vfModuleModelCustomizationId = vfModuleModelCustomizationId;
118     }
119
120     @JsonProperty("oof_directives")
121     public JsonNode getOofDirectives() {
122         return oofDirectives;
123     }
124
125     @JsonProperty("oof_directives")
126     public void setOofDirectives(JsonNode oofDirectives) {
127         this.oofDirectives = oofDirectives;
128     }
129
130     @JsonProperty("sdnc_directives")
131     public JsonNode getSdncDirectives() {
132         return sdncDirectives;
133     }
134
135     @JsonProperty("sdnc_directives")
136     public void setSdncDirectives(JsonNode sdncDirectives) {
137         this.sdncDirectives = sdncDirectives;
138     }
139
140     @JsonProperty("user_directives")
141     public JsonNode getUserDirectives() {
142         return userDirectives;
143     }
144
145     @JsonProperty("user_directives")
146     public void setUserDirectives(JsonNode userDirectives) {
147         this.userDirectives = userDirectives;
148     }
149
150     @JsonProperty("template_type")
151     public String getTemplateType() {
152         return templateType;
153     }
154
155     @JsonProperty("template_type")
156     public void setTemplateType(String templateType) {
157         this.templateType = templateType;
158     }
159
160     @JsonProperty("template_data")
161     public CreateStackParam getTemplateData() {
162         return templateData;
163     }
164
165     @JsonProperty("template_data")
166     public void setTemplateData(CreateStackParam templateData) {
167         this.templateData = templateData;
168     }
169
170     @Override
171     public String toString() {
172         return new ToStringBuilder(this).append("genericVnfId", genericVnfId)
173                 .append("vfModuleId", vfModuleId)
174                 .append("vfModuleModelInvariantId", vfModuleModelInvariantId)
175                 .append("vfModuleModelVersionId", vfModuleModelVersionId)
176                 .append("vfModuleModelCustomizationId", vfModuleModelCustomizationId)
177                 .append("oofDirectives", oofDirectives)
178                 .append("sdncDirectives", sdncDirectives)
179                 .append("userDirectives", userDirectives)
180                 .append("templateType", templateType)
181                 .append("templateData", templateData).toString();
182     }
183
184 }