Merge "Added @Override annotation to method signature"
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / client / sdno / 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;
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     "nodeType",
38     "body"
39 })
40 public class SDNO implements Serializable
41 {
42
43     @JsonProperty("operation")
44     private String operation;
45     @JsonProperty("nodeType")
46     private String nodeType;
47     @JsonProperty("body")
48     private Body body;
49     @JsonIgnore
50     private Map<String, Object> additionalProperties = new HashMap<>();
51     private final static long serialVersionUID = -5303297382564282650L;
52
53     @JsonProperty("operation")
54     public String getOperation() {
55         return operation;
56     }
57
58     @JsonProperty("operation")
59     public void setOperation(String operation) {
60         this.operation = operation;
61     }
62
63     public SDNO withOperation(String operation) {
64         this.operation = operation;
65         return this;
66     }
67
68     @JsonProperty("nodeType")
69     public String getNodeType() {
70         return nodeType;
71     }
72
73     @JsonProperty("nodeType")
74     public void setNodeType(String nodeType) {
75         this.nodeType = nodeType;
76     }
77
78     public SDNO withNodeType(String nodeType) {
79         this.nodeType = nodeType;
80         return this;
81     }
82
83     @JsonProperty("body")
84     public Body getBody() {
85         return body;
86     }
87
88     @JsonProperty("body")
89     public void setBody(Body body) {
90         this.body = body;
91     }
92
93     public SDNO withBody(Body body) {
94         this.body = body;
95         return this;
96     }
97
98     @JsonAnyGetter
99     public Map<String, Object> getAdditionalProperties() {
100         return this.additionalProperties;
101     }
102
103     @JsonAnySetter
104     public void setAdditionalProperty(String name, Object value) {
105         this.additionalProperties.put(name, value);
106     }
107
108     public SDNO SDNO (String name, Object value) {
109         this.additionalProperties.put(name, value);
110         return this;
111     }
112
113 }