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