public static interface CORSRule.Builder extends CopyableBuilder<CORSRule.Builder,CORSRule>
Modifier and Type | Method and Description |
---|---|
CORSRule.Builder |
allowedHeaders(Collection<String> allowedHeaders)
Specifies which headers are allowed in a pre-flight OPTIONS request.
|
CORSRule.Builder |
allowedHeaders(String... allowedHeaders)
Specifies which headers are allowed in a pre-flight OPTIONS request.
|
CORSRule.Builder |
allowedMethods(Collection<String> allowedMethods)
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
|
CORSRule.Builder |
allowedMethods(String... allowedMethods)
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
|
CORSRule.Builder |
allowedOrigins(Collection<String> allowedOrigins)
One or more origins you want customers to be able to access the bucket from.
|
CORSRule.Builder |
allowedOrigins(String... allowedOrigins)
One or more origins you want customers to be able to access the bucket from.
|
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 |
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 |
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)
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)
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)
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)
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.