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 java.util.HashMap;
25 import com.fasterxml.jackson.annotation.JsonIgnore;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30 @JsonInclude(JsonInclude.Include.NON_NULL)
31 @JsonPropertyOrder({"service-instance-id", "pnf-id", "pnf-name", "service-model-uuid", "pnf-customization-uuid"})
33 public class ConfigAssignPropertiesForPnf {
35 @JsonProperty("service-instance-id")
36 private String serviceInstanceId;
38 @JsonProperty("pnf-id")
41 @JsonProperty("pnf-name")
42 private String pnfName;
44 @JsonProperty("service-model-uuid")
45 private String serviceModelUuid;
47 @JsonProperty("pnf-customization-uuid")
48 private String pnfCustomizationUuid;
51 private Map<String, Object> userParam = new HashMap<String, Object>();
53 public String getServiceInstanceId() {
54 return serviceInstanceId;
57 public void setServiceInstanceId(String serviceInstanceId) {
58 this.serviceInstanceId = serviceInstanceId;
61 public String getPnfId() {
65 public void setPnfId(String pnfId) {
69 public String getPnfName() {
73 public void setPnfName(String pnfName) {
74 this.pnfName = pnfName;
77 public String getServiceModelUuid() {
78 return serviceModelUuid;
81 public void setServiceModelUuid(String serviceModelUuid) {
82 this.serviceModelUuid = serviceModelUuid;
85 public String getPnfCustomizationUuid() {
86 return pnfCustomizationUuid;
89 public void setPnfCustomizationUuid(String pnfCustomizationUuid) {
90 this.pnfCustomizationUuid = pnfCustomizationUuid;
93 public Map<String, Object> getUserParam() {
94 return this.userParam;
97 public void setUserParam(String name, Object value) {
98 this.userParam.put(name, value);
102 public String toString() {
104 final StringBuilder sb = new StringBuilder("{");
105 sb.append("\"service-instance-id\":").append("\"").append(serviceInstanceId).append("\"");
106 sb.append(", \"pnf-id\":").append("\"").append(pnfId).append("\"");
107 sb.append(", \"pnf-name\":").append("\"").append(pnfName).append("\"");
108 sb.append(", \"service-model-uuid\":").append("\"").append(serviceModelUuid).append("\"");
109 sb.append(", \"pnf-customization-uuid\":").append("\"").append(pnfCustomizationUuid).append("\"");
110 for (Map.Entry<String, Object> entry : userParam.entrySet()) {
113 sb.append(entry.getKey());
117 sb.append(entry.getValue());
122 return sb.toString();