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