public static class UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig
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.
|
| 构造器和说明 |
|---|
UpdateRuleAttributeRequestRuleActionsCorsConfig() |
@NameInMap(value="AllowCredentials") public String allowCredentials
Specifies whether credentials can be carried in CORS requests. Valid values:
* **on**: yes
* **off**: no
@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 UpdateRuleAttributeRequestRuleActionsCorsConfig()
public static UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig build(Map<String,?> map) throws Exception
Exceptionpublic UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig setAllowCredentials(String allowCredentials)
public String getAllowCredentials()
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig setAllowHeaders(List<String> allowHeaders)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig setAllowMethods(List<String> allowMethods)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig setAllowOrigin(List<String> allowOrigin)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig setExposeHeaders(List<String> exposeHeaders)
public UpdateRuleAttributeRequest.UpdateRuleAttributeRequestRuleActionsCorsConfig setMaxAge(Long maxAge)
public Long getMaxAge()
Copyright © 2024. All rights reserved.