Class HttpsRedirectProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53.patterns.HttpsRedirectProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpsRedirectProps>
- Enclosing interface:
HttpsRedirectProps
@Stability(Stable)
public static final class HttpsRedirectProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpsRedirectProps>
A builder for
HttpsRedirectProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificate
(ICertificate certificate) Sets the value ofHttpsRedirectProps.getCertificate()
recordNames
(List<String> recordNames) Sets the value ofHttpsRedirectProps.getRecordNames()
targetDomain
(String targetDomain) Sets the value ofHttpsRedirectProps.getTargetDomain()
zone
(IHostedZone zone) Sets the value ofHttpsRedirectProps.getZone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetDomain
Sets the value ofHttpsRedirectProps.getTargetDomain()
- Parameters:
targetDomain
- The redirect target fully qualified domain name (FQDN). This parameter is required. An alias record will be created that points to your CloudFront distribution. Root domain or sub-domain can be supplied.- Returns:
this
-
zone
Sets the value ofHttpsRedirectProps.getZone()
- Parameters:
zone
- Hosted zone of the domain which will be used to create alias record(s) from domain names in the hosted zone to the target domain. This parameter is required. The hosted zone must contain entries for the domain name(s) supplied throughrecordNames
that will redirect to the target domain.Domain names in the hosted zone can include a specific domain (example.com) and its subdomains (acme.example.com, zenith.example.com).
- Returns:
this
-
certificate
Sets the value ofHttpsRedirectProps.getCertificate()
- Parameters:
certificate
- The AWS Certificate Manager (ACM) certificate that will be associated with the CloudFront distribution that will be created. If provided, the certificate must be stored in us-east-1 (N. Virginia)- Returns:
this
-
recordNames
Sets the value ofHttpsRedirectProps.getRecordNames()
- Parameters:
recordNames
- The domain names that will redirect totargetDomain
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpsRedirectProps>
- Returns:
- a new instance of
HttpsRedirectProps
- Throws:
NullPointerException
- if any required attribute was not provided
-