Replaced all tabs with spaces in java and pom.xml
[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({"action", "uri", "body"})
31 public class OperationBodyRequest {
32
33     @JsonProperty("action")
34     private String action;
35     @JsonProperty("uri")
36     private String uri;
37     @JsonProperty("body")
38     @JsonSerialize(using = OperationBodyRequestSerializer.class)
39     private Object body;
40
41
42     public String getAction() {
43         return action;
44     }
45
46     public void setAction(String action) {
47         this.action = action;
48     }
49
50     public OperationBodyRequest withAction(String action) {
51         this.action = action;
52         return this;
53     }
54
55     @JsonProperty("uri")
56     public String getUri() {
57         return uri;
58     }
59
60     @JsonProperty("uri")
61     public void setUri(String uri) {
62         this.uri = uri;
63     }
64
65     public OperationBodyRequest withUri(String uri) {
66         this.uri = uri;
67         return this;
68     }
69
70     @JsonProperty("body")
71     public Object getBody() {
72         return body;
73     }
74
75     @JsonProperty("body")
76     public void setBody(Object body) {
77         this.body = body;
78     }
79
80     public OperationBodyRequest withBody(Object body) {
81         this.body = body;
82         return this;
83     }
84
85 }