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;
25 import javax.xml.bind.annotation.XmlElement;
27 import com.fasterxml.jackson.annotation.JsonProperty;
30 * Service Information specified by the SDNC "agnostic" API.
32 public class ServiceInformation implements Serializable {
33 private static final long serialVersionUID = 1L;
35 // The subscription's service type for the target service instance.
36 private String serviceType;
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;
44 // The subscriber name.
45 private String subscriberName;
47 // The subscriber global ID (customer ID).
48 private String subscriberGlobalId;
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;
58 public ServiceInformation() {
61 @JsonProperty("serviceType")
62 @XmlElement(name = "serviceType")
63 public String getServiceType() {
67 @JsonProperty("serviceType")
68 public void setServiceType(String serviceType) {
69 this.serviceType = serviceType;
72 @JsonProperty("serviceInstanceId")
73 @XmlElement(name = "serviceInstanceId")
74 public String getServiceInstanceId() {
75 return serviceInstanceId;
78 @JsonProperty("serviceInstanceId")
79 public void setServiceInstanceId(String serviceInstanceId) {
80 this.serviceInstanceId = serviceInstanceId;
83 @JsonProperty("subscriberName")
84 @XmlElement(name = "subscriberName")
85 public String getSubscriberName() {
86 return subscriberName;
89 @JsonProperty("subscriberName")
90 public void setSubscriberName(String subscriberName) {
91 this.subscriberName = subscriberName;
94 @JsonProperty("subscriberGlobalId")
95 @XmlElement(name = "subscriberGlobalId")
96 public String getSubscriberGlobalId() {
97 return subscriberGlobalId;
100 @JsonProperty("subscriberGlobalId")
101 public void setSubscriberGlobalId(String subscriberGlobalId) {
102 this.subscriberGlobalId = subscriberGlobalId;