5245d27b975eee1c188acf121b8f5a320905f0ec
[usecase-ui/server.git] / src / main / java / org / onap / usecaseui / server / service / lcm / domain / aai / bean / ServiceInstance.java
1 /**
2  * Copyright 2016-2017 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.usecaseui.server.service.lcm.domain.aai.bean;
17
18 import com.fasterxml.jackson.annotation.JsonCreator;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20
21 public class ServiceInstance {
22
23     private String globalCustomerId;
24
25     private String serviceType;
26
27     private String serviceInstanceId;
28
29     private String subscriberName;
30
31     private String subscriberType;
32
33     private String serviceInstanceName;
34
35     private String serviceInstanceLocationId;
36
37     @JsonCreator
38     public ServiceInstance(
39             @JsonProperty("global-customer-id") String globalCustomerId,
40             @JsonProperty("service-type") String serviceType,
41             @JsonProperty("service-instance-id") String serviceInstanceId,
42             @JsonProperty("subscriber-name") String subscriberName,
43             @JsonProperty("subscriber-type") String subscriberType,
44             @JsonProperty("service-instance-name") String serviceInstanceName,
45             @JsonProperty("service-instance-location-id") String serviceInstanceLocationId) {
46         this.globalCustomerId = globalCustomerId;
47         this.serviceType = serviceType;
48         this.serviceInstanceId = serviceInstanceId;
49         this.subscriberName = subscriberName;
50         this.subscriberType = subscriberType;
51         this.serviceInstanceName = serviceInstanceName;
52         this.serviceInstanceLocationId = serviceInstanceLocationId;
53     }
54
55     @JsonProperty("global-customer-id")
56     public String getGlobalCustomerId() {
57         return globalCustomerId;
58     }
59
60     @JsonProperty("service-type")
61     public String getServiceType() {
62         return serviceType;
63     }
64
65     @JsonProperty("service-instance-id")
66     public String getServiceInstanceId() {
67         return serviceInstanceId;
68     }
69
70     @JsonProperty("subscriber-name")
71     public String getSubscriberName() {
72         return subscriberName;
73     }
74
75     @JsonProperty("subscriber-type")
76     public String getSubscriberType() {
77         return subscriberType;
78     }
79
80     @JsonProperty("service-instance-name")
81     public String getServiceInstanceName() {
82         return serviceInstanceName;
83     }
84
85     @JsonProperty("service-instance-location-id")
86     public String getServiceInstanceLocationId() {
87         return serviceInstanceLocationId;
88     }
89 }