Initial code import
[msb/apigateway.git] / apiroute / apiroute-service / src / main / java / org / openo / msb / api / IuiRouteInfo.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 io.swagger.annotations.ApiModelProperty;\r
19 \r
20 import java.io.Serializable;\r
21 \r
22 \r
23 public class IuiRouteInfo implements Serializable{\r
24         private static final long serialVersionUID = 1L;\r
25         @ApiModelProperty(required = true)\r
26         private String  serviceName;  \r
27         \r
28         @ApiModelProperty(value = "Target Service URL,start with /",example = "/test", required = true)\r
29         private String  url;      \r
30         \r
31     @ApiModelProperty(value = "[control Range] 0:default   1:readonly  2:hidden ", allowableValues = "0,1,2", example = "0")\r
32         private String  control="0";      \r
33         \r
34     @ApiModelProperty(value = "[status] 1:abled    0:disabled ", allowableValues = "0,1", example = "1")\r
35         private String  status="1"; \r
36     \r
37     @ApiModelProperty(value = "[visual Range]interSystem:0,inSystem:1", allowableValues = "0,1", example = "1")\r
38     private String visualRange = "1"; \r
39     \r
40     @ApiModelProperty(value = "[LB Policy]non_ip_hash:0,ip_hash:1", allowableValues = "0,1", example = "0")\r
41     private String useOwnUpstream="0"; //负载均衡策略   \r
42 \r
43     @ApiModelProperty(required = true)\r
44         private RouteServer servers[]; \r
45 \r
46         public String getServiceName() {\r
47                 return serviceName;\r
48         }\r
49 \r
50         public void setServiceName(String serviceName) {\r
51                 this.serviceName = serviceName;\r
52         }\r
53 \r
54         public String getUrl() {\r
55                 return url;\r
56         }\r
57 \r
58         public void setUrl(String url) {\r
59                 this.url = url;\r
60         }\r
61 \r
62         public RouteServer[] getServers() {\r
63                 return servers;\r
64         }\r
65 \r
66         public void setServers(RouteServer[] servers) {\r
67                 this.servers = servers;\r
68         }\r
69 \r
70         public String getControl() {\r
71                 return control;\r
72         }\r
73 \r
74         public void setControl(String control) {\r
75                 this.control = control;\r
76         }\r
77 \r
78         public String getStatus() {\r
79                 return status;\r
80         }\r
81 \r
82         public void setStatus(String status) {\r
83                 this.status = status;\r
84         }\r
85 \r
86     public String getVisualRange() {\r
87         return visualRange;\r
88     }\r
89 \r
90     public void setVisualRange(String visualRange) {\r
91         this.visualRange = visualRange;\r
92     }\r
93 \r
94     public String getUseOwnUpstream() {\r
95         return useOwnUpstream;\r
96     }\r
97 \r
98     public void setUseOwnUpstream(String useOwnUpstream) {\r
99         this.useOwnUpstream = useOwnUpstream;\r
100     }\r
101 \r
102 }\r