d64b0b0c80702b380ab39d56e23974db4382d47c
[integration/csit.git] / plans / so / integration-etsi-testing / so-simulators / sdnc-simulator / src / main / java / org / onap / so / sdncsimulator / models / Output.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 java.io.Serializable;
23 import org.onap.sdnc.northbound.client.model.GenericResourceApiInstanceReference;
24 import com.fasterxml.jackson.annotation.JsonIgnore;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26
27 /**
28  * @author Waqas Ikram (waqas.ikram@est.tech)
29  *
30  */
31 public class Output implements Serializable {
32
33     private static final long serialVersionUID = 3838047042980836468L;
34
35     @JsonProperty("response-message")
36     private String responseMessage;
37
38     @JsonProperty("ack-final-indicator")
39     private String ackFinalIndicator;
40
41     @JsonProperty("svc-request-id")
42     private String svcRequestId;
43
44     @JsonProperty("response-code")
45     private String responseCode;
46
47     @JsonProperty("service-response-information")
48     private GenericResourceApiInstanceReference serviceResponseInformation = null;
49
50     @JsonProperty("vnf-response-information")
51     private GenericResourceApiInstanceReference vnfResponseInformation = null;
52
53     /**
54      * @return the responseMessage
55      */
56     public String getResponseMessage() {
57         return responseMessage;
58     }
59
60     /**
61      * @param responseMessage the responseMessage to set
62      */
63     public void setResponseMessage(final String responseMessage) {
64         this.responseMessage = responseMessage;
65     }
66
67     /**
68      * @return the ackFinalIndicator
69      */
70     public String getAckFinalIndicator() {
71         return ackFinalIndicator;
72     }
73
74     /**
75      * @param ackFinalIndicator the ackFinalIndicator to set
76      */
77     public void setAckFinalIndicator(final String ackFinalIndicator) {
78         this.ackFinalIndicator = ackFinalIndicator;
79     }
80
81     /**
82      * @return the svcRequestId
83      */
84     public String getSvcRequestId() {
85         return svcRequestId;
86     }
87
88     /**
89      * @param svcRequestId the svcRequestId to set
90      */
91     public void setSvcRequestId(final String svcRequestId) {
92         this.svcRequestId = svcRequestId;
93     }
94
95     /**
96      * @return the responseCode
97      */
98     public String getResponseCode() {
99         return responseCode;
100     }
101
102     /**
103      * @param responseCode the responseCode to set
104      */
105     public void setResponseCode(final String responseCode) {
106         this.responseCode = responseCode;
107     }
108
109     /**
110      * @return the serviceResponseInformation
111      */
112     public GenericResourceApiInstanceReference getServiceResponseInformation() {
113         return serviceResponseInformation;
114     }
115
116     /**
117      * @param serviceResponseInformation the serviceResponseInformation to set
118      */
119     public void setServiceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
120         this.serviceResponseInformation = serviceResponseInformation;
121     }
122
123     /**
124      * @return the vnfResponseInformation
125      */
126     public GenericResourceApiInstanceReference getVnfResponseInformation() {
127         return vnfResponseInformation;
128     }
129
130     /**
131      * @param vnfResponseInformation the vnfResponseInformation to set
132      */
133     public void setVnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
134         this.vnfResponseInformation = vnfResponseInformation;
135     }
136
137
138     public Output responseMessage(final String responseMessage) {
139         this.responseMessage = responseMessage;
140         return this;
141     }
142
143     public Output ackFinalIndicator(final String ackFinalIndicator) {
144         this.ackFinalIndicator = ackFinalIndicator;
145         return this;
146     }
147
148     public Output svcRequestId(final String svcRequestId) {
149         this.svcRequestId = svcRequestId;
150         return this;
151     }
152
153     public Output responseCode(final String responseCode) {
154         this.responseCode = responseCode;
155         return this;
156     }
157
158     public Output serviceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
159         this.serviceResponseInformation = serviceResponseInformation;
160         return this;
161     }
162
163     public Output vnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
164         this.vnfResponseInformation = vnfResponseInformation;
165         return this;
166
167     }
168
169     @JsonIgnore
170     @Override
171     public String toString() {
172         final StringBuilder sb = new StringBuilder();
173         sb.append("class OutputRequest {\n");
174         sb.append("    responseMessage: ").append(responseMessage).append("\n");
175         sb.append("    ackFinalIndicator: ").append(ackFinalIndicator).append("\n");
176         sb.append("    svcRequestId: ").append(svcRequestId).append("\n");
177         sb.append("    responseCode: ").append(responseCode).append("\n");
178         sb.append("    serviceResponseInformation: ").append(serviceResponseInformation).append("\n");
179         sb.append("    vnfResponseInformation: ").append(vnfResponseInformation).append("\n");
180         sb.append("}");
181         return sb.toString();
182     }
183
184
185
186 }