public class CreateRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
direction
The direction to which the forwarding rule is applied.
|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
String |
listenerId
The listener ID of the ALB instance.
|
Integer |
priority
The priority of the forwarding rule.
|
List<CreateRuleRequest.CreateRuleRequestRuleActions> |
ruleActions
The maximum cache time of dry run requests in the browser.
|
List<CreateRuleRequest.CreateRuleRequestRuleConditions> |
ruleConditions
The configuration of the source IP-based forwarding rule.
|
String |
ruleName
The name of the forwarding rule.
|
List<CreateRuleRequest.CreateRuleRequestTag> |
tag |
| 构造器和说明 |
|---|
CreateRuleRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateRuleRequest |
build(Map<String,?> map) |
String |
getClientToken() |
String |
getDirection() |
Boolean |
getDryRun() |
String |
getListenerId() |
Integer |
getPriority() |
List<CreateRuleRequest.CreateRuleRequestRuleActions> |
getRuleActions() |
List<CreateRuleRequest.CreateRuleRequestRuleConditions> |
getRuleConditions() |
String |
getRuleName() |
List<CreateRuleRequest.CreateRuleRequestTag> |
getTag() |
CreateRuleRequest |
setClientToken(String clientToken) |
CreateRuleRequest |
setDirection(String direction) |
CreateRuleRequest |
setDryRun(Boolean dryRun) |
CreateRuleRequest |
setListenerId(String listenerId) |
CreateRuleRequest |
setPriority(Integer priority) |
CreateRuleRequest |
setRuleActions(List<CreateRuleRequest.CreateRuleRequestRuleActions> ruleActions) |
CreateRuleRequest |
setRuleConditions(List<CreateRuleRequest.CreateRuleRequestRuleConditions> ruleConditions) |
CreateRuleRequest |
setRuleName(String ruleName) |
CreateRuleRequest |
setTag(List<CreateRuleRequest.CreateRuleRequestTag> tag) |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
> If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
@NameInMap(value="Direction") public String direction
The direction to which the forwarding rule is applied. Valid values:
* **Request** (default): The forwarding rule is applied to the requests received by ALB.
* **Response**: The forwarding rule is applied to the responses returned by backend servers.
> Basic ALB instances do not support the **Response** value.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
* **true**: performs a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
* **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a `2xx HTTP` status code is returned and the operation is performed.
@NameInMap(value="ListenerId") public String listenerId
The listener ID of the ALB instance.
This parameter is required.
@NameInMap(value="Priority") public Integer priority
The priority of the forwarding rule. Valid values: **1 to 10000**. A smaller value indicates a higher priority.
> The priorities of the forwarding rules created for the same listener must be unique.
This parameter is required.
@NameInMap(value="RuleActions") public List<CreateRuleRequest.CreateRuleRequestRuleActions> ruleActions
The maximum cache time of dry run requests in the browser. Unit: seconds.
Valid values: **-1** to **172800**.
This parameter is required.
@NameInMap(value="RuleConditions") public List<CreateRuleRequest.CreateRuleRequestRuleConditions> ruleConditions
The configuration of the source IP-based forwarding rule.
This parameter is required.
@NameInMap(value="RuleName") public String ruleName
The name of the forwarding rule.
* 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<CreateRuleRequest.CreateRuleRequestTag> tag
public static CreateRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateRuleRequest setClientToken(String clientToken)
public String getClientToken()
public CreateRuleRequest setDirection(String direction)
public String getDirection()
public CreateRuleRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateRuleRequest setListenerId(String listenerId)
public String getListenerId()
public CreateRuleRequest setPriority(Integer priority)
public Integer getPriority()
public CreateRuleRequest setRuleActions(List<CreateRuleRequest.CreateRuleRequestRuleActions> ruleActions)
public List<CreateRuleRequest.CreateRuleRequestRuleActions> getRuleActions()
public CreateRuleRequest setRuleConditions(List<CreateRuleRequest.CreateRuleRequestRuleConditions> ruleConditions)
public List<CreateRuleRequest.CreateRuleRequestRuleConditions> getRuleConditions()
public CreateRuleRequest setRuleName(String ruleName)
public String getRuleName()
public CreateRuleRequest setTag(List<CreateRuleRequest.CreateRuleRequestTag> tag)
public List<CreateRuleRequest.CreateRuleRequestTag> getTag()
Copyright © 2024. All rights reserved.