2 * Copyright 2016 ZTE Corporation.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.openo.msb.api;
18 import io.swagger.annotations.ApiModelProperty;
20 import java.io.Serializable;
22 public class CustomRouteInfo implements Serializable{
24 private static final long serialVersionUID = 1L;
25 @ApiModelProperty(required = true)
26 private String serviceName;
28 @ApiModelProperty(value = "Target Service URL,start with /",example = "/test", required = true)
31 @ApiModelProperty(value = "[control Range] 0:default 1:readonly 2:hidden ", allowableValues = "0,1,2", example = "0")
32 private String control="0";
34 @ApiModelProperty(value = "[status] 1:abled 0:disabled ", allowableValues = "0,1", example = "1")
35 private String status="1";
37 @ApiModelProperty(value = "[visual Range]interSystem:0,inSystem:1", allowableValues = "0,1", example = "1")
38 private String visualRange = "1";
40 @ApiModelProperty(value = "[LB Policy]non_ip_hash:0,ip_hash:1", allowableValues = "0,1", example = "0")
41 private String useOwnUpstream="0"; //负载均衡策略
43 @ApiModelProperty(required = true)
44 private RouteServer servers[];
46 public String getServiceName() {
50 public void setServiceName(String serviceName) {
51 this.serviceName = serviceName;
54 public String getUrl() {
58 public void setUrl(String url) {
62 public RouteServer[] getServers() {
66 public void setServers(RouteServer[] servers) {
67 this.servers = servers;
70 public String getControl() {
74 public void setControl(String control) {
75 this.control = control;
78 public String getStatus() {
82 public void setStatus(String status) {
86 public String getVisualRange() {
90 public void setVisualRange(String visualRange) {
91 this.visualRange = visualRange;
94 public String getUseOwnUpstream() {
95 return useOwnUpstream;
98 public void setUseOwnUpstream(String useOwnUpstream) {
99 this.useOwnUpstream = useOwnUpstream;