AddFlowRuleReqVo.java 2.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/*
 * Copyright 1999-2018 Alibaba Group Holding Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.alibaba.csp.sentinel.dashboard.domain.vo.gateway.rule;

/**
 * Value Object for add gateway flow rule.
 *
 * @author cdfive
 * @since 1.7.0
 */
public class AddFlowRuleReqVo {

26
	private String app;
27

28
	private String ip;
29

30
	private Integer port;
31

32
	private String resource;
33

34
	private Integer resourceMode;
35

36
	private Integer grade;
37

38
	private Double count;
39

40
	private Long interval;
41

42
	private Integer intervalUnit;
43

44
	private Integer controlBehavior;
45

46
	private Integer burst;
47

48
	private Integer maxQueueingTimeoutMs;
49

50
	private GatewayParamFlowItemVo paramItem;
51

52 53 54
	public String getApp() {
		return app;
	}
55

56 57 58
	public void setApp(String app) {
		this.app = app;
	}
59

60 61 62
	public String getIp() {
		return ip;
	}
63

64 65 66
	public void setIp(String ip) {
		this.ip = ip;
	}
67

68 69 70
	public Integer getPort() {
		return port;
	}
71

72 73 74
	public void setPort(Integer port) {
		this.port = port;
	}
75

76 77 78
	public String getResource() {
		return resource;
	}
79

80 81 82
	public void setResource(String resource) {
		this.resource = resource;
	}
83

84 85 86
	public Integer getResourceMode() {
		return resourceMode;
	}
87

88 89 90
	public void setResourceMode(Integer resourceMode) {
		this.resourceMode = resourceMode;
	}
91

92 93 94
	public Integer getGrade() {
		return grade;
	}
95

96 97 98
	public void setGrade(Integer grade) {
		this.grade = grade;
	}
99

100 101 102
	public Double getCount() {
		return count;
	}
103

104 105 106
	public void setCount(Double count) {
		this.count = count;
	}
107

108 109 110
	public Long getInterval() {
		return interval;
	}
111

112 113 114
	public void setInterval(Long interval) {
		this.interval = interval;
	}
115

116 117 118
	public Integer getIntervalUnit() {
		return intervalUnit;
	}
119

120 121 122
	public void setIntervalUnit(Integer intervalUnit) {
		this.intervalUnit = intervalUnit;
	}
123

124 125 126
	public Integer getControlBehavior() {
		return controlBehavior;
	}
127

128 129 130
	public void setControlBehavior(Integer controlBehavior) {
		this.controlBehavior = controlBehavior;
	}
131

132 133 134
	public Integer getBurst() {
		return burst;
	}
135

136 137 138
	public void setBurst(Integer burst) {
		this.burst = burst;
	}
139

140 141 142
	public Integer getMaxQueueingTimeoutMs() {
		return maxQueueingTimeoutMs;
	}
143

144 145 146
	public void setMaxQueueingTimeoutMs(Integer maxQueueingTimeoutMs) {
		this.maxQueueingTimeoutMs = maxQueueingTimeoutMs;
	}
147

148 149 150 151 152 153 154
	public GatewayParamFlowItemVo getParamItem() {
		return paramItem;
	}

	public void setParamItem(GatewayParamFlowItemVo paramItem) {
		this.paramItem = paramItem;
	}
155 156

}