public static interface CORSRule.Builder extends SdkPojo, 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
applyMutation, build
CORSRule.Builder allowedHeaders(Collection<String> allowedHeaders)
Specifies which headers are allowed in a pre-flight OPTIONS request.
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.
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.
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.
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.
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.
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).
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).
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.
maxAgeSeconds
- The time in seconds that your browser is to cache the preflight response for the specified resource.Copyright © 2018. All rights reserved.