1b8372291da21fcd986b45b89ef60ffde6fac4dc
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.so.adapters.sdncrest;
22
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;
30
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.
34
35 /**
36  * SDNC adapter request for "agnostic" API services. The target action is determined by a service type and an operation.
37  */
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;
43
44     // Request Information specified by SDNC "agnostic" API
45     private RequestInformation requestInformation;
46
47     // Service Information specified by: SDNC "agnostic" API
48     private ServiceInformation serviceInformation;
49
50     // The SDNC service type specified by SDNC "agnostic" API
51     private String sdncService;
52
53     // The SDNC operation specified by SDNC "agnostic" API
54     private String sdncOperation;
55
56     // The SDNC service data type specified by SDNC "agnostic" API
57     private String sdncServiceDataType;
58
59     // The SDNC service data specified by SDNC "agnostic" API
60     private String sdncServiceData;
61
62     @JsonProperty("requestInformation")
63     @XmlElement(name = "requestInformation")
64     public RequestInformation getRequestInformation() {
65         return requestInformation;
66     }
67
68     @JsonProperty("requestInformation")
69     public void setRequestInformation(RequestInformation requestInformation) {
70         this.requestInformation = requestInformation;
71     }
72
73     @JsonProperty("serviceInformation")
74     @XmlElement(name = "serviceInformation")
75     public ServiceInformation getServiceInformation() {
76         return serviceInformation;
77     }
78
79     @JsonProperty("serviceInformation")
80     public void setServiceInformation(ServiceInformation serviceInformation) {
81         this.serviceInformation = serviceInformation;
82     }
83
84     @JsonProperty("sdncService")
85     @XmlElement(name = "sdncService")
86     public String getSdncService() {
87         return sdncService;
88     }
89
90     @JsonProperty("sdncService")
91     public void setSdncService(String sdncService) {
92         this.sdncService = sdncService;
93     }
94
95     @JsonProperty("sdncOperation")
96     @XmlElement(name = "sdncOperation")
97     public String getSdncOperation() {
98         return sdncOperation;
99     }
100
101     @JsonProperty("sdncOperation")
102     public void setSdncOperation(String sdncOperation) {
103         this.sdncOperation = sdncOperation;
104     }
105
106     @JsonProperty("sdncServiceDataType")
107     @XmlElement(name = "sdncServiceDataType")
108     public String getSdncServiceDataType() {
109         return sdncServiceDataType;
110     }
111
112     @JsonProperty("sdncServiceDataType")
113     public void setSdncServiceDataType(String sdncServiceDataType) {
114         this.sdncServiceDataType = sdncServiceDataType;
115     }
116
117     @JsonProperty("sdncServiceData")
118     @XmlElement(name = "sdncServiceData")
119     public String getSdncServiceData() {
120         return sdncServiceData;
121     }
122
123     @JsonProperty("sdncServiceData")
124     public void setSdncServiceData(String sndcServiceData) {
125         this.sdncServiceData = sndcServiceData;
126     }
127 }