Class DomainProps.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.DomainProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DomainProps>
- Enclosing interface:
DomainProps
@Stability(Experimental)
public static final class DomainProps.Builder
extends Object
implements software.amazon.jsii.Builder<DomainProps>
A builder for
DomainProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDomainProps.getApp()
autoSubdomainCreationPatterns
(List<String> autoSubdomainCreationPatterns) Sets the value ofDomainOptions.getAutoSubdomainCreationPatterns()
autoSubDomainIamRole
(IRole autoSubDomainIamRole) Sets the value ofDomainProps.getAutoSubDomainIamRole()
build()
Builds the configured instance.domainName
(String domainName) Sets the value ofDomainOptions.getDomainName()
enableAutoSubdomain
(Boolean enableAutoSubdomain) Sets the value ofDomainOptions.getEnableAutoSubdomain()
subDomains
(List<? extends SubDomain> subDomains) Sets the value ofDomainOptions.getSubDomains()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
app
Sets the value ofDomainProps.getApp()
- Parameters:
app
- The application to which the domain must be connected. This parameter is required.- Returns:
this
-
autoSubDomainIamRole
@Stability(Experimental) public DomainProps.Builder autoSubDomainIamRole(IRole autoSubDomainIamRole) Sets the value ofDomainProps.getAutoSubDomainIamRole()
- Parameters:
autoSubDomainIamRole
- The IAM role with access to Route53 when using enableAutoSubdomain.- Returns:
this
-
autoSubdomainCreationPatterns
@Stability(Experimental) public DomainProps.Builder autoSubdomainCreationPatterns(List<String> autoSubdomainCreationPatterns) Sets the value ofDomainOptions.getAutoSubdomainCreationPatterns()
- Parameters:
autoSubdomainCreationPatterns
- Branches which should automatically create subdomains.- Returns:
this
-
domainName
Sets the value ofDomainOptions.getDomainName()
- Parameters:
domainName
- The name of the domain.- Returns:
this
-
enableAutoSubdomain
@Stability(Experimental) public DomainProps.Builder enableAutoSubdomain(Boolean enableAutoSubdomain) Sets the value ofDomainOptions.getEnableAutoSubdomain()
- Parameters:
enableAutoSubdomain
- Automatically create subdomains for connected branches.- Returns:
this
-
subDomains
@Stability(Experimental) public DomainProps.Builder subDomains(List<? extends SubDomain> subDomains) Sets the value ofDomainOptions.getSubDomains()
- Parameters:
subDomains
- Subdomains.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DomainProps>
- Returns:
- a new instance of
DomainProps
- Throws:
NullPointerException
- if any required attribute was not provided
-