Class DomainMappingOptions.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.DomainMappingOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DomainMappingOptions>
- Enclosing interface:
- DomainMappingOptions
@Stability(Experimental)
public static final class DomainMappingOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DomainMappingOptions>
A builder for
DomainMappingOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(IDomainName domainName) Sets the value ofDomainMappingOptions.getDomainName()mappingKey(String mappingKey) Sets the value ofDomainMappingOptions.getMappingKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofDomainMappingOptions.getDomainName()- Parameters:
domainName- The domain name for the mapping. This parameter is required.- Returns:
this
-
mappingKey
Sets the value ofDomainMappingOptions.getMappingKey()- Parameters:
mappingKey- The API mapping key. Leave it undefined for the root path mapping.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DomainMappingOptions>- Returns:
- a new instance of
DomainMappingOptions - Throws:
NullPointerException- if any required attribute was not provided
-