*/
package org.onap.so.sdncsimulator.models;
+import java.io.Serializable;
import org.onap.sdnc.northbound.client.model.GenericResourceApiInstanceReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
* @author Waqas Ikram (waqas.ikram@est.tech)
*
*/
-public class Output {
+public class Output implements Serializable {
+
+ private static final long serialVersionUID = 3838047042980836468L;
@JsonProperty("response-message")
private String responseMessage;
@JsonProperty("service-response-information")
private GenericResourceApiInstanceReference serviceResponseInformation = null;
+ @JsonProperty("vnf-response-information")
+ private GenericResourceApiInstanceReference vnfResponseInformation = null;
+
+ @JsonProperty("vf-module-response-information")
+ private GenericResourceApiInstanceReference vfModuleResponseInformation = null;
+
/**
* @return the responseMessage
*/
this.serviceResponseInformation = serviceResponseInformation;
}
+ /**
+ * @return the vnfResponseInformation
+ */
+ public GenericResourceApiInstanceReference getVnfResponseInformation() {
+ return vnfResponseInformation;
+ }
+
+ /**
+ * @param vnfResponseInformation the vnfResponseInformation to set
+ */
+ public void setVnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
+ this.vnfResponseInformation = vnfResponseInformation;
+ }
+
+
public Output responseMessage(final String responseMessage) {
this.responseMessage = responseMessage;
return this;
return this;
}
+ public Output vnfResponseInformation(final GenericResourceApiInstanceReference vnfResponseInformation) {
+ this.vnfResponseInformation = vnfResponseInformation;
+ return this;
+
+ }
+ public Output vfModuleResponseInformation(final GenericResourceApiInstanceReference vfModuleResponseInformation) {
+ this.vfModuleResponseInformation = vfModuleResponseInformation;
+ return this;
+
+ }
@JsonIgnore
@Override
public String toString() {
- return "OutputRequest [responseMessage=" + responseMessage + ", ackFinalIndicator=" + ackFinalIndicator
- + ", svcRequestId=" + svcRequestId + ", responseCode=" + responseCode + ", serviceResponseInformation="
- + serviceResponseInformation + "]";
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class OutputRequest {\n");
+ sb.append(" responseMessage: ").append(responseMessage).append("\n");
+ sb.append(" ackFinalIndicator: ").append(ackFinalIndicator).append("\n");
+ sb.append(" svcRequestId: ").append(svcRequestId).append("\n");
+ sb.append(" responseCode: ").append(responseCode).append("\n");
+ sb.append(" serviceResponseInformation: ").append(serviceResponseInformation).append("\n");
+ sb.append(" vnfResponseInformation: ").append(vnfResponseInformation).append("\n");
+ sb.append(" vfModuleResponseInformation: ").append(vfModuleResponseInformation).append("\n");
+ sb.append("}");
+ return sb.toString();
}