Class CfnLoadBalancerTlsCertificateProps.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnLoadBalancerTlsCertificateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoadBalancerTlsCertificateProps>
- Enclosing interface:
CfnLoadBalancerTlsCertificateProps
@Stability(Stable)
public static final class CfnLoadBalancerTlsCertificateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoadBalancerTlsCertificateProps>
A builder for
CfnLoadBalancerTlsCertificateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificateAlternativeNames
(List<String> certificateAlternativeNames) Sets the value ofCfnLoadBalancerTlsCertificateProps.getCertificateAlternativeNames()
certificateDomainName
(String certificateDomainName) Sets the value ofCfnLoadBalancerTlsCertificateProps.getCertificateDomainName()
certificateName
(String certificateName) Sets the value ofCfnLoadBalancerTlsCertificateProps.getCertificateName()
httpsRedirectionEnabled
(Boolean httpsRedirectionEnabled) Sets the value ofCfnLoadBalancerTlsCertificateProps.getHttpsRedirectionEnabled()
httpsRedirectionEnabled
(IResolvable httpsRedirectionEnabled) Sets the value ofCfnLoadBalancerTlsCertificateProps.getHttpsRedirectionEnabled()
isAttached
(Boolean isAttached) Sets the value ofCfnLoadBalancerTlsCertificateProps.getIsAttached()
isAttached
(IResolvable isAttached) Sets the value ofCfnLoadBalancerTlsCertificateProps.getIsAttached()
loadBalancerName
(String loadBalancerName) Sets the value ofCfnLoadBalancerTlsCertificateProps.getLoadBalancerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateDomainName
@Stability(Stable) public CfnLoadBalancerTlsCertificateProps.Builder certificateDomainName(String certificateDomainName) Sets the value ofCfnLoadBalancerTlsCertificateProps.getCertificateDomainName()
- Parameters:
certificateDomainName
- The domain name for the SSL/TLS certificate. This parameter is required. For example,example.com
orwww.example.com
.- Returns:
this
-
certificateName
@Stability(Stable) public CfnLoadBalancerTlsCertificateProps.Builder certificateName(String certificateName) Sets the value ofCfnLoadBalancerTlsCertificateProps.getCertificateName()
- Parameters:
certificateName
- The name of the SSL/TLS certificate. This parameter is required.- Returns:
this
-
loadBalancerName
@Stability(Stable) public CfnLoadBalancerTlsCertificateProps.Builder loadBalancerName(String loadBalancerName) Sets the value ofCfnLoadBalancerTlsCertificateProps.getLoadBalancerName()
- Parameters:
loadBalancerName
- The name of the load balancer that the SSL/TLS certificate is attached to. This parameter is required.- Returns:
this
-
certificateAlternativeNames
@Stability(Stable) public CfnLoadBalancerTlsCertificateProps.Builder certificateAlternativeNames(List<String> certificateAlternativeNames) Sets the value ofCfnLoadBalancerTlsCertificateProps.getCertificateAlternativeNames()
- Parameters:
certificateAlternativeNames
- An array of alternative domain names and subdomain names for your SSL/TLS certificate. In addition to the primary domain name, you can have up to nine alternative domain names. Wildcards (such as*.example.com
) are not supported.- Returns:
this
-
httpsRedirectionEnabled
@Stability(Stable) public CfnLoadBalancerTlsCertificateProps.Builder httpsRedirectionEnabled(Boolean httpsRedirectionEnabled) Sets the value ofCfnLoadBalancerTlsCertificateProps.getHttpsRedirectionEnabled()
- Parameters:
httpsRedirectionEnabled
- A Boolean value indicating whether HTTPS redirection is enabled for the load balancer that the TLS certificate is attached to.- Returns:
this
-
httpsRedirectionEnabled
@Stability(Stable) public CfnLoadBalancerTlsCertificateProps.Builder httpsRedirectionEnabled(IResolvable httpsRedirectionEnabled) Sets the value ofCfnLoadBalancerTlsCertificateProps.getHttpsRedirectionEnabled()
- Parameters:
httpsRedirectionEnabled
- A Boolean value indicating whether HTTPS redirection is enabled for the load balancer that the TLS certificate is attached to.- Returns:
this
-
isAttached
Sets the value ofCfnLoadBalancerTlsCertificateProps.getIsAttached()
- Parameters:
isAttached
- A Boolean value indicating whether the SSL/TLS certificate is attached to a Lightsail load balancer.- Returns:
this
-
isAttached
@Stability(Stable) public CfnLoadBalancerTlsCertificateProps.Builder isAttached(IResolvable isAttached) Sets the value ofCfnLoadBalancerTlsCertificateProps.getIsAttached()
- Parameters:
isAttached
- A Boolean value indicating whether the SSL/TLS certificate is attached to a Lightsail load balancer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoadBalancerTlsCertificateProps>
- Returns:
- a new instance of
CfnLoadBalancerTlsCertificateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-