Replaced all tabs with spaces in java and pom.xml
[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 import javax.xml.bind.annotation.XmlElement;
25 import com.fasterxml.jackson.annotation.JsonProperty;
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, String subscriberName,
49             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     @JsonProperty("serviceType")
59     @XmlElement(name = "serviceType")
60     public String getServiceType() {
61         return serviceType;
62     }
63
64     @JsonProperty("serviceType")
65     public void setServiceType(String serviceType) {
66         this.serviceType = serviceType;
67     }
68
69     @JsonProperty("serviceInstanceId")
70     @XmlElement(name = "serviceInstanceId")
71     public String getServiceInstanceId() {
72         return serviceInstanceId;
73     }
74
75     @JsonProperty("serviceInstanceId")
76     public void setServiceInstanceId(String serviceInstanceId) {
77         this.serviceInstanceId = serviceInstanceId;
78     }
79
80     @JsonProperty("subscriberName")
81     @XmlElement(name = "subscriberName")
82     public String getSubscriberName() {
83         return subscriberName;
84     }
85
86     @JsonProperty("subscriberName")
87     public void setSubscriberName(String subscriberName) {
88         this.subscriberName = subscriberName;
89     }
90
91     @JsonProperty("subscriberGlobalId")
92     @XmlElement(name = "subscriberGlobalId")
93     public String getSubscriberGlobalId() {
94         return subscriberGlobalId;
95     }
96
97     @JsonProperty("subscriberGlobalId")
98     public void setSubscriberGlobalId(String subscriberGlobalId) {
99         this.subscriberGlobalId = subscriberGlobalId;
100     }
101 }