Class CfnDomainName.DomainNameConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnDomainName.DomainNameConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainName.DomainNameConfigurationProperty>
- Enclosing interface:
CfnDomainName.DomainNameConfigurationProperty
@Stability(Stable)
public static final class CfnDomainName.DomainNameConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainName.DomainNameConfigurationProperty>
A builder for
CfnDomainName.DomainNameConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificateArn
(String certificateArn) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getCertificateArn()
certificateName
(String certificateName) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getCertificateName()
endpointType
(String endpointType) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getEndpointType()
ownershipVerificationCertificateArn
(String ownershipVerificationCertificateArn) securityPolicy
(String securityPolicy) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getSecurityPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateArn
@Stability(Stable) public CfnDomainName.DomainNameConfigurationProperty.Builder certificateArn(String certificateArn) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getCertificateArn()
- Parameters:
certificateArn
- An AWS -managed certificate that will be used by the edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.- Returns:
this
-
certificateName
@Stability(Stable) public CfnDomainName.DomainNameConfigurationProperty.Builder certificateName(String certificateName) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getCertificateName()
- Parameters:
certificateName
- The user-friendly name of the certificate that will be used by the edge-optimized endpoint for this domain name.- Returns:
this
-
endpointType
@Stability(Stable) public CfnDomainName.DomainNameConfigurationProperty.Builder endpointType(String endpointType) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getEndpointType()
- Parameters:
endpointType
- The endpoint type.- Returns:
this
-
ownershipVerificationCertificateArn
@Stability(Stable) public CfnDomainName.DomainNameConfigurationProperty.Builder ownershipVerificationCertificateArn(String ownershipVerificationCertificateArn) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getOwnershipVerificationCertificateArn()
- Parameters:
ownershipVerificationCertificateArn
- The Amazon resource name (ARN) for the public certificate issued by AWS Certificate Manager . This ARN is used to validate custom domain ownership. It's required only if you configure mutual TLS and use either an ACM-imported or a private CA certificate ARN as the regionalCertificateArn.- Returns:
this
-
securityPolicy
@Stability(Stable) public CfnDomainName.DomainNameConfigurationProperty.Builder securityPolicy(String securityPolicy) Sets the value ofCfnDomainName.DomainNameConfigurationProperty.getSecurityPolicy()
- Parameters:
securityPolicy
- The Transport Layer Security (TLS) version of the security policy for this domain name. The valid values areTLS_1_0
andTLS_1_2
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomainName.DomainNameConfigurationProperty>
- Returns:
- a new instance of
CfnDomainName.DomainNameConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-