@Stability(value=Experimental) public static final class CorsPreflightOptions.Builder extends Object implements software.amazon.jsii.Builder<CorsPreflightOptions>
CorsPreflightOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CorsPreflightOptions.Builder |
allowCredentials(Boolean allowCredentials)
Sets the value of
CorsPreflightOptions.getAllowCredentials() |
CorsPreflightOptions.Builder |
allowHeaders(List<String> allowHeaders)
Sets the value of
CorsPreflightOptions.getAllowHeaders() |
CorsPreflightOptions.Builder |
allowMethods(List<? extends CorsHttpMethod> allowMethods)
Sets the value of
CorsPreflightOptions.getAllowMethods() |
CorsPreflightOptions.Builder |
allowOrigins(List<String> allowOrigins)
Sets the value of
CorsPreflightOptions.getAllowOrigins() |
CorsPreflightOptions |
build()
Builds the configured instance.
|
CorsPreflightOptions.Builder |
exposeHeaders(List<String> exposeHeaders)
Sets the value of
CorsPreflightOptions.getExposeHeaders() |
CorsPreflightOptions.Builder |
maxAge(Duration maxAge)
Sets the value of
CorsPreflightOptions.getMaxAge() |
@Stability(value=Experimental) public CorsPreflightOptions.Builder allowCredentials(Boolean allowCredentials)
CorsPreflightOptions.getAllowCredentials()allowCredentials - Specifies whether credentials are included in the CORS request.this@Stability(value=Experimental) public CorsPreflightOptions.Builder allowHeaders(List<String> allowHeaders)
CorsPreflightOptions.getAllowHeaders()allowHeaders - Represents a collection of allowed headers.this@Stability(value=Experimental) public CorsPreflightOptions.Builder allowMethods(List<? extends CorsHttpMethod> allowMethods)
CorsPreflightOptions.getAllowMethods()allowMethods - Represents a collection of allowed HTTP methods.this@Stability(value=Experimental) public CorsPreflightOptions.Builder allowOrigins(List<String> allowOrigins)
CorsPreflightOptions.getAllowOrigins()allowOrigins - Represents a collection of allowed origins.this@Stability(value=Experimental) public CorsPreflightOptions.Builder exposeHeaders(List<String> exposeHeaders)
CorsPreflightOptions.getExposeHeaders()exposeHeaders - Represents a collection of exposed headers.this@Stability(value=Experimental) public CorsPreflightOptions.Builder maxAge(Duration maxAge)
CorsPreflightOptions.getMaxAge()maxAge - The duration that the browser should cache preflight request results.this@Stability(value=Experimental) public CorsPreflightOptions build()
build in interface software.amazon.jsii.Builder<CorsPreflightOptions>CorsPreflightOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.