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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
20 package org.onap.so.sdncsimulator.models;
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;
28 * @author Waqas Ikram (waqas.ikram@est.tech)
31 public class Output implements Serializable {
33 private static final long serialVersionUID = 3838047042980836468L;
35 @JsonProperty("response-message")
36 private String responseMessage;
38 @JsonProperty("ack-final-indicator")
39 private String ackFinalIndicator;
41 @JsonProperty("svc-request-id")
42 private String svcRequestId;
44 @JsonProperty("response-code")
45 private String responseCode;
47 @JsonProperty("service-response-information")
48 private GenericResourceApiInstanceReference serviceResponseInformation = null;
50 @JsonProperty("vnf-response-information")
51 private GenericResourceApiInstanceReference vnfResponseInformation = null;
54 * @return the responseMessage
56 public String getResponseMessage() {
57 return responseMessage;
61 * @param responseMessage the responseMessage to set
63 public void setResponseMessage(final String responseMessage) {
64 this.responseMessage = responseMessage;
68 * @return the ackFinalIndicator
70 public String getAckFinalIndicator() {
71 return ackFinalIndicator;
75 * @param ackFinalIndicator the ackFinalIndicator to set
77 public void setAckFinalIndicator(final String ackFinalIndicator) {
78 this.ackFinalIndicator = ackFinalIndicator;
82 * @return the svcRequestId
84 public String getSvcRequestId() {
89 * @param svcRequestId the svcRequestId to set
91 public void setSvcRequestId(final String svcRequestId) {
92 this.svcRequestId = svcRequestId;
96 * @return the responseCode
98 public String getResponseCode() {
103 * @param responseCode the responseCode to set
105 public void setResponseCode(final String responseCode) {
106 this.responseCode = responseCode;
110 * @return the serviceResponseInformation
112 public GenericResourceApiInstanceReference getServiceResponseInformation() {
113 return serviceResponseInformation;
117 * @param serviceResponseInformation the serviceResponseInformation to set
119 public void setServiceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
120 this.serviceResponseInformation = serviceResponseInformation;
124 * @return the vnfResponseInformation
126 public GenericResourceApiInstanceReference getVnfResponseInformation() {
127 return vnfResponseInformation;
131 * @param vnfResponseInformation the vnfResponseInformation to set
133 public void setVnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
134 this.vnfResponseInformation = vnfResponseInformation;
138 public Output responseMessage(final String responseMessage) {
139 this.responseMessage = responseMessage;
143 public Output ackFinalIndicator(final String ackFinalIndicator) {
144 this.ackFinalIndicator = ackFinalIndicator;
148 public Output svcRequestId(final String svcRequestId) {
149 this.svcRequestId = svcRequestId;
153 public Output responseCode(final String responseCode) {
154 this.responseCode = responseCode;
158 public Output serviceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
159 this.serviceResponseInformation = serviceResponseInformation;
163 public Output vnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
164 this.vnfResponseInformation = vnfResponseInformation;
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");
181 return sb.toString();