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 com.fasterxml.jackson.annotation.JsonProperty;
28 * Service Information specified by the SDNC "agnostic" API.
30 public class ServiceInformation implements Serializable {
31 private static final long serialVersionUID = 1L;
33 // The subscription's service type for the target service instance.
34 private String serviceType;
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;
42 // The subscriber name.
43 private String subscriberName;
45 // The subscriber global ID (customer ID).
46 private String subscriberGlobalId;
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;
56 public ServiceInformation() {}
58 @JsonProperty("serviceType")
59 @XmlElement(name = "serviceType")
60 public String getServiceType() {
64 @JsonProperty("serviceType")
65 public void setServiceType(String serviceType) {
66 this.serviceType = serviceType;
69 @JsonProperty("serviceInstanceId")
70 @XmlElement(name = "serviceInstanceId")
71 public String getServiceInstanceId() {
72 return serviceInstanceId;
75 @JsonProperty("serviceInstanceId")
76 public void setServiceInstanceId(String serviceInstanceId) {
77 this.serviceInstanceId = serviceInstanceId;
80 @JsonProperty("subscriberName")
81 @XmlElement(name = "subscriberName")
82 public String getSubscriberName() {
83 return subscriberName;
86 @JsonProperty("subscriberName")
87 public void setSubscriberName(String subscriberName) {
88 this.subscriberName = subscriberName;
91 @JsonProperty("subscriberGlobalId")
92 @XmlElement(name = "subscriberGlobalId")
93 public String getSubscriberGlobalId() {
94 return subscriberGlobalId;
97 @JsonProperty("subscriberGlobalId")
98 public void setSubscriberGlobalId(String subscriberGlobalId) {
99 this.subscriberGlobalId = subscriberGlobalId;