8505ec9a746373f4cd3447ed382f5413f999a431
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / client / sdno / beans / SDNO.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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.openecomp.mso.client.sdno.beans;
22
23 import java.io.Serializable;
24 import java.util.HashMap;
25 import java.util.Map;
26
27 import com.fasterxml.jackson.annotation.JsonAnyGetter;
28 import com.fasterxml.jackson.annotation.JsonAnySetter;
29 import com.fasterxml.jackson.annotation.JsonIgnore;
30 import com.fasterxml.jackson.annotation.JsonInclude;
31 import com.fasterxml.jackson.annotation.JsonProperty;
32 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
33
34 @JsonInclude(JsonInclude.Include.NON_NULL)
35 @JsonPropertyOrder({
36     "operation",
37     "nodeLoc",
38     "nodeType",
39     "body"
40 })
41 public class SDNO implements Serializable
42 {
43
44     @JsonProperty("operation")
45     private String operation;
46     @JsonProperty("nodeLoc")
47     private String nodeLoc;
48     @JsonProperty("nodeType")
49     private String nodeType;
50     @JsonProperty("body")
51     private Body body;
52     @JsonIgnore
53     private Map<String, Object> additionalProperties = new HashMap<>();
54     private final static long serialVersionUID = -5303297382564282650L;
55
56     @JsonProperty("operation")
57     public String getOperation() {
58         return operation;
59     }
60
61     @JsonProperty("operation")
62     public void setOperation(String operation) {
63         this.operation = operation;
64     }
65     
66     @JsonProperty("nodeLoc")
67     public String getNodeLoc() {
68                 return nodeLoc;
69         }
70     
71     @JsonProperty("nodeLoc")
72         public void setNodeLoc(String nodeLoc) {
73                 this.nodeLoc = nodeLoc;
74         }
75     
76     public SDNO withNodeLoc(String nodeLoc) {
77         this.nodeLoc = nodeLoc;
78         return this;
79     }
80
81         public SDNO withOperation(String operation) {
82         this.operation = operation;
83         return this;
84     }
85
86     @JsonProperty("nodeType")
87     public String getNodeType() {
88         return nodeType;
89     }
90
91     @JsonProperty("nodeType")
92     public void setNodeType(String nodeType) {
93         this.nodeType = nodeType;
94     }
95
96     public SDNO withNodeType(String nodeType) {
97         this.nodeType = nodeType;
98         return this;
99     }
100
101     @JsonProperty("body")
102     public Body getBody() {
103         return body;
104     }
105
106     @JsonProperty("body")
107     public void setBody(Body body) {
108         this.body = body;
109     }
110
111     public SDNO withBody(Body body) {
112         this.body = body;
113         return this;
114     }
115
116     @JsonAnyGetter
117     public Map<String, Object> getAdditionalProperties() {
118         return this.additionalProperties;
119     }
120
121     @JsonAnySetter
122     public void setAdditionalProperty(String name, Object value) {
123         this.additionalProperties.put(name, value);
124     }
125
126     public SDNO SDNO (String name, Object value) {
127         this.additionalProperties.put(name, value);
128         return this;
129     }
130
131 }