Containerization feature of SO
[so.git] / common / src / main / java / org / onap / so / client / ruby / beans / MsoRequest.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.ruby.beans;
22
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26
27 @JsonInclude(JsonInclude.Include.NON_NULL)
28 @JsonPropertyOrder({
29 "requestClientName",
30 "requestId",
31 "requestTime",
32 "sourceName",
33 "reason",
34 "action",
35 "workflowId",
36 "notification"
37 })
38 public class MsoRequest {
39
40 @JsonProperty("requestClientName")
41 private String requestClientName;
42 @JsonProperty("requestId")
43 private String requestId;
44 @JsonProperty("requestTime")
45 private String requestTime;
46 @JsonProperty("sourceName")
47 private String sourceName;
48 @JsonProperty("reason")
49 private String reason;
50 @JsonProperty("action")
51 private String action;
52 @JsonProperty("workflowId")
53 private String workflowId;
54 @JsonProperty("notification")
55 private String notification;
56
57 /**
58 * No args constructor for use in serialization
59
60 */
61 public MsoRequest() {
62  }
63
64 /**
65
66 * @param requestClientName
67 * @param requestTime
68 * @param reason
69 * @param requestId
70 * @param workflowId
71 * @param sourceName
72 * @param action
73 * @param notification
74 */
75 public MsoRequest(String requestClientName, String requestId, String requestTime, String sourceName, String reason, String action, String workflowId, String notification) {
76 super();
77 this.requestClientName = requestClientName;
78 this.requestId = requestId;
79 this.requestTime = requestTime;
80 this.sourceName = sourceName;
81 this.reason = reason;
82 this.action = action;
83 this.workflowId = workflowId;
84 this.notification = notification;
85  }
86
87 @JsonProperty("requestClientName")
88 public String getRequestClientName() {
89 return requestClientName;
90  }
91
92 @JsonProperty("requestClientName")
93 public void setRequestClientName(String requestClientName) {
94 this.requestClientName = requestClientName;
95  }
96
97 public MsoRequest withRequestClientName(String requestClientName) {
98 this.requestClientName = requestClientName;
99 return this;
100  }
101
102 @JsonProperty("requestId")
103 public String getRequestId() {
104 return requestId;
105  }
106
107 @JsonProperty("requestId")
108 public void setRequestId(String requestId) {
109 this.requestId = requestId;
110  }
111
112 public MsoRequest withRequestId(String requestId) {
113 this.requestId = requestId;
114 return this;
115  }
116
117 @JsonProperty("requestTime")
118 public String getRequestTime() {
119 return requestTime;
120  }
121
122 @JsonProperty("requestTime")
123 public void setRequestTime(String requestTime) {
124 this.requestTime = requestTime;
125  }
126
127 public MsoRequest withRequestTime(String requestTime) {
128 this.requestTime = requestTime;
129 return this;
130  }
131
132 @JsonProperty("sourceName")
133 public String getSourceName() {
134 return sourceName;
135  }
136
137 @JsonProperty("sourceName")
138 public void setSourceName(String sourceName) {
139 this.sourceName = sourceName;
140  }
141
142 public MsoRequest withSourceName(String sourceName) {
143 this.sourceName = sourceName;
144 return this;
145  }
146
147 @JsonProperty("reason")
148 public String getReason() {
149 return reason;
150  }
151
152 @JsonProperty("reason")
153 public void setReason(String reason) {
154 this.reason = reason;
155  }
156
157 public MsoRequest withReason(String reason) {
158 this.reason = reason;
159 return this;
160  }
161
162 @JsonProperty("action")
163 public String getAction() {
164 return action;
165  }
166
167 @JsonProperty("action")
168 public void setAction(String action) {
169 this.action = action;
170  }
171
172 public MsoRequest withAction(String action) {
173 this.action = action;
174 return this;
175  }
176
177 @JsonProperty("workflowId")
178 public String getWorkflowId() {
179 return workflowId;
180  }
181
182 @JsonProperty("workflowId")
183 public void setWorkflowId(String workflowId) {
184 this.workflowId = workflowId;
185  }
186
187 public MsoRequest withWorkflowId(String workflowId) {
188 this.workflowId = workflowId;
189 return this;
190  }
191
192 @JsonProperty("notification")
193 public String getNotification() {
194 return notification;
195  }
196
197 @JsonProperty("notification")
198 public void setNotification(String notification) {
199 this.notification = notification;
200  }
201
202 public MsoRequest withNotification(String notification) {
203 this.notification = notification;
204 return this;
205  }
206
207 }