@Stability(value=Stable) public static final class ProxyResourceProps.Builder extends Object implements software.amazon.jsii.Builder<ProxyResourceProps>
ProxyResourceProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ProxyResourceProps.Builder |
anyMethod(Boolean anyMethod)
Sets the value of
ProxyResourceOptions.getAnyMethod() |
ProxyResourceProps |
build()
Builds the configured instance.
|
ProxyResourceProps.Builder |
defaultCorsPreflightOptions(CorsOptions defaultCorsPreflightOptions)
Sets the value of
ResourceOptions.getDefaultCorsPreflightOptions() |
ProxyResourceProps.Builder |
defaultIntegration(Integration defaultIntegration)
Sets the value of
ResourceOptions.getDefaultIntegration() |
ProxyResourceProps.Builder |
defaultMethodOptions(MethodOptions defaultMethodOptions)
Sets the value of
ResourceOptions.getDefaultMethodOptions() |
ProxyResourceProps.Builder |
parent(IResource parent)
Sets the value of
ProxyResourceProps.getParent() |
@Stability(value=Stable) public ProxyResourceProps.Builder parent(IResource parent)
ProxyResourceProps.getParent()parent - The parent resource of this resource. This parameter is required.
You can either pass another
Resource object or a RestApi object here.this@Stability(value=Stable) public ProxyResourceProps.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 ProxyResourceProps.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 ProxyResourceProps.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 ProxyResourceProps.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 ProxyResourceProps build()
build in interface software.amazon.jsii.Builder<ProxyResourceProps>ProxyResourcePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.