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