@Stability(value=Stable) public static final class ProxyResourceOptions.Builder extends Object implements software.amazon.jsii.Builder<ProxyResourceOptions>
ProxyResourceOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ProxyResourceOptions.Builder |
anyMethod(Boolean anyMethod)
Sets the value of
ProxyResourceOptions.getAnyMethod() |
ProxyResourceOptions |
build()
Builds the configured instance.
|
ProxyResourceOptions.Builder |
defaultCorsPreflightOptions(CorsOptions defaultCorsPreflightOptions)
Sets the value of
ResourceOptions.getDefaultCorsPreflightOptions() |
ProxyResourceOptions.Builder |
defaultIntegration(Integration defaultIntegration)
Sets the value of
ResourceOptions.getDefaultIntegration() |
ProxyResourceOptions.Builder |
defaultMethodOptions(MethodOptions defaultMethodOptions)
Sets the value of
ResourceOptions.getDefaultMethodOptions() |
@Stability(value=Stable) public ProxyResourceOptions.Builder anyMethod(Boolean anyMethod)
ProxyResourceOptions.getAnyMethod()anyMethod - Adds an "ANY" method to this resource.
If set to false, you will have to explicitly
add methods to this resource after it's created.this@Stability(value=Stable) public ProxyResourceOptions.Builder defaultCorsPreflightOptions(CorsOptions defaultCorsPreflightOptions)
ResourceOptions.getDefaultCorsPreflightOptions()defaultCorsPreflightOptions - Adds a CORS preflight OPTIONS method to this resource and all child resources.
You can add CORS at the resource-level using addCorsPreflight.this@Stability(value=Stable) public ProxyResourceOptions.Builder defaultIntegration(Integration defaultIntegration)
ResourceOptions.getDefaultIntegration()defaultIntegration - An integration to use as a default for all methods created within this API unless an integration is specified.this@Stability(value=Stable) public ProxyResourceOptions.Builder defaultMethodOptions(MethodOptions defaultMethodOptions)
ResourceOptions.getDefaultMethodOptions()defaultMethodOptions - Method options to use as a default for all methods created within this API unless custom options are specified.this@Stability(value=Stable) public ProxyResourceOptions build()
build in interface software.amazon.jsii.Builder<ProxyResourceOptions>ProxyResourceOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.