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 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;
28 * @author Waqas Ikram (waqas.ikram@est.tech)
31 @JsonRootName("output")
32 public class OutputRequest {
34 @JsonProperty("response-message")
35 private String responseMessage;
37 @JsonProperty("ack-final-indicator")
38 private String ackFinalIndicator;
40 @JsonProperty("svc-request-id")
41 private String svcRequestId;
43 @JsonProperty("response-code")
44 private String responseCode;
46 @JsonProperty("service-response-information")
47 private GenericResourceApiInstanceReference serviceResponseInformation = null;
50 * @return the responseMessage
52 public String getResponseMessage() {
53 return responseMessage;
57 * @param responseMessage the responseMessage to set
59 public void setResponseMessage(final String responseMessage) {
60 this.responseMessage = responseMessage;
64 * @return the ackFinalIndicator
66 public String getAckFinalIndicator() {
67 return ackFinalIndicator;
71 * @param ackFinalIndicator the ackFinalIndicator to set
73 public void setAckFinalIndicator(final String ackFinalIndicator) {
74 this.ackFinalIndicator = ackFinalIndicator;
78 * @return the svcRequestId
80 public String getSvcRequestId() {
85 * @param svcRequestId the svcRequestId to set
87 public void setSvcRequestId(final String svcRequestId) {
88 this.svcRequestId = svcRequestId;
92 * @return the responseCode
94 public String getResponseCode() {
99 * @param responseCode the responseCode to set
101 public void setResponseCode(final String responseCode) {
102 this.responseCode = responseCode;
106 * @return the serviceResponseInformation
108 public GenericResourceApiInstanceReference getServiceResponseInformation() {
109 return serviceResponseInformation;
113 * @param serviceResponseInformation the serviceResponseInformation to set
115 public void setServiceResponseInformation(final GenericResourceApiInstanceReference serviceResponseInformation) {
116 this.serviceResponseInformation = serviceResponseInformation;
119 public OutputRequest responseMessage(final String responseMessage) {
120 this.responseMessage = responseMessage;
124 public OutputRequest ackFinalIndicator(final String ackFinalIndicator) {
125 this.ackFinalIndicator = ackFinalIndicator;
129 public OutputRequest svcRequestId(final String svcRequestId) {
130 this.svcRequestId = svcRequestId;
134 public OutputRequest responseCode(final String responseCode) {
135 this.responseCode = responseCode;
139 public OutputRequest serviceResponseInformation(
140 final GenericResourceApiInstanceReference serviceResponseInformation) {
141 this.serviceResponseInformation = serviceResponseInformation;
148 public String toString() {
149 return "OutputRequest [responseMessage=" + responseMessage + ", ackFinalIndicator=" + ackFinalIndicator
150 + ", svcRequestId=" + svcRequestId + ", responseCode=" + responseCode + ", serviceResponseInformation="
151 + serviceResponseInformation + "]";