2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 TechMahindra
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.client.cds.beans;
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27 @JsonInclude(JsonInclude.Include.NON_NULL)
28 @JsonPropertyOrder({"config-deploy-properties", "resolution-key"})
29 public class ConfigDeployRequestPnf {
30 @JsonProperty("resolution-key")
31 private String resolutionKey;
33 @JsonProperty("config-deploy-properties")
34 private ConfigDeployPropertiesForPnf configDeployPropertiesForPnf;
36 public String getResolutionKey() {
40 public void setResolutionKey(String resolutionKey) {
41 this.resolutionKey = resolutionKey;
44 public ConfigDeployPropertiesForPnf getConfigDeployPropertiesForPnf() {
45 return configDeployPropertiesForPnf;
48 public void setConfigDeployPropertiesForPnf(ConfigDeployPropertiesForPnf configDeployPropertiesForPnf) {
49 this.configDeployPropertiesForPnf = configDeployPropertiesForPnf;
53 public String toString() {
54 final StringBuilder sb = new StringBuilder("{\"config-deploy-request\":{");
55 sb.append("\"resolution-key\":").append("\"").append(resolutionKey).append("\"");
56 sb.append(", \"config-deploy-properties\":").append(configDeployPropertiesForPnf.toString());