All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyuncs.alb.model.v20200616.ListRulesResponse Maven / Gradle / Ivy

Go to download

Aliyun Open API SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

The newest version!
/*
 * 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.aliyuncs.alb.model.v20200616;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.alb.transform.v20200616.ListRulesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
 * @author auto create
 * @version 
 */
public class ListRulesResponse extends AcsResponse {

	private Integer maxResults;

	private String nextToken;

	private String requestId;

	private Integer totalCount;

	private List rules;

	public Integer getMaxResults() {
		return this.maxResults;
	}

	public void setMaxResults(Integer maxResults) {
		this.maxResults = maxResults;
	}

	public String getNextToken() {
		return this.nextToken;
	}

	public void setNextToken(String nextToken) {
		this.nextToken = nextToken;
	}

	public String getRequestId() {
		return this.requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public Integer getTotalCount() {
		return this.totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	public List getRules() {
		return this.rules;
	}

	public void setRules(List rules) {
		this.rules = rules;
	}

	public static class Rule {

		private String listenerId;

		private String loadBalancerId;

		private Integer priority;

		private String ruleId;

		private String ruleName;

		private String ruleStatus;

		private String direction;

		private Boolean serviceManagedEnabled;

		private String serviceManagedMode;

		private List ruleActions;

		private List ruleConditions;

		private List tags;

		public String getListenerId() {
			return this.listenerId;
		}

		public void setListenerId(String listenerId) {
			this.listenerId = listenerId;
		}

		public String getLoadBalancerId() {
			return this.loadBalancerId;
		}

		public void setLoadBalancerId(String loadBalancerId) {
			this.loadBalancerId = loadBalancerId;
		}

		public Integer getPriority() {
			return this.priority;
		}

		public void setPriority(Integer priority) {
			this.priority = priority;
		}

		public String getRuleId() {
			return this.ruleId;
		}

		public void setRuleId(String ruleId) {
			this.ruleId = ruleId;
		}

		public String getRuleName() {
			return this.ruleName;
		}

		public void setRuleName(String ruleName) {
			this.ruleName = ruleName;
		}

		public String getRuleStatus() {
			return this.ruleStatus;
		}

		public void setRuleStatus(String ruleStatus) {
			this.ruleStatus = ruleStatus;
		}

		public String getDirection() {
			return this.direction;
		}

		public void setDirection(String direction) {
			this.direction = direction;
		}

		public Boolean getServiceManagedEnabled() {
			return this.serviceManagedEnabled;
		}

		public void setServiceManagedEnabled(Boolean serviceManagedEnabled) {
			this.serviceManagedEnabled = serviceManagedEnabled;
		}

		public String getServiceManagedMode() {
			return this.serviceManagedMode;
		}

		public void setServiceManagedMode(String serviceManagedMode) {
			this.serviceManagedMode = serviceManagedMode;
		}

		public List getRuleActions() {
			return this.ruleActions;
		}

		public void setRuleActions(List ruleActions) {
			this.ruleActions = ruleActions;
		}

		public List getRuleConditions() {
			return this.ruleConditions;
		}

		public void setRuleConditions(List ruleConditions) {
			this.ruleConditions = ruleConditions;
		}

		public List getTags() {
			return this.tags;
		}

		public void setTags(List tags) {
			this.tags = tags;
		}

		public static class Action {

			private Integer order;

			private String type;

			private FixedResponseConfig fixedResponseConfig;

			private ForwardGroupConfig forwardGroupConfig;

			private InsertHeaderConfig insertHeaderConfig;

			private RedirectConfig redirectConfig;

			private RemoveHeaderConfig removeHeaderConfig;

			private RewriteConfig rewriteConfig;

			private TrafficMirrorConfig trafficMirrorConfig;

			private TrafficLimitConfig trafficLimitConfig;

			private CorsConfig corsConfig;

			public Integer getOrder() {
				return this.order;
			}

			public void setOrder(Integer order) {
				this.order = order;
			}

			public String getType() {
				return this.type;
			}

			public void setType(String type) {
				this.type = type;
			}

			public FixedResponseConfig getFixedResponseConfig() {
				return this.fixedResponseConfig;
			}

			public void setFixedResponseConfig(FixedResponseConfig fixedResponseConfig) {
				this.fixedResponseConfig = fixedResponseConfig;
			}

			public ForwardGroupConfig getForwardGroupConfig() {
				return this.forwardGroupConfig;
			}

			public void setForwardGroupConfig(ForwardGroupConfig forwardGroupConfig) {
				this.forwardGroupConfig = forwardGroupConfig;
			}

			public InsertHeaderConfig getInsertHeaderConfig() {
				return this.insertHeaderConfig;
			}

			public void setInsertHeaderConfig(InsertHeaderConfig insertHeaderConfig) {
				this.insertHeaderConfig = insertHeaderConfig;
			}

			public RedirectConfig getRedirectConfig() {
				return this.redirectConfig;
			}

			public void setRedirectConfig(RedirectConfig redirectConfig) {
				this.redirectConfig = redirectConfig;
			}

			public RemoveHeaderConfig getRemoveHeaderConfig() {
				return this.removeHeaderConfig;
			}

			public void setRemoveHeaderConfig(RemoveHeaderConfig removeHeaderConfig) {
				this.removeHeaderConfig = removeHeaderConfig;
			}

			public RewriteConfig getRewriteConfig() {
				return this.rewriteConfig;
			}

			public void setRewriteConfig(RewriteConfig rewriteConfig) {
				this.rewriteConfig = rewriteConfig;
			}

			public TrafficMirrorConfig getTrafficMirrorConfig() {
				return this.trafficMirrorConfig;
			}

			public void setTrafficMirrorConfig(TrafficMirrorConfig trafficMirrorConfig) {
				this.trafficMirrorConfig = trafficMirrorConfig;
			}

			public TrafficLimitConfig getTrafficLimitConfig() {
				return this.trafficLimitConfig;
			}

			public void setTrafficLimitConfig(TrafficLimitConfig trafficLimitConfig) {
				this.trafficLimitConfig = trafficLimitConfig;
			}

			public CorsConfig getCorsConfig() {
				return this.corsConfig;
			}

			public void setCorsConfig(CorsConfig corsConfig) {
				this.corsConfig = corsConfig;
			}

			public static class FixedResponseConfig {

				private String content;

				private String contentType;

				private String httpCode;

				public String getContent() {
					return this.content;
				}

				public void setContent(String content) {
					this.content = content;
				}

				public String getContentType() {
					return this.contentType;
				}

				public void setContentType(String contentType) {
					this.contentType = contentType;
				}

				public String getHttpCode() {
					return this.httpCode;
				}

				public void setHttpCode(String httpCode) {
					this.httpCode = httpCode;
				}
			}

			public static class ForwardGroupConfig {

				private List serverGroupTuples;

				private ServerGroupStickySession serverGroupStickySession;

				public List getServerGroupTuples() {
					return this.serverGroupTuples;
				}

				public void setServerGroupTuples(List serverGroupTuples) {
					this.serverGroupTuples = serverGroupTuples;
				}

				public ServerGroupStickySession getServerGroupStickySession() {
					return this.serverGroupStickySession;
				}

				public void setServerGroupStickySession(ServerGroupStickySession serverGroupStickySession) {
					this.serverGroupStickySession = serverGroupStickySession;
				}

				public static class ServerGroupTuple {

					private String serverGroupId;

					private Integer weight;

					public String getServerGroupId() {
						return this.serverGroupId;
					}

					public void setServerGroupId(String serverGroupId) {
						this.serverGroupId = serverGroupId;
					}

					public Integer getWeight() {
						return this.weight;
					}

					public void setWeight(Integer weight) {
						this.weight = weight;
					}
				}

				public static class ServerGroupStickySession {

					private Boolean enabled;

					private Integer timeout;

					public Boolean getEnabled() {
						return this.enabled;
					}

					public void setEnabled(Boolean enabled) {
						this.enabled = enabled;
					}

					public Integer getTimeout() {
						return this.timeout;
					}

					public void setTimeout(Integer timeout) {
						this.timeout = timeout;
					}
				}
			}

			public static class InsertHeaderConfig {

				private Boolean coverEnabled;

				private String key;

				private String value;

				private String valueType;

				public Boolean getCoverEnabled() {
					return this.coverEnabled;
				}

				public void setCoverEnabled(Boolean coverEnabled) {
					this.coverEnabled = coverEnabled;
				}

				public String getKey() {
					return this.key;
				}

				public void setKey(String key) {
					this.key = key;
				}

				public String getValue() {
					return this.value;
				}

				public void setValue(String value) {
					this.value = value;
				}

				public String getValueType() {
					return this.valueType;
				}

				public void setValueType(String valueType) {
					this.valueType = valueType;
				}
			}

			public static class RedirectConfig {

				private String host;

				private String httpCode;

				private String path;

				private String port;

				private String protocol;

				private String query;

				public String getHost() {
					return this.host;
				}

				public void setHost(String host) {
					this.host = host;
				}

				public String getHttpCode() {
					return this.httpCode;
				}

				public void setHttpCode(String httpCode) {
					this.httpCode = httpCode;
				}

				public String getPath() {
					return this.path;
				}

				public void setPath(String path) {
					this.path = path;
				}

				public String getPort() {
					return this.port;
				}

				public void setPort(String port) {
					this.port = port;
				}

				public String getBizProtocol() {
					return this.protocol;
				}

				public void setBizProtocol(String protocol) {
					this.protocol = protocol;
				}

				public String getQuery() {
					return this.query;
				}

				public void setQuery(String query) {
					this.query = query;
				}
			}

			public static class RemoveHeaderConfig {

				private String key;

				public String getKey() {
					return this.key;
				}

				public void setKey(String key) {
					this.key = key;
				}
			}

			public static class RewriteConfig {

				private String host;

				private String path;

				private String query;

				public String getHost() {
					return this.host;
				}

				public void setHost(String host) {
					this.host = host;
				}

				public String getPath() {
					return this.path;
				}

				public void setPath(String path) {
					this.path = path;
				}

				public String getQuery() {
					return this.query;
				}

				public void setQuery(String query) {
					this.query = query;
				}
			}

			public static class TrafficMirrorConfig {

				private String targetType;

				private MirrorGroupConfig mirrorGroupConfig;

				public String getTargetType() {
					return this.targetType;
				}

				public void setTargetType(String targetType) {
					this.targetType = targetType;
				}

				public MirrorGroupConfig getMirrorGroupConfig() {
					return this.mirrorGroupConfig;
				}

				public void setMirrorGroupConfig(MirrorGroupConfig mirrorGroupConfig) {
					this.mirrorGroupConfig = mirrorGroupConfig;
				}

				public static class MirrorGroupConfig {

					private List serverGroupTuples1;

					public List getServerGroupTuples1() {
						return this.serverGroupTuples1;
					}

					public void setServerGroupTuples1(List serverGroupTuples1) {
						this.serverGroupTuples1 = serverGroupTuples1;
					}

					public static class ServerGroupTuple2 {

						private String serverGroupId;

						private Integer weight;

						public String getServerGroupId() {
							return this.serverGroupId;
						}

						public void setServerGroupId(String serverGroupId) {
							this.serverGroupId = serverGroupId;
						}

						public Integer getWeight() {
							return this.weight;
						}

						public void setWeight(Integer weight) {
							this.weight = weight;
						}
					}
				}
			}

			public static class TrafficLimitConfig {

				private Integer qPS;

				private Integer perIpQps;

				public Integer getQPS() {
					return this.qPS;
				}

				public void setQPS(Integer qPS) {
					this.qPS = qPS;
				}

				public Integer getPerIpQps() {
					return this.perIpQps;
				}

				public void setPerIpQps(Integer perIpQps) {
					this.perIpQps = perIpQps;
				}
			}

			public static class CorsConfig {

				private String allowCredentials;

				private Long maxAge;

				private List allowOrigin;

				private List allowMethods;

				private List allowHeaders;

				private List exposeHeaders;

				public String getAllowCredentials() {
					return this.allowCredentials;
				}

				public void setAllowCredentials(String allowCredentials) {
					this.allowCredentials = allowCredentials;
				}

				public Long getMaxAge() {
					return this.maxAge;
				}

				public void setMaxAge(Long maxAge) {
					this.maxAge = maxAge;
				}

				public List getAllowOrigin() {
					return this.allowOrigin;
				}

				public void setAllowOrigin(List allowOrigin) {
					this.allowOrigin = allowOrigin;
				}

				public List getAllowMethods() {
					return this.allowMethods;
				}

				public void setAllowMethods(List allowMethods) {
					this.allowMethods = allowMethods;
				}

				public List getAllowHeaders() {
					return this.allowHeaders;
				}

				public void setAllowHeaders(List allowHeaders) {
					this.allowHeaders = allowHeaders;
				}

				public List getExposeHeaders() {
					return this.exposeHeaders;
				}

				public void setExposeHeaders(List exposeHeaders) {
					this.exposeHeaders = exposeHeaders;
				}
			}
		}

		public static class Condition {

			private String type;

			private CookieConfig cookieConfig;

			private HeaderConfig headerConfig;

			private HostConfig hostConfig;

			private MethodConfig methodConfig;

			private PathConfig pathConfig;

			private QueryStringConfig queryStringConfig;

			private SourceIpConfig sourceIpConfig;

			private ResponseStatusCodeConfig responseStatusCodeConfig;

			private ResponseHeaderConfig responseHeaderConfig;

			public String getType() {
				return this.type;
			}

			public void setType(String type) {
				this.type = type;
			}

			public CookieConfig getCookieConfig() {
				return this.cookieConfig;
			}

			public void setCookieConfig(CookieConfig cookieConfig) {
				this.cookieConfig = cookieConfig;
			}

			public HeaderConfig getHeaderConfig() {
				return this.headerConfig;
			}

			public void setHeaderConfig(HeaderConfig headerConfig) {
				this.headerConfig = headerConfig;
			}

			public HostConfig getHostConfig() {
				return this.hostConfig;
			}

			public void setHostConfig(HostConfig hostConfig) {
				this.hostConfig = hostConfig;
			}

			public MethodConfig getMethodConfig() {
				return this.methodConfig;
			}

			public void setMethodConfig(MethodConfig methodConfig) {
				this.methodConfig = methodConfig;
			}

			public PathConfig getPathConfig() {
				return this.pathConfig;
			}

			public void setPathConfig(PathConfig pathConfig) {
				this.pathConfig = pathConfig;
			}

			public QueryStringConfig getQueryStringConfig() {
				return this.queryStringConfig;
			}

			public void setQueryStringConfig(QueryStringConfig queryStringConfig) {
				this.queryStringConfig = queryStringConfig;
			}

			public SourceIpConfig getSourceIpConfig() {
				return this.sourceIpConfig;
			}

			public void setSourceIpConfig(SourceIpConfig sourceIpConfig) {
				this.sourceIpConfig = sourceIpConfig;
			}

			public ResponseStatusCodeConfig getResponseStatusCodeConfig() {
				return this.responseStatusCodeConfig;
			}

			public void setResponseStatusCodeConfig(ResponseStatusCodeConfig responseStatusCodeConfig) {
				this.responseStatusCodeConfig = responseStatusCodeConfig;
			}

			public ResponseHeaderConfig getResponseHeaderConfig() {
				return this.responseHeaderConfig;
			}

			public void setResponseHeaderConfig(ResponseHeaderConfig responseHeaderConfig) {
				this.responseHeaderConfig = responseHeaderConfig;
			}

			public static class CookieConfig {

				private List values;

				public List getValues() {
					return this.values;
				}

				public void setValues(List values) {
					this.values = values;
				}

				public static class Value {

					private String key;

					private String value;

					public String getKey() {
						return this.key;
					}

					public void setKey(String key) {
						this.key = key;
					}

					public String getValue() {
						return this.value;
					}

					public void setValue(String value) {
						this.value = value;
					}
				}
			}

			public static class HeaderConfig {

				private String key;

				private List values3;

				public String getKey() {
					return this.key;
				}

				public void setKey(String key) {
					this.key = key;
				}

				public List getValues3() {
					return this.values3;
				}

				public void setValues3(List values3) {
					this.values3 = values3;
				}
			}

			public static class HostConfig {

				private List values4;

				public List getValues4() {
					return this.values4;
				}

				public void setValues4(List values4) {
					this.values4 = values4;
				}
			}

			public static class MethodConfig {

				private List values5;

				public List getValues5() {
					return this.values5;
				}

				public void setValues5(List values5) {
					this.values5 = values5;
				}
			}

			public static class PathConfig {

				private List values6;

				public List getValues6() {
					return this.values6;
				}

				public void setValues6(List values6) {
					this.values6 = values6;
				}
			}

			public static class QueryStringConfig {

				private List values7;

				public List getValues7() {
					return this.values7;
				}

				public void setValues7(List values7) {
					this.values7 = values7;
				}

				public static class Value8 {

					private String key;

					private String value;

					public String getKey() {
						return this.key;
					}

					public void setKey(String key) {
						this.key = key;
					}

					public String getValue() {
						return this.value;
					}

					public void setValue(String value) {
						this.value = value;
					}
				}
			}

			public static class SourceIpConfig {

				private List values9;

				public List getValues9() {
					return this.values9;
				}

				public void setValues9(List values9) {
					this.values9 = values9;
				}
			}

			public static class ResponseStatusCodeConfig {

				private List values10;

				public List getValues10() {
					return this.values10;
				}

				public void setValues10(List values10) {
					this.values10 = values10;
				}
			}

			public static class ResponseHeaderConfig {

				private String key;

				private List values11;

				public String getKey() {
					return this.key;
				}

				public void setKey(String key) {
					this.key = key;
				}

				public List getValues11() {
					return this.values11;
				}

				public void setValues11(List values11) {
					this.values11 = values11;
				}
			}
		}

		public static class Tag {

			private String key;

			private String value;

			public String getKey() {
				return this.key;
			}

			public void setKey(String key) {
				this.key = key;
			}

			public String getValue() {
				return this.value;
			}

			public void setValue(String value) {
				this.value = value;
			}
		}
	}

	@Override
	public ListRulesResponse getInstance(UnmarshallerContext context) {
		return	ListRulesResponseUnmarshaller.unmarshall(this, context);
	}

	@Override
	public boolean checkShowJsonItemName() {
		return false;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy