Class NsRecord.Builder
java.lang.Object
software.amazon.awscdk.services.route53.NsRecord.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NsRecord>
- Enclosing class:
- NsRecord
@Stability(Stable)
public static final class NsRecord.Builder
extends Object
implements software.amazon.jsii.Builder<NsRecord>
A fluent builder for
NsRecord
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
A comment to add on the record.static NsRecord.Builder
recordName
(String recordName) The domain name for this record.The resource record cache time to live (TTL).The NS values.zone
(IHostedZone zone) The hosted zone in which to define the new record.
-
Method Details
-
create
@Stability(Stable) public static NsRecord.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
NsRecord.Builder
.
-
zone
The hosted zone in which to define the new record.- Parameters:
zone
- The hosted zone in which to define the new record. This parameter is required.- Returns:
this
-
comment
A comment to add on the record.Default: no comment
- Parameters:
comment
- A comment to add on the record. This parameter is required.- Returns:
this
-
recordName
The domain name for this record.Default: zone root
- Parameters:
recordName
- The domain name for this record. This parameter is required.- Returns:
this
-
ttl
The resource record cache time to live (TTL).Default: Duration.minutes(30)
- Parameters:
ttl
- The resource record cache time to live (TTL). This parameter is required.- Returns:
this
-
values
The NS values.- Parameters:
values
- The NS values. This parameter is required.- Returns:
this
-
build
-