Class CrossAccountZoneDelegationRecordProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CrossAccountZoneDelegationRecordProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CrossAccountZoneDelegationRecordProps>
- Enclosing interface:
CrossAccountZoneDelegationRecordProps
@Stability(Stable)
public static final class CrossAccountZoneDelegationRecordProps.Builder
extends Object
implements software.amazon.jsii.Builder<CrossAccountZoneDelegationRecordProps>
A builder for
CrossAccountZoneDelegationRecordProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.delegatedZone
(IHostedZone delegatedZone) Sets the value ofCrossAccountZoneDelegationRecordProps.getDelegatedZone()
delegationRole
(IRole delegationRole) Sets the value ofCrossAccountZoneDelegationRecordProps.getDelegationRole()
parentHostedZoneId
(String parentHostedZoneId) Sets the value ofCrossAccountZoneDelegationRecordProps.getParentHostedZoneId()
parentHostedZoneName
(String parentHostedZoneName) Sets the value ofCrossAccountZoneDelegationRecordProps.getParentHostedZoneName()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofCrossAccountZoneDelegationRecordProps.getRemovalPolicy()
Sets the value ofCrossAccountZoneDelegationRecordProps.getTtl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
delegatedZone
@Stability(Stable) public CrossAccountZoneDelegationRecordProps.Builder delegatedZone(IHostedZone delegatedZone) Sets the value ofCrossAccountZoneDelegationRecordProps.getDelegatedZone()
- Parameters:
delegatedZone
- The zone to be delegated. This parameter is required.- Returns:
this
-
delegationRole
@Stability(Stable) public CrossAccountZoneDelegationRecordProps.Builder delegationRole(IRole delegationRole) Sets the value ofCrossAccountZoneDelegationRecordProps.getDelegationRole()
- Parameters:
delegationRole
- The delegation role in the parent account. This parameter is required.- Returns:
this
-
parentHostedZoneId
@Stability(Stable) public CrossAccountZoneDelegationRecordProps.Builder parentHostedZoneId(String parentHostedZoneId) Sets the value ofCrossAccountZoneDelegationRecordProps.getParentHostedZoneId()
- Parameters:
parentHostedZoneId
- The hosted zone id in the parent account.- Returns:
this
-
parentHostedZoneName
@Stability(Stable) public CrossAccountZoneDelegationRecordProps.Builder parentHostedZoneName(String parentHostedZoneName) Sets the value ofCrossAccountZoneDelegationRecordProps.getParentHostedZoneName()
- Parameters:
parentHostedZoneName
- The hosted zone name in the parent account.- Returns:
this
-
removalPolicy
@Stability(Stable) public CrossAccountZoneDelegationRecordProps.Builder removalPolicy(RemovalPolicy removalPolicy) Sets the value ofCrossAccountZoneDelegationRecordProps.getRemovalPolicy()
- Parameters:
removalPolicy
- The removal policy to apply to the record set.- Returns:
this
-
ttl
Sets the value ofCrossAccountZoneDelegationRecordProps.getTtl()
- Parameters:
ttl
- The resource record cache time to live (TTL).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CrossAccountZoneDelegationRecordProps>
- Returns:
- a new instance of
CrossAccountZoneDelegationRecordProps
- Throws:
NullPointerException
- if any required attribute was not provided
-