2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.multicloudsimulator.beans;
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;
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",
35 public class MulticloudRequest implements Serializable {
36 private static final long serialVersionUID = -5215028275577848311L;
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;
60 @JsonProperty("generic-vnf-id")
61 public String getGenericVnfId() {
65 @JsonProperty("generic-vnf-id")
66 public void setGenericVnfId(String genericVnfId) {
67 this.genericVnfId = genericVnfId;
70 @JsonProperty("vf-module-id")
71 public String getVfModuleId() {
75 @JsonProperty("vf-module-id")
76 public void setVfModuleId(String vfModuleId) {
77 this.vfModuleId = vfModuleId;
80 @JsonProperty("vf-module-model-invariant-id")
81 public String getVfModuleModelInvariantId() {
82 return vfModuleModelInvariantId;
85 @JsonProperty("vf-module-model-invariant-id")
86 public void setVfModuleModelInvariantId(String vfModuleModelInvariantId) {
87 this.vfModuleModelInvariantId = vfModuleModelInvariantId;
90 @JsonProperty("vf-module-model-version-id")
91 public String getVfModuleModelVersionId() {
92 return vfModuleModelVersionId;
95 @JsonProperty("vf-module-model-version-id")
96 public void setVfModuleModelVersionId(String vfModuleModelVersionId) {
97 this.vfModuleModelVersionId = vfModuleModelVersionId;
100 @JsonProperty("vf-module-model-customization-id")
101 public String getVfModuleModelCustomizationId() {
102 return vfModuleModelCustomizationId;
105 @JsonProperty("vf-module-model-customization-id")
106 public void setVfModuleModelCustomizationId(String vfModuleModelCustomizationId) {
107 this.vfModuleModelCustomizationId = vfModuleModelCustomizationId;
110 @JsonProperty("oof_directives")
111 public JsonNode getOofDirectives() {
112 return oofDirectives;
115 @JsonProperty("oof_directives")
116 public void setOofDirectives(JsonNode oofDirectives) {
117 this.oofDirectives = oofDirectives;
120 @JsonProperty("sdnc_directives")
121 public JsonNode getSdncDirectives() {
122 return sdncDirectives;
125 @JsonProperty("sdnc_directives")
126 public void setSdncDirectives(JsonNode sdncDirectives) {
127 this.sdncDirectives = sdncDirectives;
130 @JsonProperty("user_directives")
131 public JsonNode getUserDirectives() {
132 return userDirectives;
135 @JsonProperty("user_directives")
136 public void setUserDirectives(JsonNode userDirectives) {
137 this.userDirectives = userDirectives;
140 @JsonProperty("template_type")
141 public String getTemplateType() {
145 @JsonProperty("template_type")
146 public void setTemplateType(String templateType) {
147 this.templateType = templateType;
150 @JsonProperty("template_data")
151 public CreateStackParam getTemplateData() {
155 @JsonProperty("template_data")
156 public void setTemplateData(CreateStackParam templateData) {
157 this.templateData = templateData;
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();