c5fc0307b259bc48a12740e2d464af7581839d7a
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / client / cds / beans / ConfigDeployRequestVnf.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({"config-deploy-properties", "resolution-key"})
9 public class ConfigDeployRequestVnf {
10     @JsonProperty("resolution-key")
11     private String resolutionKey;
12
13     @JsonProperty("config-deploy-properties")
14     private ConfigDeployPropertiesForVnf configDeployPropertiesForVnf;
15
16     public String getResolutionKey() {
17         return resolutionKey;
18     }
19
20     public void setResolutionKey(String resolutionKey) {
21         this.resolutionKey = resolutionKey;
22     }
23
24     public ConfigDeployPropertiesForVnf getConfigDeployPropertiesForVnf() {
25         return configDeployPropertiesForVnf;
26     }
27
28     public void setConfigDeployPropertiesForVnf(ConfigDeployPropertiesForVnf configDeployPropertiesForVnf) {
29         this.configDeployPropertiesForVnf = configDeployPropertiesForVnf;
30     }
31
32     @Override
33     public String toString() {
34         final StringBuilder sb = new StringBuilder("{\"config-deploy-request\":{");
35         sb.append("\"resolution-key\":").append("\"").append(resolutionKey).append("\"");
36         sb.append(", \"config-deploy-properties\":").append(configDeployPropertiesForVnf.toString());
37         sb.append('}');
38         sb.append('}');
39
40         return sb.toString();
41     }
42
43 }