Class AliasRecordTargetConfig.Builder
java.lang.Object
software.amazon.awscdk.services.route53.AliasRecordTargetConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AliasRecordTargetConfig>
- Enclosing interface:
AliasRecordTargetConfig
@Stability(Stable)
public static final class AliasRecordTargetConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AliasRecordTargetConfig>
A builder for
AliasRecordTargetConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofAliasRecordTargetConfig.getDnsName()
hostedZoneId
(String hostedZoneId) Sets the value ofAliasRecordTargetConfig.getHostedZoneId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsName
Sets the value ofAliasRecordTargetConfig.getDnsName()
- Parameters:
dnsName
- DNS name of the target. This parameter is required.- Returns:
this
-
hostedZoneId
Sets the value ofAliasRecordTargetConfig.getHostedZoneId()
- Parameters:
hostedZoneId
- Hosted zone ID of the target. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AliasRecordTargetConfig>
- Returns:
- a new instance of
AliasRecordTargetConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-