Initial code import
[msb/apigateway.git] / apiroute / apiroute-service / src / main / java / org / openo / msb / api / ServiceAccessInfo.java
1 /**\r
2 * Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
3 *\r
4 * Licensed under the Apache License, Version 2.0 (the "License");\r
5 * you may not use this file except in compliance with the License.\r
6 * You may obtain a copy of the License at\r
7 *\r
8 * http://www.apache.org/licenses/LICENSE-2.0\r
9 *\r
10 * Unless required by applicable law or agreed to in writing, software\r
11 * distributed under the License is distributed on an "AS IS" BASIS,\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13 * See the License for the specific language governing permissions and\r
14 * limitations under the License.\r
15 */\r
16 package org.openo.msb.api;\r
17 \r
18 import java.io.Serializable;\r
19 \r
20 import com.fasterxml.jackson.annotation.JsonInclude;\r
21 \r
22 public class ServiceAccessInfo implements Serializable {\r
23     private static final long serialVersionUID = 1L;\r
24     // (api|iui|custom|p2p)\r
25     private String serviceType;\r
26 \r
27     private String serviceName;\r
28     @JsonInclude(JsonInclude.Include.NON_NULL)\r
29     private String version;\r
30 \r
31     private String accessAddr;\r
32 \r
33     /**\r
34      * @return the serviceType\r
35      */\r
36     public String getServiceType() {\r
37         return serviceType;\r
38     }\r
39 \r
40     /**\r
41      * @param serviceType the serviceType to set\r
42      */\r
43     public void setServiceType(String serviceType) {\r
44         this.serviceType = serviceType;\r
45     }\r
46 \r
47     /**\r
48      * @return the serviceName\r
49      */\r
50     public String getServiceName() {\r
51         return serviceName;\r
52     }\r
53 \r
54     /**\r
55      * @param serviceName the serviceName to set\r
56      */\r
57     public void setServiceName(String serviceName) {\r
58         this.serviceName = serviceName;\r
59     }\r
60 \r
61     /**\r
62      * @return the version\r
63      */\r
64     public String getVersion() {\r
65         return version;\r
66     }\r
67 \r
68     /**\r
69      * @param version the version to set\r
70      */\r
71     public void setVersion(String version) {\r
72         this.version = version;\r
73     }\r
74 \r
75     /**\r
76      * @return the accessAddr\r
77      */\r
78     public String getAccessAddr() {\r
79         return accessAddr;\r
80     }\r
81 \r
82     /**\r
83      * @param accessAddr the accessAddr to set\r
84      */\r
85     public void setAccessAddr(String accessAddr) {\r
86         this.accessAddr = accessAddr;\r
87     }\r
88 }\r