License agreement changes
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / client / cds / beans / ConfigDeployRequestPnf.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.onap.so.client.cds.beans;
22
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26
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;
32
33     @JsonProperty("config-deploy-properties")
34     private ConfigDeployPropertiesForPnf configDeployPropertiesForPnf;
35
36     public String getResolutionKey() {
37         return resolutionKey;
38     }
39
40     public void setResolutionKey(String resolutionKey) {
41         this.resolutionKey = resolutionKey;
42     }
43
44     public ConfigDeployPropertiesForPnf getConfigDeployPropertiesForPnf() {
45         return configDeployPropertiesForPnf;
46     }
47
48     public void setConfigDeployPropertiesForPnf(ConfigDeployPropertiesForPnf configDeployPropertiesForPnf) {
49         this.configDeployPropertiesForPnf = configDeployPropertiesForPnf;
50     }
51
52     @Override
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());
57         sb.append('}');
58         sb.append('}');
59
60         return sb.toString();
61     }
62
63 }