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