public static class ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsCorsConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
allowCredentials
Indicates whether credentials can 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 dry run requests in the browser.
|
| 构造器和说明 |
|---|
ListRulesResponseBodyRulesRuleActionsCorsConfig() |
@NameInMap(value="AllowCredentials") public String allowCredentials
Indicates whether credentials can be carried in CORS requests. Valid values:
* **on**
* **off**
@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 dry run requests in the browser. Unit: seconds.
Valid values: **-1** to **172800**.
public ListRulesResponseBodyRulesRuleActionsCorsConfig()
public static ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsCorsConfig build(Map<String,?> map) throws Exception
Exceptionpublic ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsCorsConfig setAllowCredentials(String allowCredentials)
public String getAllowCredentials()
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsCorsConfig setAllowHeaders(List<String> allowHeaders)
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsCorsConfig setAllowMethods(List<String> allowMethods)
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsCorsConfig setAllowOrigin(List<String> allowOrigin)
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsCorsConfig setExposeHeaders(List<String> exposeHeaders)
public ListRulesResponseBody.ListRulesResponseBodyRulesRuleActionsCorsConfig setMaxAge(Long maxAge)
public Long getMaxAge()
Copyright © 2024. All rights reserved.