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