CopyableBuilder<CORSRule.Builder,CORSRule>
, SdkBuilder<CORSRule.Builder,CORSRule>
public static interface CORSRule.Builder extends CopyableBuilder<CORSRule.Builder,CORSRule>
Modifier and Type | Method | Description |
---|---|---|
CORSRule.Builder |
allowedHeaders(String... allowedHeaders) |
Specifies which headers are allowed in a pre-flight OPTIONS request.
|
CORSRule.Builder |
allowedHeaders(Collection<String> allowedHeaders) |
Specifies which headers are allowed in a pre-flight OPTIONS request.
|
CORSRule.Builder |
allowedMethods(String... allowedMethods) |
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
|
CORSRule.Builder |
allowedMethods(Collection<String> allowedMethods) |
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
|
CORSRule.Builder |
allowedOrigins(String... allowedOrigins) |
One or more origins you want customers to be able to access the bucket from.
|
CORSRule.Builder |
allowedOrigins(Collection<String> allowedOrigins) |
One or more origins you want customers to be able to access the bucket from.
|
CORSRule.Builder |
exposeHeaders(String... exposeHeaders) |
One or more headers in the response that you want customers to be able to access from their applications (for
example, from a JavaScript XMLHttpRequest object).
|
CORSRule.Builder |
exposeHeaders(Collection<String> exposeHeaders) |
One or more headers in the response that you want customers to be able to access from their applications (for
example, from a JavaScript XMLHttpRequest object).
|
CORSRule.Builder |
maxAgeSeconds(Integer maxAgeSeconds) |
The time in seconds that your browser is to cache the preflight response for the specified resource.
|
copy
apply, build
CORSRule.Builder allowedHeaders(Collection<String> allowedHeaders)
allowedHeaders
- Specifies which headers are allowed in a pre-flight OPTIONS request.CORSRule.Builder allowedHeaders(String... allowedHeaders)
NOTE: This method appends the values to the existing list (if any). Use
#setAllowedHeaders(java.util.Collection)
or #withAllowedHeaders(java.util.Collection)
if you
want to override the existing values.
allowedHeaders
- Specifies which headers are allowed in a pre-flight OPTIONS request.CORSRule.Builder allowedMethods(Collection<String> allowedMethods)
allowedMethods
- Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.CORSRule.Builder allowedMethods(String... allowedMethods)
NOTE: This method appends the values to the existing list (if any). Use
#setAllowedMethods(java.util.Collection)
or #withAllowedMethods(java.util.Collection)
if you
want to override the existing values.
allowedMethods
- Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.CORSRule.Builder allowedOrigins(Collection<String> allowedOrigins)
allowedOrigins
- One or more origins you want customers to be able to access the bucket from.CORSRule.Builder allowedOrigins(String... allowedOrigins)
NOTE: This method appends the values to the existing list (if any). Use
#setAllowedOrigins(java.util.Collection)
or #withAllowedOrigins(java.util.Collection)
if you
want to override the existing values.
allowedOrigins
- One or more origins you want customers to be able to access the bucket from.CORSRule.Builder exposeHeaders(Collection<String> exposeHeaders)
exposeHeaders
- One or more headers in the response that you want customers to be able to access from their
applications (for example, from a JavaScript XMLHttpRequest object).CORSRule.Builder exposeHeaders(String... exposeHeaders)
NOTE: This method appends the values to the existing list (if any). Use
#setExposeHeaders(java.util.Collection)
or #withExposeHeaders(java.util.Collection)
if you
want to override the existing values.
exposeHeaders
- One or more headers in the response that you want customers to be able to access from their
applications (for example, from a JavaScript XMLHttpRequest object).CORSRule.Builder maxAgeSeconds(Integer maxAgeSeconds)
maxAgeSeconds
- The time in seconds that your browser is to cache the preflight response for the specified resource.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.