Class ApiMappingProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.ApiMappingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiMappingProps>
- Enclosing interface:
ApiMappingProps
@Stability(Stable)
public static final class ApiMappingProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApiMappingProps>
A builder for
ApiMappingProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofApiMappingProps.getApi()
apiMappingKey
(String apiMappingKey) Sets the value ofApiMappingProps.getApiMappingKey()
build()
Builds the configured instance.domainName
(IDomainName domainName) Sets the value ofApiMappingProps.getDomainName()
Sets the value ofApiMappingProps.getStage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
api
Sets the value ofApiMappingProps.getApi()
- Parameters:
api
- The Api to which this mapping is applied. This parameter is required.- Returns:
this
-
domainName
Sets the value ofApiMappingProps.getDomainName()
- Parameters:
domainName
- custom domain name of the mapping target. This parameter is required.- Returns:
this
-
apiMappingKey
Sets the value ofApiMappingProps.getApiMappingKey()
- Parameters:
apiMappingKey
- Api mapping key. The path where this stage should be mapped to on the domain- Returns:
this
-
stage
Sets the value ofApiMappingProps.getStage()
- Parameters:
stage
- stage for the ApiMapping resource required for WebSocket API defaults to default stage of an HTTP API.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApiMappingProps>
- Returns:
- a new instance of
ApiMappingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-