public static class CreateRulesRequest.CreateRulesRequestRules
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
direction
The direction to which the forwarding rule is applied.
|
Integer |
priority
The priority of the forwarding rule.
|
List<CreateRulesRequest.CreateRulesRequestRulesRuleActions> |
ruleActions
The actions of the forwarding rule.
|
List<CreateRulesRequest.CreateRulesRequestRulesRuleConditions> |
ruleConditions
The conditions of the forwarding rule.
|
String |
ruleName
The name of the forwarding rule.
|
List<CreateRulesRequest.CreateRulesRequestRulesTag> |
tag
The tag that you want to add.
|
| 构造器和说明 |
|---|
CreateRulesRequestRules() |
@NameInMap(value="Direction") public String direction
The direction to which the forwarding rule is applied. You can specify only one direction. Valid values:
* **Request** (default): The forwarding rule is applied to the client requests received by ALB.
* **Response**: The forwarding rule is applied to the responses returned by backend servers.
> Basic ALB instances do not support forwarding rules of the **Response** type.
@NameInMap(value="Priority") public Integer priority
The priority of the forwarding rule. Valid values: **1** to **10000**. A lower value specifies a higher priority. You can specify priorities for at most 10 forwarding rules.
> The priority of each forwarding rule added to a listener must be unique.
This parameter is required.
@NameInMap(value="RuleActions") public List<CreateRulesRequest.CreateRulesRequestRulesRuleActions> ruleActions
The actions of the forwarding rule.
This parameter is required.
@NameInMap(value="RuleConditions") public List<CreateRulesRequest.CreateRulesRequestRulesRuleConditions> ruleConditions
The conditions of the forwarding rule.
This parameter is required.
@NameInMap(value="RuleName") public String ruleName
The name of the forwarding rule. You can name at most 20 forwarding rules.
* The name must be 2 to 128 characters in length.
* It can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
This parameter is required.
@NameInMap(value="Tag") public List<CreateRulesRequest.CreateRulesRequestRulesTag> tag
The tag that you want to add.
public static CreateRulesRequest.CreateRulesRequestRules build(Map<String,?> map) throws Exception
Exceptionpublic CreateRulesRequest.CreateRulesRequestRules setDirection(String direction)
public String getDirection()
public CreateRulesRequest.CreateRulesRequestRules setPriority(Integer priority)
public Integer getPriority()
public CreateRulesRequest.CreateRulesRequestRules setRuleActions(List<CreateRulesRequest.CreateRulesRequestRulesRuleActions> ruleActions)
public List<CreateRulesRequest.CreateRulesRequestRulesRuleActions> getRuleActions()
public CreateRulesRequest.CreateRulesRequestRules setRuleConditions(List<CreateRulesRequest.CreateRulesRequestRulesRuleConditions> ruleConditions)
public List<CreateRulesRequest.CreateRulesRequestRulesRuleConditions> getRuleConditions()
public CreateRulesRequest.CreateRulesRequestRules setRuleName(String ruleName)
public String getRuleName()
public CreateRulesRequest.CreateRulesRequestRules setTag(List<CreateRulesRequest.CreateRulesRequestRulesTag> tag)
public List<CreateRulesRequest.CreateRulesRequestRulesTag> getTag()
Copyright © 2024. All rights reserved.