4635008d3f56c29c88451bf91288611b24febc25
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / client / cds / beans / ConfigDeployRequestPnf.java
1 package org.onap.so.client.cds.beans;
2
3 import com.fasterxml.jackson.annotation.JsonInclude;
4 import com.fasterxml.jackson.annotation.JsonProperty;
5 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
6
7 @JsonInclude(JsonInclude.Include.NON_NULL)
8 @JsonPropertyOrder({
9 "config-deploy-properties",
10 "resolution-key"
11 })
12 public class ConfigDeployRequestPnf {
13         @JsonProperty("resolution-key")
14         private String resolutionKey;
15
16         @JsonProperty("config-deploy-properties")
17         private ConfigDeployPropertiesForPnf configDeployPropertiesForPnf;
18
19         public String getResolutionKey() {
20                 return resolutionKey;
21         }
22
23         public void setResolutionKey(String resolutionKey) {
24                 this.resolutionKey = resolutionKey;
25         }
26
27         public ConfigDeployPropertiesForPnf getConfigDeployPropertiesForPnf() {
28                 return configDeployPropertiesForPnf;
29         }
30
31         public void setConfigDeployPropertiesForPnf(ConfigDeployPropertiesForPnf configDeployPropertiesForPnf) {
32                 this.configDeployPropertiesForPnf = configDeployPropertiesForPnf;
33         }
34
35         @Override
36         public String toString() {
37                 final StringBuilder sb = new StringBuilder("{\"config-deploy-request\":{");
38                 sb.append("\"resolution-key\":").append("\"").append(resolutionKey).append("\"");
39                 sb.append(", \"config-deploy-properties\":").append(configDeployPropertiesForPnf.toString());
40                 sb.append('}');
41                 sb.append('}');
42
43                 return sb.toString();
44         }
45
46 }