Adding operations endpoint for sdn-c simulator
[integration/csit.git] / plans / so / integration-etsi-testing / so-simulators / sdnc-simulator / src / main / java / org / onap / so / sdncsimulator / models / OutputRequest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2019 Nordix Foundation.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.so.sdncsimulator.models;
21
22 import org.onap.sdnc.northbound.client.model.GenericResourceApiInstanceReference;
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonRootName;
26
27 /**
28  * @author Waqas Ikram (waqas.ikram@est.tech)
29  *
30  */
31 @JsonRootName("output")
32 public class OutputRequest {
33
34     @JsonProperty("response-message")
35     private String responseMessage;
36
37     @JsonProperty("ack-final-indicator")
38     private String ackFinalIndicator;
39
40     @JsonProperty("svc-request-id")
41     private String svcRequestId;
42
43     @JsonProperty("response-code")
44     private String responseCode;
45
46     @JsonProperty("service-response-information")
47     private GenericResourceApiInstanceReference serviceResponseInformation = null;
48
49     /**
50      * @return the responseMessage
51      */
52     public String getResponseMessage() {
53         return responseMessage;
54     }
55
56     /**
57      * @param responseMessage the responseMessage to set
58      */
59     public void setResponseMessage(final String responseMessage) {
60         this.responseMessage = responseMessage;
61     }
62
63     /**
64      * @return the ackFinalIndicator
65      */
66     public String getAckFinalIndicator() {
67         return ackFinalIndicator;
68     }
69
70     /**
71      * @param ackFinalIndicator the ackFinalIndicator to set
72      */
73     public void setAckFinalIndicator(final String ackFinalIndicator) {
74         this.ackFinalIndicator = ackFinalIndicator;
75     }
76
77     /**
78      * @return the svcRequestId
79      */
80     public String getSvcRequestId() {
81         return svcRequestId;
82     }
83
84     /**
85      * @param svcRequestId the svcRequestId to set
86      */
87     public void setSvcRequestId(final String svcRequestId) {
88         this.svcRequestId = svcRequestId;
89     }
90
91     /**
92      * @return the responseCode
93      */
94     public String getResponseCode() {
95         return responseCode;
96     }
97
98     /**
99      * @param responseCode the responseCode to set
100      */
101     public void setResponseCode(final String responseCode) {
102         this.responseCode = responseCode;
103     }
104
105     /**
106      * @return the serviceResponseInformation
107      */
108     public GenericResourceApiInstanceReference getServiceResponseInformation() {
109         return serviceResponseInformation;
110     }
111
112     /**
113      * @param serviceResponseInformation the serviceResponseInformation to set
114      */
115     public void setServiceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
116         this.serviceResponseInformation = serviceResponseInformation;
117     }
118
119     public OutputRequest responseMessage(final String responseMessage) {
120         this.responseMessage = responseMessage;
121         return this;
122     }
123
124     public OutputRequest ackFinalIndicator(final String ackFinalIndicator) {
125         this.ackFinalIndicator = ackFinalIndicator;
126         return this;
127     }
128
129     public OutputRequest svcRequestId(final String svcRequestId) {
130         this.svcRequestId = svcRequestId;
131         return this;
132     }
133
134     public OutputRequest responseCode(final String responseCode) {
135         this.responseCode = responseCode;
136         return this;
137     }
138
139     public OutputRequest serviceResponseInformation(
140             final GenericResourceApiInstanceReference serviceResponseInformation) {
141         this.serviceResponseInformation = serviceResponseInformation;
142         return this;
143     }
144
145
146     @JsonIgnore
147     @Override
148     public String toString() {
149         return "OutputRequest [responseMessage=" + responseMessage + ", ackFinalIndicator=" + ackFinalIndicator
150                 + ", svcRequestId=" + svcRequestId + ", responseCode=" + responseCode + ", serviceResponseInformation="
151                 + serviceResponseInformation + "]";
152     }
153
154
155 }