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.openecomp.mso.client.ruby.beans;
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27 @JsonInclude(JsonInclude.Include.NON_NULL)
38 public class MsoRequest {
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;
58 * No args constructor for use in serialization
66 * @param requestClientName
75 public MsoRequest(String requestClientName, String requestId, String requestTime, String sourceName, String reason, String action, String workflowId, String notification) {
77 this.requestClientName = requestClientName;
78 this.requestId = requestId;
79 this.requestTime = requestTime;
80 this.sourceName = sourceName;
83 this.workflowId = workflowId;
84 this.notification = notification;
87 @JsonProperty("requestClientName")
88 public String getRequestClientName() {
89 return requestClientName;
92 @JsonProperty("requestClientName")
93 public void setRequestClientName(String requestClientName) {
94 this.requestClientName = requestClientName;
97 public MsoRequest withRequestClientName(String requestClientName) {
98 this.requestClientName = requestClientName;
102 @JsonProperty("requestId")
103 public String getRequestId() {
107 @JsonProperty("requestId")
108 public void setRequestId(String requestId) {
109 this.requestId = requestId;
112 public MsoRequest withRequestId(String requestId) {
113 this.requestId = requestId;
117 @JsonProperty("requestTime")
118 public String getRequestTime() {
122 @JsonProperty("requestTime")
123 public void setRequestTime(String requestTime) {
124 this.requestTime = requestTime;
127 public MsoRequest withRequestTime(String requestTime) {
128 this.requestTime = requestTime;
132 @JsonProperty("sourceName")
133 public String getSourceName() {
137 @JsonProperty("sourceName")
138 public void setSourceName(String sourceName) {
139 this.sourceName = sourceName;
142 public MsoRequest withSourceName(String sourceName) {
143 this.sourceName = sourceName;
147 @JsonProperty("reason")
148 public String getReason() {
152 @JsonProperty("reason")
153 public void setReason(String reason) {
154 this.reason = reason;
157 public MsoRequest withReason(String reason) {
158 this.reason = reason;
162 @JsonProperty("action")
163 public String getAction() {
167 @JsonProperty("action")
168 public void setAction(String action) {
169 this.action = action;
172 public MsoRequest withAction(String action) {
173 this.action = action;
177 @JsonProperty("workflowId")
178 public String getWorkflowId() {
182 @JsonProperty("workflowId")
183 public void setWorkflowId(String workflowId) {
184 this.workflowId = workflowId;
187 public MsoRequest withWorkflowId(String workflowId) {
188 this.workflowId = workflowId;
192 @JsonProperty("notification")
193 public String getNotification() {
197 @JsonProperty("notification")
198 public void setNotification(String notification) {
199 this.notification = notification;
202 public MsoRequest withNotification(String notification) {
203 this.notification = notification;