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