public class UpdateBucketCORSOptRequest extends AbstractModel
Constructor and Description |
---|
UpdateBucketCORSOptRequest() |
UpdateBucketCORSOptRequest(UpdateBucketCORSOptRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getAllowedHeaders()
Get Specifies the custom HTTP request headers that the browser is allowed to include in a CORS request.
|
String[] |
getAllowedMethods()
Get Allowed HTTP method(s).
|
String[] |
getAllowedOrigins()
Get Allowed access source.
|
String[] |
getExposeHeaders()
Get CORS response header(s) that can be exposed to the browser, case-insensitive.
|
Long |
getMaxAgeSeconds()
Get Sets the validity duration for the CORS configuration (in second).
|
void |
setAllowedHeaders(String[] AllowedHeaders)
Set Specifies the custom HTTP request headers that the browser is allowed to include in a CORS request.
|
void |
setAllowedMethods(String[] AllowedMethods)
Set Allowed HTTP method(s).
|
void |
setAllowedOrigins(String[] AllowedOrigins)
Set Allowed access source.
|
void |
setExposeHeaders(String[] ExposeHeaders)
Set CORS response header(s) that can be exposed to the browser, case-insensitive.
|
void |
setMaxAgeSeconds(Long MaxAgeSeconds)
Set Sets the validity duration for the CORS configuration (in second).
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public UpdateBucketCORSOptRequest()
public UpdateBucketCORSOptRequest(UpdateBucketCORSOptRequest source)
public String[] getAllowedOrigins()
public void setAllowedOrigins(String[] AllowedOrigins)
AllowedOrigins
- Allowed access source. For details, see [COS Documentation](https://intl.cloud.tencent.com/document/product/436/8279?from_cn_redirect=1).public String[] getAllowedMethods()
public void setAllowedMethods(String[] AllowedMethods)
AllowedMethods
- Allowed HTTP method(s). Multiple methods are allowed, including PUT, GET, POST, and HEAD. For details, see [COS Documentation](https://intl.cloud.tencent.com/document/product/436/8279?from_cn_redirect=1).public String[] getAllowedHeaders()
public void setAllowedHeaders(String[] AllowedHeaders)
AllowedHeaders
- Specifies the custom HTTP request headers that the browser is allowed to include in a CORS request. Wildcard (*) is supported, indicating allowing all headers (recommended). For details, see [COS Documentation](https://intl.cloud.tencent.com/document/product/436/8279?from_cn_redirect=1).public Long getMaxAgeSeconds()
public void setMaxAgeSeconds(Long MaxAgeSeconds)
MaxAgeSeconds
- Sets the validity duration for the CORS configuration (in second). For details, see [COS Documentation](https://intl.cloud.tencent.com/document/product/436/8279?from_cn_redirect=1).public String[] getExposeHeaders()
public void setExposeHeaders(String[] ExposeHeaders)
ExposeHeaders
- CORS response header(s) that can be exposed to the browser, case-insensitive. If this parameter is not specified, the browser can access only simple response headers Cache-Control, Content-Type, Expires, and Last-Modified by default. For details, see [COS Documentation](https://intl.cloud.tencent.com/document/product/436/8279?from_cn_redirect=1).Copyright © 2022. All rights reserved.