f2626e9e4385a7308d3f2a9a070bb6f79faebcb9
[so.git] / common / src / main / java / org / onap / so / client / aai / entities / singletransaction / OperationBodyRequest.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.aai.entities.singletransaction;
22
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 import com.fasterxml.jackson.annotation.JsonRawValue;
27 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
28
29 @JsonInclude(JsonInclude.Include.NON_NULL)
30 @JsonPropertyOrder({
31 "action",
32 "uri",
33 "body"
34 })
35 public class OperationBodyRequest {
36
37 @JsonProperty("action")
38 private String action;
39 @JsonProperty("uri")
40 private String uri;
41 @JsonProperty("body")
42 @JsonSerialize(using = OperationBodyRequestSerializer.class)
43 private Object body;
44
45
46 public String getAction() {
47         return action;
48 }
49
50 public void setAction(String action) {
51         this.action = action;
52 }
53
54 public OperationBodyRequest withAction(String action) {
55         this.action = action;
56         return this;
57 }
58 @JsonProperty("uri")
59 public String getUri() {
60 return uri;
61 }
62
63 @JsonProperty("uri")
64 public void setUri(String uri) {
65 this.uri = uri;
66 }
67
68 public OperationBodyRequest withUri(String uri) {
69 this.uri = uri;
70 return this;
71 }
72
73 @JsonProperty("body")
74 public Object getBody() {
75 return body;
76 }
77
78 @JsonProperty("body")
79 public void setBody(Object body) {
80 this.body = body;
81 }
82
83 public OperationBodyRequest withBody(Object body) {
84 this.body = body;
85 return this;
86 }
87
88 }