public static class CreateRuleRequest.CreateRuleRequestRuleConditions
extends com.aliyun.tea.TeaModel
| 构造器和说明 |
|---|
CreateRuleRequestRuleConditions() |
@NameInMap(value="CookieConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsCookieConfig cookieConfig
The configurations of the cookies.
@NameInMap(value="HeaderConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsHeaderConfig headerConfig
The configuration of the header.
@NameInMap(value="HostConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsHostConfig hostConfig
The configurations of the host.
@NameInMap(value="MethodConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsMethodConfig methodConfig
The configurations of the request methods.
@NameInMap(value="PathConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsPathConfig pathConfig
The configurations of the URLs.
@NameInMap(value="QueryStringConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsQueryStringConfig queryStringConfig
The configurations of the query strings.
@NameInMap(value="ResponseHeaderConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsResponseHeaderConfig responseHeaderConfig
@NameInMap(value="ResponseStatusCodeConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsResponseStatusCodeConfig responseStatusCodeConfig
@NameInMap(value="SourceIpConfig") public CreateRuleRequest.CreateRuleRequestRuleConditionsSourceIpConfig sourceIpConfig
The configuration of the source IP-based forwarding rule. This parameter is required and takes effect only when **Type** is set to **SourceIP**.
@NameInMap(value="Type") public String type
The type of forwarding rule. Valid values:
* **Host**: Requests are distributed based on hosts.
* **Path**: Requests are distributed based on paths.
* **Header**: Requests are distributed based on HTTP headers.
* **QueryString**: Requests are distributed based on query strings.
* **Method**: Requests are distributed based on request methods.
* **Cookie**: Requests are distributed based on cookies.
* **SourceIp**: Requests are distributed based on source IP addresses.
This parameter is required.
public static CreateRuleRequest.CreateRuleRequestRuleConditions build(Map<String,?> map) throws Exception
Exceptionpublic CreateRuleRequest.CreateRuleRequestRuleConditions setCookieConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsCookieConfig cookieConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsCookieConfig getCookieConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setHeaderConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsHeaderConfig headerConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsHeaderConfig getHeaderConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setHostConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsHostConfig hostConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsHostConfig getHostConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setMethodConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsMethodConfig methodConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsMethodConfig getMethodConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setPathConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsPathConfig pathConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsPathConfig getPathConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setQueryStringConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsQueryStringConfig queryStringConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsQueryStringConfig getQueryStringConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setResponseHeaderConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsResponseHeaderConfig responseHeaderConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsResponseHeaderConfig getResponseHeaderConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setResponseStatusCodeConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsResponseStatusCodeConfig responseStatusCodeConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsResponseStatusCodeConfig getResponseStatusCodeConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setSourceIpConfig(CreateRuleRequest.CreateRuleRequestRuleConditionsSourceIpConfig sourceIpConfig)
public CreateRuleRequest.CreateRuleRequestRuleConditionsSourceIpConfig getSourceIpConfig()
public CreateRuleRequest.CreateRuleRequestRuleConditions setType(String type)
public String getType()
Copyright © 2024. All rights reserved.