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=========================================================
20 package org.openecomp.mso.adapters.sdncrest;
22 import com.fasterxml.jackson.annotation.JsonProperty;
24 import javax.xml.bind.annotation.XmlElement;
25 import java.io.Serializable;
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,
49 String subscriberName, String subscriberGlobalId) {
50 this.serviceType = serviceType;
51 this.serviceInstanceId = serviceInstanceId;
52 this.subscriberName = subscriberName;
53 this.subscriberGlobalId = subscriberGlobalId;
56 public ServiceInformation() {
59 @JsonProperty("serviceType")
60 @XmlElement(name = "serviceType")
61 public String getServiceType() {
65 @JsonProperty("serviceType")
66 public void setServiceType(String serviceType) {
67 this.serviceType = serviceType;
70 @JsonProperty("serviceInstanceId")
71 @XmlElement(name = "serviceInstanceId")
72 public String getServiceInstanceId() {
73 return serviceInstanceId;
76 @JsonProperty("serviceInstanceId")
77 public void setServiceInstanceId(String serviceInstanceId) {
78 this.serviceInstanceId = serviceInstanceId;
81 @JsonProperty("subscriberName")
82 @XmlElement(name = "subscriberName")
83 public String getSubscriberName() {
84 return subscriberName;
87 @JsonProperty("subscriberName")
88 public void setSubscriberName(String subscriberName) {
89 this.subscriberName = subscriberName;
92 @JsonProperty("subscriberGlobalId")
93 @XmlElement(name = "subscriberGlobalId")
94 public String getSubscriberGlobalId() {
95 return subscriberGlobalId;
98 @JsonProperty("subscriberGlobalId")
99 public void setSubscriberGlobalId(String subscriberGlobalId) {
100 this.subscriberGlobalId = subscriberGlobalId;