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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAliasRecordTargetConfig.getDnsName()evaluateTargetHealth(Boolean evaluateTargetHealth) Sets the value ofAliasRecordTargetConfig.getEvaluateTargetHealth()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
-
evaluateTargetHealth
@Stability(Stable) public AliasRecordTargetConfig.Builder evaluateTargetHealth(Boolean evaluateTargetHealth) Sets the value ofAliasRecordTargetConfig.getEvaluateTargetHealth()- Parameters:
evaluateTargetHealth- Evaluate the target health.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AliasRecordTargetConfig>- Returns:
- a new instance of
AliasRecordTargetConfig - Throws:
NullPointerException- if any required attribute was not provided
-