2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.so.adapters.sdncrest;
23 import java.io.Serializable;
24 import javax.xml.bind.annotation.XmlElement;
25 import javax.xml.bind.annotation.XmlRootElement;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonInclude.Include;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29 import com.fasterxml.jackson.annotation.JsonRootName;
31 // NOTE: the JAXB (XML) annotations are required with JBoss AS7 and RESTEasy,
32 // even though we are using JSON exclusively. The @NoJackson annotation
33 // is also required in this environment.
36 * SDNC adapter request for "agnostic" API services. The target action is determined by a service type and an operation.
38 @JsonRootName("SDNCServiceRequest")
39 @JsonInclude(Include.NON_NULL)
40 @XmlRootElement(name = "SDNCServiceRequest")
41 public class SDNCServiceRequest extends SDNCRequestCommon implements Serializable {
42 private static final long serialVersionUID = 1L;
44 // Request Information specified by SDNC "agnostic" API
45 private RequestInformation requestInformation;
47 // Service Information specified by: SDNC "agnostic" API
48 private ServiceInformation serviceInformation;
50 // The SDNC service type specified by SDNC "agnostic" API
51 private String sdncService;
53 // The SDNC operation specified by SDNC "agnostic" API
54 private String sdncOperation;
56 // The SDNC service data type specified by SDNC "agnostic" API
57 private String sdncServiceDataType;
59 // The SDNC service data specified by SDNC "agnostic" API
60 private String sdncServiceData;
62 @JsonProperty("requestInformation")
63 @XmlElement(name = "requestInformation")
64 public RequestInformation getRequestInformation() {
65 return requestInformation;
68 @JsonProperty("requestInformation")
69 public void setRequestInformation(RequestInformation requestInformation) {
70 this.requestInformation = requestInformation;
73 @JsonProperty("serviceInformation")
74 @XmlElement(name = "serviceInformation")
75 public ServiceInformation getServiceInformation() {
76 return serviceInformation;
79 @JsonProperty("serviceInformation")
80 public void setServiceInformation(ServiceInformation serviceInformation) {
81 this.serviceInformation = serviceInformation;
84 @JsonProperty("sdncService")
85 @XmlElement(name = "sdncService")
86 public String getSdncService() {
90 @JsonProperty("sdncService")
91 public void setSdncService(String sdncService) {
92 this.sdncService = sdncService;
95 @JsonProperty("sdncOperation")
96 @XmlElement(name = "sdncOperation")
97 public String getSdncOperation() {
101 @JsonProperty("sdncOperation")
102 public void setSdncOperation(String sdncOperation) {
103 this.sdncOperation = sdncOperation;
106 @JsonProperty("sdncServiceDataType")
107 @XmlElement(name = "sdncServiceDataType")
108 public String getSdncServiceDataType() {
109 return sdncServiceDataType;
112 @JsonProperty("sdncServiceDataType")
113 public void setSdncServiceDataType(String sdncServiceDataType) {
114 this.sdncServiceDataType = sdncServiceDataType;
117 @JsonProperty("sdncServiceData")
118 @XmlElement(name = "sdncServiceData")
119 public String getSdncServiceData() {
120 return sdncServiceData;
123 @JsonProperty("sdncServiceData")
124 public void setSdncServiceData(String sndcServiceData) {
125 this.sdncServiceData = sndcServiceData;