Added CSIT for Macroflow with HEAT
[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     @JsonProperty("vf-module-response-information")
54     private GenericResourceApiInstanceReference vfModuleResponseInformation = null;
55
56     /**
57      * @return the responseMessage
58      */
59     public String getResponseMessage() {
60         return responseMessage;
61     }
62
63     /**
64      * @param responseMessage the responseMessage to set
65      */
66     public void setResponseMessage(final String responseMessage) {
67         this.responseMessage = responseMessage;
68     }
69
70     /**
71      * @return the ackFinalIndicator
72      */
73     public String getAckFinalIndicator() {
74         return ackFinalIndicator;
75     }
76
77     /**
78      * @param ackFinalIndicator the ackFinalIndicator to set
79      */
80     public void setAckFinalIndicator(final String ackFinalIndicator) {
81         this.ackFinalIndicator = ackFinalIndicator;
82     }
83
84     /**
85      * @return the svcRequestId
86      */
87     public String getSvcRequestId() {
88         return svcRequestId;
89     }
90
91     /**
92      * @param svcRequestId the svcRequestId to set
93      */
94     public void setSvcRequestId(final String svcRequestId) {
95         this.svcRequestId = svcRequestId;
96     }
97
98     /**
99      * @return the responseCode
100      */
101     public String getResponseCode() {
102         return responseCode;
103     }
104
105     /**
106      * @param responseCode the responseCode to set
107      */
108     public void setResponseCode(final String responseCode) {
109         this.responseCode = responseCode;
110     }
111
112     /**
113      * @return the serviceResponseInformation
114      */
115     public GenericResourceApiInstanceReference getServiceResponseInformation() {
116         return serviceResponseInformation;
117     }
118
119     /**
120      * @param serviceResponseInformation the serviceResponseInformation to set
121      */
122     public void setServiceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
123         this.serviceResponseInformation = serviceResponseInformation;
124     }
125
126     /**
127      * @return the vnfResponseInformation
128      */
129     public GenericResourceApiInstanceReference getVnfResponseInformation() {
130         return vnfResponseInformation;
131     }
132
133     /**
134      * @param vnfResponseInformation the vnfResponseInformation to set
135      */
136     public void setVnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
137         this.vnfResponseInformation = vnfResponseInformation;
138     }
139
140
141     public Output responseMessage(final String responseMessage) {
142         this.responseMessage = responseMessage;
143         return this;
144     }
145
146     public Output ackFinalIndicator(final String ackFinalIndicator) {
147         this.ackFinalIndicator = ackFinalIndicator;
148         return this;
149     }
150
151     public Output svcRequestId(final String svcRequestId) {
152         this.svcRequestId = svcRequestId;
153         return this;
154     }
155
156     public Output responseCode(final String responseCode) {
157         this.responseCode = responseCode;
158         return this;
159     }
160
161     public Output serviceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
162         this.serviceResponseInformation = serviceResponseInformation;
163         return this;
164     }
165
166     public Output vnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
167         this.vnfResponseInformation = vnfResponseInformation;
168         return this;
169
170     }
171     public Output vfModuleResponseInformation(final GenericResourceApiInstanceReference vfModuleResponseInformation) {
172         this.vfModuleResponseInformation = vfModuleResponseInformation;
173         return this;
174
175     }
176
177     @JsonIgnore
178     @Override
179     public String toString() {
180         final StringBuilder sb = new StringBuilder();
181         sb.append("class OutputRequest {\n");
182         sb.append("    responseMessage: ").append(responseMessage).append("\n");
183         sb.append("    ackFinalIndicator: ").append(ackFinalIndicator).append("\n");
184         sb.append("    svcRequestId: ").append(svcRequestId).append("\n");
185         sb.append("    responseCode: ").append(responseCode).append("\n");
186         sb.append("    serviceResponseInformation: ").append(serviceResponseInformation).append("\n");
187         sb.append("    vnfResponseInformation: ").append(vnfResponseInformation).append("\n");
188         sb.append("    vfModuleResponseInformation: ").append(vfModuleResponseInformation).append("\n");
189         sb.append("}");
190         return sb.toString();
191     }
192
193
194
195 }