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;
53 @JsonProperty("vf-module-response-information")
54 private GenericResourceApiInstanceReference vfModuleResponseInformation = null;
57 * @return the responseMessage
59 public String getResponseMessage() {
60 return responseMessage;
64 * @param responseMessage the responseMessage to set
66 public void setResponseMessage(final String responseMessage) {
67 this.responseMessage = responseMessage;
71 * @return the ackFinalIndicator
73 public String getAckFinalIndicator() {
74 return ackFinalIndicator;
78 * @param ackFinalIndicator the ackFinalIndicator to set
80 public void setAckFinalIndicator(final String ackFinalIndicator) {
81 this.ackFinalIndicator = ackFinalIndicator;
85 * @return the svcRequestId
87 public String getSvcRequestId() {
92 * @param svcRequestId the svcRequestId to set
94 public void setSvcRequestId(final String svcRequestId) {
95 this.svcRequestId = svcRequestId;
99 * @return the responseCode
101 public String getResponseCode() {
106 * @param responseCode the responseCode to set
108 public void setResponseCode(final String responseCode) {
109 this.responseCode = responseCode;
113 * @return the serviceResponseInformation
115 public GenericResourceApiInstanceReference getServiceResponseInformation() {
116 return serviceResponseInformation;
120 * @param serviceResponseInformation the serviceResponseInformation to set
122 public void setServiceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
123 this.serviceResponseInformation = serviceResponseInformation;
127 * @return the vnfResponseInformation
129 public GenericResourceApiInstanceReference getVnfResponseInformation() {
130 return vnfResponseInformation;
134 * @param vnfResponseInformation the vnfResponseInformation to set
136 public void setVnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
137 this.vnfResponseInformation = vnfResponseInformation;
141 public Output responseMessage(final String responseMessage) {
142 this.responseMessage = responseMessage;
146 public Output ackFinalIndicator(final String ackFinalIndicator) {
147 this.ackFinalIndicator = ackFinalIndicator;
151 public Output svcRequestId(final String svcRequestId) {
152 this.svcRequestId = svcRequestId;
156 public Output responseCode(final String responseCode) {
157 this.responseCode = responseCode;
161 public Output serviceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
162 this.serviceResponseInformation = serviceResponseInformation;
166 public Output vnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
167 this.vnfResponseInformation = vnfResponseInformation;
171 public Output vfModuleResponseInformation(final GenericResourceApiInstanceReference vfModuleResponseInformation) {
172 this.vfModuleResponseInformation = vfModuleResponseInformation;
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");
190 return sb.toString();