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.openstack.utils;
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;
30 import org.apache.commons.lang.builder.ToStringBuilder;
32 @JsonInclude(JsonInclude.Include.NON_NULL)
36 "vf-module-model-invariant-id",
37 "vf-module-model-version-id",
38 "vf-module-model-customization-id",
45 public class MulticloudRequest implements Serializable {
46 private final static long serialVersionUID = -5215028275577848311L;
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;
70 @JsonProperty("generic-vnf-id")
71 public String getGenericVnfId() {
75 @JsonProperty("generic-vnf-id")
76 public void setGenericVnfId(String genericVnfId) {
77 this.genericVnfId = genericVnfId;
80 @JsonProperty("vf-module-id")
81 public String getVfModuleId() {
85 @JsonProperty("vf-module-id")
86 public void setVfModuleId(String vfModuleId) {
87 this.vfModuleId = vfModuleId;
90 @JsonProperty("vf-module-model-invariant-id")
91 public String getVfModuleModelInvariantId() {
92 return vfModuleModelInvariantId;
95 @JsonProperty("vf-module-model-invariant-id")
96 public void setVfModuleModelInvariantId(String vfModuleModelInvariantId) {
97 this.vfModuleModelInvariantId = vfModuleModelInvariantId;
100 @JsonProperty("vf-module-model-version-id")
101 public String getVfModuleModelVersionId() {
102 return vfModuleModelVersionId;
105 @JsonProperty("vf-module-model-version-id")
106 public void setVfModuleModelVersionId(String vfModuleModelVersionId) {
107 this.vfModuleModelVersionId = vfModuleModelVersionId;
110 @JsonProperty("vf-module-model-customization-id")
111 public String getVfModuleModelCustomizationId() {
112 return vfModuleModelCustomizationId;
115 @JsonProperty("vf-module-model-customization-id")
116 public void setVfModuleModelCustomizationId(String vfModuleModelCustomizationId) {
117 this.vfModuleModelCustomizationId = vfModuleModelCustomizationId;
120 @JsonProperty("oof_directives")
121 public JsonNode getOofDirectives() {
122 return oofDirectives;
125 @JsonProperty("oof_directives")
126 public void setOofDirectives(JsonNode oofDirectives) {
127 this.oofDirectives = oofDirectives;
130 @JsonProperty("sdnc_directives")
131 public JsonNode getSdncDirectives() {
132 return sdncDirectives;
135 @JsonProperty("sdnc_directives")
136 public void setSdncDirectives(JsonNode sdncDirectives) {
137 this.sdncDirectives = sdncDirectives;
140 @JsonProperty("user_directives")
141 public JsonNode getUserDirectives() {
142 return userDirectives;
145 @JsonProperty("user_directives")
146 public void setUserDirectives(JsonNode userDirectives) {
147 this.userDirectives = userDirectives;
150 @JsonProperty("template_type")
151 public String getTemplateType() {
155 @JsonProperty("template_type")
156 public void setTemplateType(String templateType) {
157 this.templateType = templateType;
160 @JsonProperty("template_data")
161 public CreateStackParam getTemplateData() {
165 @JsonProperty("template_data")
166 public void setTemplateData(CreateStackParam templateData) {
167 this.templateData = templateData;
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();