Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CorsRule.Builder |
allowedHeaders(List<String> allowedHeaders)
Sets the value of
CorsRule.getAllowedHeaders() |
CorsRule.Builder |
allowedMethods(List<? extends HttpMethods> allowedMethods)
Sets the value of
CorsRule.getAllowedMethods() |
CorsRule.Builder |
allowedOrigins(List<String> allowedOrigins)
Sets the value of
CorsRule.getAllowedOrigins() |
CorsRule |
build()
Builds the configured instance.
|
CorsRule.Builder |
exposedHeaders(List<String> exposedHeaders)
Sets the value of
CorsRule.getExposedHeaders() |
CorsRule.Builder |
id(String id)
Sets the value of
CorsRule.getId() |
CorsRule.Builder |
maxAge(Number maxAge)
Sets the value of
CorsRule.getMaxAge() |
@Stability(value=Experimental) public CorsRule.Builder allowedMethods(List<? extends HttpMethods> allowedMethods)
CorsRule.getAllowedMethods()
allowedMethods
- An HTTP method that you allow the origin to execute. This parameter is required.this
@Stability(value=Experimental) public CorsRule.Builder allowedOrigins(List<String> allowedOrigins)
CorsRule.getAllowedOrigins()
allowedOrigins
- One or more origins you want customers to be able to access the bucket from. This parameter is required.this
@Stability(value=Experimental) public CorsRule.Builder allowedHeaders(List<String> allowedHeaders)
CorsRule.getAllowedHeaders()
allowedHeaders
- Headers that are specified in the Access-Control-Request-Headers header.this
@Stability(value=Experimental) public CorsRule.Builder exposedHeaders(List<String> exposedHeaders)
CorsRule.getExposedHeaders()
exposedHeaders
- One or more headers in the response that you want customers to be able to access from their applications.this
@Stability(value=Experimental) public CorsRule.Builder id(String id)
CorsRule.getId()
id
- A unique identifier for this rule.this
@Stability(value=Experimental) public CorsRule.Builder maxAge(Number maxAge)
CorsRule.getMaxAge()
maxAge
- The time in seconds that your browser is to cache the preflight response for the specified resource.this
@Stability(value=Experimental) public CorsRule build()
build
in interface software.amazon.jsii.Builder<CorsRule>
CorsRule
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.