Initial code import
[msb/apigateway.git] / apiroute / apiroute-service / src / main / java / org / openo / msb / api / IuiRouteInfo.java
diff --git a/apiroute/apiroute-service/src/main/java/org/openo/msb/api/IuiRouteInfo.java b/apiroute/apiroute-service/src/main/java/org/openo/msb/api/IuiRouteInfo.java
new file mode 100644 (file)
index 0000000..0087fdf
--- /dev/null
@@ -0,0 +1,102 @@
+/**\r
+* Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+*\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+*/\r
+package org.openo.msb.api;\r
+\r
+import io.swagger.annotations.ApiModelProperty;\r
+\r
+import java.io.Serializable;\r
+\r
+\r
+public class IuiRouteInfo implements Serializable{\r
+       private static final long serialVersionUID = 1L;\r
+       @ApiModelProperty(required = true)\r
+       private String  serviceName;  \r
+       \r
+       @ApiModelProperty(value = "Target Service URL,start with /",example = "/test", required = true)\r
+       private String  url;      \r
+       \r
+    @ApiModelProperty(value = "[control Range] 0:default   1:readonly  2:hidden ", allowableValues = "0,1,2", example = "0")\r
+       private String  control="0";      \r
+       \r
+    @ApiModelProperty(value = "[status] 1:abled    0:disabled ", allowableValues = "0,1", example = "1")\r
+       private String  status="1"; \r
+    \r
+    @ApiModelProperty(value = "[visual Range]interSystem:0,inSystem:1", allowableValues = "0,1", example = "1")\r
+    private String visualRange = "1"; \r
+    \r
+    @ApiModelProperty(value = "[LB Policy]non_ip_hash:0,ip_hash:1", allowableValues = "0,1", example = "0")\r
+    private String useOwnUpstream="0"; //负载均衡策略   \r
+\r
+    @ApiModelProperty(required = true)\r
+       private RouteServer servers[]; \r
+\r
+       public String getServiceName() {\r
+               return serviceName;\r
+       }\r
+\r
+       public void setServiceName(String serviceName) {\r
+               this.serviceName = serviceName;\r
+       }\r
+\r
+       public String getUrl() {\r
+               return url;\r
+       }\r
+\r
+       public void setUrl(String url) {\r
+               this.url = url;\r
+       }\r
+\r
+       public RouteServer[] getServers() {\r
+               return servers;\r
+       }\r
+\r
+       public void setServers(RouteServer[] servers) {\r
+               this.servers = servers;\r
+       }\r
+\r
+       public String getControl() {\r
+               return control;\r
+       }\r
+\r
+       public void setControl(String control) {\r
+               this.control = control;\r
+       }\r
+\r
+       public String getStatus() {\r
+               return status;\r
+       }\r
+\r
+       public void setStatus(String status) {\r
+               this.status = status;\r
+       }\r
+\r
+    public String getVisualRange() {\r
+        return visualRange;\r
+    }\r
+\r
+    public void setVisualRange(String visualRange) {\r
+        this.visualRange = visualRange;\r
+    }\r
+\r
+    public String getUseOwnUpstream() {\r
+        return useOwnUpstream;\r
+    }\r
+\r
+    public void setUseOwnUpstream(String useOwnUpstream) {\r
+        this.useOwnUpstream = useOwnUpstream;\r
+    }\r
+\r
+}\r