Issue-id: OCS-9
[msb/apigateway.git] / msb-core / apiroute / apiroute-service / src / main / java / org / openo / msb / api / ServiceAccessInfo.java
1 /**
2  * Copyright 2016 2015-2016 ZTE, Inc. and others. All rights reserved.
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.openo.msb.api;
17
18 import java.io.Serializable;
19
20 import com.fasterxml.jackson.annotation.JsonInclude;
21
22 public class ServiceAccessInfo implements Serializable {
23     private static final long serialVersionUID = 1L;
24     // (api|iui|custom|p2p)
25     private String serviceType;
26
27     private String serviceName;
28     @JsonInclude(JsonInclude.Include.NON_NULL)
29     private String version;
30
31     private String accessAddr;
32
33     /**
34      * @return the serviceType
35      */
36     public String getServiceType() {
37         return serviceType;
38     }
39
40     /**
41      * @param serviceType the serviceType to set
42      */
43     public void setServiceType(String serviceType) {
44         this.serviceType = serviceType;
45     }
46
47     /**
48      * @return the serviceName
49      */
50     public String getServiceName() {
51         return serviceName;
52     }
53
54     /**
55      * @param serviceName the serviceName to set
56      */
57     public void setServiceName(String serviceName) {
58         this.serviceName = serviceName;
59     }
60
61     /**
62      * @return the version
63      */
64     public String getVersion() {
65         return version;
66     }
67
68     /**
69      * @param version the version to set
70      */
71     public void setVersion(String version) {
72         this.version = version;
73     }
74
75     /**
76      * @return the accessAddr
77      */
78     public String getAccessAddr() {
79         return accessAddr;
80     }
81
82     /**
83      * @param accessAddr the accessAddr to set
84      */
85     public void setAccessAddr(String accessAddr) {
86         this.accessAddr = accessAddr;
87     }
88 }