2 * ============LICENSE_START=======================================================
3 * Copyright 2021 Huawei Technologies Co., Ltd.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 * ============LICENSE_END=========================================================
19 package org.onap.so.multicloudsimulator.beans;
21 import java.io.Serializable;
22 import org.apache.commons.lang3.builder.ToStringBuilder;
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 import com.fasterxml.jackson.databind.JsonNode;
27 import com.woorea.openstack.heat.model.CreateStackParam;
29 @JsonInclude(JsonInclude.Include.NON_NULL)
30 @JsonPropertyOrder({ "generic-vnf-id", "vf-module-id", "vf-module-model-invariant-id", "vf-module-model-version-id",
31 "vf-module-model-customization-id", "oof_directives", "sdnc_directives", "user_directives", "template_type",
33 public class MulticloudRequest implements Serializable {
34 private static final long serialVersionUID = -5215028275577848311L;
36 @JsonProperty("generic-vnf-id")
37 private String genericVnfId;
39 @JsonProperty("vf-module-id")
40 private String vfModuleId;
42 @JsonProperty("vf-module-model-invariant-id")
43 private String vfModuleModelInvariantId;
45 @JsonProperty("vf-module-model-version-id")
46 private String vfModuleModelVersionId;
48 @JsonProperty("vf-module-model-customization-id")
49 private String vfModuleModelCustomizationId;
51 @JsonProperty("oof_directives")
52 private JsonNode oofDirectives;
54 @JsonProperty("sdnc_directives")
55 private JsonNode sdncDirectives;
57 @JsonProperty("user_directives")
58 private JsonNode userDirectives;
60 @JsonProperty("template_type")
61 private String templateType;
63 @JsonProperty("template_data")
64 private CreateStackParam templateData;
66 public String getGenericVnfId() {
70 public void setGenericVnfId(final String genericVnfId) {
71 this.genericVnfId = genericVnfId;
74 public String getVfModuleId() {
78 public void setVfModuleId(final String vfModuleId) {
79 this.vfModuleId = vfModuleId;
82 public String getVfModuleModelInvariantId() {
83 return vfModuleModelInvariantId;
86 public void setVfModuleModelInvariantId(final String vfModuleModelInvariantId) {
87 this.vfModuleModelInvariantId = vfModuleModelInvariantId;
90 public String getVfModuleModelVersionId() {
91 return vfModuleModelVersionId;
94 public void setVfModuleModelVersionId(final String vfModuleModelVersionId) {
95 this.vfModuleModelVersionId = vfModuleModelVersionId;
98 public String getVfModuleModelCustomizationId() {
99 return vfModuleModelCustomizationId;
102 @JsonProperty("vf-module-model-customization-id")
103 public void setVfModuleModelCustomizationId(final String vfModuleModelCustomizationId) {
104 this.vfModuleModelCustomizationId = vfModuleModelCustomizationId;
107 public JsonNode getOofDirectives() {
108 return oofDirectives;
111 public void setOofDirectives(final JsonNode oofDirectives) {
112 this.oofDirectives = oofDirectives;
115 public JsonNode getSdncDirectives() {
116 return sdncDirectives;
119 public void setSdncDirectives(final JsonNode sdncDirectives) {
120 this.sdncDirectives = sdncDirectives;
123 public JsonNode getUserDirectives() {
124 return userDirectives;
127 public void setUserDirectives(final JsonNode userDirectives) {
128 this.userDirectives = userDirectives;
131 public String getTemplateType() {
135 public void setTemplateType(final String templateType) {
136 this.templateType = templateType;
139 public CreateStackParam getTemplateData() {
143 public void setTemplateData(CreateStackParam templateData) {
144 this.templateData = templateData;
148 public String toString() {
149 return new ToStringBuilder(this).append("genericVnfId", genericVnfId).append("vfModuleId", vfModuleId)
150 .append("vfModuleModelInvariantId", vfModuleModelInvariantId)
151 .append("vfModuleModelVersionId", vfModuleModelVersionId)
152 .append("vfModuleModelCustomizationId", vfModuleModelCustomizationId)
153 .append("oofDirectives", oofDirectives).append("sdncDirectives", sdncDirectives)
154 .append("userDirectives", userDirectives).append("templateType", templateType)
155 .append("templateData", templateData).toString();