2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.client.sdno.beans;
23 import java.io.Serializable;
24 import java.util.HashMap;
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;
33 @JsonInclude(JsonInclude.Include.NON_NULL)
34 @JsonPropertyOrder({"operation", "nodeLoc", "nodeType", "body"})
35 public class SDNO implements Serializable {
37 @JsonProperty("operation")
38 private String operation;
39 @JsonProperty("nodeLoc")
40 private String nodeLoc;
41 @JsonProperty("nodeType")
42 private String nodeType;
46 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
47 private final static long serialVersionUID = -5303297382564282650L;
49 @JsonProperty("operation")
50 public String getOperation() {
54 @JsonProperty("operation")
55 public void setOperation(String operation) {
56 this.operation = operation;
59 @JsonProperty("nodeLoc")
60 public String getNodeLoc() {
64 @JsonProperty("nodeLoc")
65 public void setNodeLoc(String nodeLoc) {
66 this.nodeLoc = nodeLoc;
69 public SDNO withNodeLoc(String nodeLoc) {
70 this.nodeLoc = nodeLoc;
74 public SDNO withOperation(String operation) {
75 this.operation = operation;
79 @JsonProperty("nodeType")
80 public String getNodeType() {
84 @JsonProperty("nodeType")
85 public void setNodeType(String nodeType) {
86 this.nodeType = nodeType;
89 public SDNO withNodeType(String nodeType) {
90 this.nodeType = nodeType;
95 public Body getBody() {
100 public void setBody(Body body) {
104 public SDNO withBody(Body body) {
110 public Map<String, Object> getAdditionalProperties() {
111 return this.additionalProperties;
115 public void setAdditionalProperty(String name, Object value) {
116 this.additionalProperties.put(name, value);
119 public void setAdditionalProperties(Map<String, Object> map) {
120 this.additionalProperties = map;
123 public SDNO SDNO(String name, Object value) {
124 this.additionalProperties.put(name, value);