Containerization feature of SO
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / sdncrest / ServiceInformation.java
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
25 import javax.xml.bind.annotation.XmlElement;
26
27 import com.fasterxml.jackson.annotation.JsonProperty;
28
29 /**
30  * Service Information specified by the SDNC "agnostic" API.
31  */
32 public class ServiceInformation implements Serializable {
33         private static final long serialVersionUID = 1L;
34
35         // The subscription's service type for the target service instance.
36         private String serviceType;
37
38         // Identifies the target service instance for this particular SDNC request.
39         // NOTE: this could be a child of the parent model instance, i.e. this
40         // service instance ID may be different from the service instance ID
41         // associated with the transaction MSO has with the system that invoked it.
42         private String serviceInstanceId;
43
44         // The subscriber name.
45         private String subscriberName;
46
47         // The subscriber global ID (customer ID).
48         private String subscriberGlobalId;
49
50         public ServiceInformation(String serviceType, String serviceInstanceId,
51                         String subscriberName, String subscriberGlobalId) {
52                 this.serviceType = serviceType;
53                 this.serviceInstanceId = serviceInstanceId;
54                 this.subscriberName = subscriberName;
55                 this.subscriberGlobalId = subscriberGlobalId;
56         }
57
58         public ServiceInformation() {
59         }
60
61         @JsonProperty("serviceType")
62         @XmlElement(name = "serviceType")
63         public String getServiceType() {
64                 return serviceType;
65         }
66
67         @JsonProperty("serviceType")
68         public void setServiceType(String serviceType) {
69                 this.serviceType = serviceType;
70         }
71
72         @JsonProperty("serviceInstanceId")
73         @XmlElement(name = "serviceInstanceId")
74         public String getServiceInstanceId() {
75                 return serviceInstanceId;
76         }
77
78         @JsonProperty("serviceInstanceId")
79         public void setServiceInstanceId(String serviceInstanceId) {
80                 this.serviceInstanceId = serviceInstanceId;
81         }
82
83         @JsonProperty("subscriberName")
84         @XmlElement(name = "subscriberName")
85         public String getSubscriberName() {
86                 return subscriberName;
87         }
88
89         @JsonProperty("subscriberName")
90         public void setSubscriberName(String subscriberName) {
91                 this.subscriberName = subscriberName;
92         }
93
94         @JsonProperty("subscriberGlobalId")
95         @XmlElement(name = "subscriberGlobalId")
96         public String getSubscriberGlobalId() {
97                 return subscriberGlobalId;
98         }
99
100         @JsonProperty("subscriberGlobalId")
101         public void setSubscriberGlobalId(String subscriberGlobalId) {
102                 this.subscriberGlobalId = subscriberGlobalId;
103         }
104 }