public static class CreateRulesRequest.CreateRulesRequestRulesRuleConditions
extends com.aliyun.tea.TeaModel
| 构造器和说明 |
|---|
CreateRulesRequestRulesRuleConditions() |
@NameInMap(value="CookieConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsCookieConfig cookieConfig
The configurations of the cookies. You can add at most 20 cookies.
@NameInMap(value="HeaderConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsHeaderConfig headerConfig
The configuration of the header. You can add at most 20 headers.
@NameInMap(value="HostConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsHostConfig hostConfig
The configurations of the hosts. You can specify up to 20 resources.
@NameInMap(value="MethodConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsMethodConfig methodConfig
The configurations of the request methods. You can specify at most 20 request methods.
@NameInMap(value="PathConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsPathConfig pathConfig
The configurations of the paths. You can specify at most 20 paths.
@NameInMap(value="QueryStringConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsQueryStringConfig queryStringConfig
The configuration of the query conditions. You can specify at most 20 query conditions.
@NameInMap(value="ResponseHeaderConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsResponseHeaderConfig responseHeaderConfig
The configuration of the header. You can add at most 20 headers.
@NameInMap(value="ResponseStatusCodeConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsResponseStatusCodeConfig responseStatusCodeConfig
The configurations of the response status codes.
@NameInMap(value="SourceIpConfig") public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsSourceIpConfig sourceIpConfig
The configuration of the source IP addresses based on which user traffic is matched. This parameter is required and takes effect only when **Type** is set to **SourceIP**. You can specify at most five values for **SourceIp**.
@NameInMap(value="Type") public String type
The type of forwarding rule. You can specify at most seven types. Valid values:
* **Host**: Responses are forwarded based on hosts.
* **Path**: Responses are forwarded based on paths.
* **Header**: Responses are forwarded based on HTTP headers.
* **QueryString**: Responses are forwarded based on query strings.
* **Method**: Responses are forwarded based on request methods.
* **Cookie**: Responses are forwarded based on cookies.
* **SourceIp:**: Responses are forwarded based on source IP addresses.
* **ResponseHeader**: Responses are forwarded based on HTTP response headers.
* **ResponseStatusCode**: Responses are forwarded based on response status codes.
This parameter is required.
public static CreateRulesRequest.CreateRulesRequestRulesRuleConditions build(Map<String,?> map) throws Exception
Exceptionpublic CreateRulesRequest.CreateRulesRequestRulesRuleConditions setCookieConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsCookieConfig cookieConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsCookieConfig getCookieConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setHeaderConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsHeaderConfig headerConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsHeaderConfig getHeaderConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setHostConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsHostConfig hostConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsHostConfig getHostConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setMethodConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsMethodConfig methodConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsMethodConfig getMethodConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setPathConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsPathConfig pathConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsPathConfig getPathConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setQueryStringConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsQueryStringConfig queryStringConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsQueryStringConfig getQueryStringConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setResponseHeaderConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsResponseHeaderConfig responseHeaderConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsResponseHeaderConfig getResponseHeaderConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setResponseStatusCodeConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsResponseStatusCodeConfig responseStatusCodeConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsResponseStatusCodeConfig getResponseStatusCodeConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setSourceIpConfig(CreateRulesRequest.CreateRulesRequestRulesRuleConditionsSourceIpConfig sourceIpConfig)
public CreateRulesRequest.CreateRulesRequestRulesRuleConditionsSourceIpConfig getSourceIpConfig()
public CreateRulesRequest.CreateRulesRequestRulesRuleConditions setType(String type)
public String getType()
Copyright © 2024. All rights reserved.