public static class CreateRulesRequest.CreateRulesRequestRulesRuleActionsCorsConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
allowCredentials
Specifies whether to allow credentials to be carried in CORS requests.
|
List<String> |
allowHeaders
The allowed headers for CORS requests.
|
List<String> |
allowMethods
The allowed HTTP methods for CORS requests.
|
List<String> |
allowOrigin
The allowed origins of CORS requests.
|
List<String> |
exposeHeaders
The headers that can be exposed.
|
Long |
maxAge
The maximum cache time of preflight requests in the browser.
|
| 构造器和说明 |
|---|
CreateRulesRequestRulesRuleActionsCorsConfig() |
@NameInMap(value="AllowCredentials") public String allowCredentials
Specifies whether to allow credentials to be carried in CORS requests. Valid values:
* **on**: allows credentials to be carried in CORS requests.
* **off**: does not allow credentials to be carried in CORS requests.
@NameInMap(value="AllowHeaders") public List<String> allowHeaders
The allowed headers for CORS requests.
@NameInMap(value="AllowMethods") public List<String> allowMethods
The allowed HTTP methods for CORS requests.
@NameInMap(value="AllowOrigin") public List<String> allowOrigin
The allowed origins of CORS requests.
@NameInMap(value="ExposeHeaders") public List<String> exposeHeaders
The headers that can be exposed.
@NameInMap(value="MaxAge") public Long maxAge
The maximum cache time of preflight requests in the browser. Unit: seconds.
Valid values: **-1** to **172800**.
public CreateRulesRequestRulesRuleActionsCorsConfig()
public static CreateRulesRequest.CreateRulesRequestRulesRuleActionsCorsConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateRulesRequest.CreateRulesRequestRulesRuleActionsCorsConfig setAllowCredentials(String allowCredentials)
public String getAllowCredentials()
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsCorsConfig setAllowHeaders(List<String> allowHeaders)
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsCorsConfig setAllowMethods(List<String> allowMethods)
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsCorsConfig setAllowOrigin(List<String> allowOrigin)
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsCorsConfig setExposeHeaders(List<String> exposeHeaders)
public CreateRulesRequest.CreateRulesRequestRulesRuleActionsCorsConfig setMaxAge(Long maxAge)
public Long getMaxAge()
Copyright © 2024. All rights reserved.