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