Class CfnResourceSet.DNSTargetResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet.DNSTargetResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceSet.DNSTargetResourceProperty>
- Enclosing interface:
- CfnResourceSet.DNSTargetResourceProperty
@Stability(Stable)
public static final class CfnResourceSet.DNSTargetResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceSet.DNSTargetResourceProperty>
A builder for
CfnResourceSet.DNSTargetResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.domainName
(String domainName) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getDomainName()
hostedZoneArn
(String hostedZoneArn) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getHostedZoneArn()
recordSetId
(String recordSetId) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getRecordSetId()
recordType
(String recordType) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getRecordType()
targetResource
(IResolvable targetResource) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getTargetResource()
targetResource
(CfnResourceSet.TargetResourceProperty targetResource) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getTargetResource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
@Stability(Stable) public CfnResourceSet.DNSTargetResourceProperty.Builder domainName(String domainName) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getDomainName()
- Parameters:
domainName
- The domain name that acts as an ingress point to a portion of the customer application.- Returns:
this
-
hostedZoneArn
@Stability(Stable) public CfnResourceSet.DNSTargetResourceProperty.Builder hostedZoneArn(String hostedZoneArn) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getHostedZoneArn()
- Parameters:
hostedZoneArn
- The hosted zone Amazon Resource Name (ARN) that contains the DNS record with the provided name of the target resource.- Returns:
this
-
recordSetId
@Stability(Stable) public CfnResourceSet.DNSTargetResourceProperty.Builder recordSetId(String recordSetId) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getRecordSetId()
- Parameters:
recordSetId
- The Amazon Route 53 record set ID that uniquely identifies a DNS record, given a name and a type.- Returns:
this
-
recordType
@Stability(Stable) public CfnResourceSet.DNSTargetResourceProperty.Builder recordType(String recordType) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getRecordType()
- Parameters:
recordType
- The type of DNS record of the target resource.- Returns:
this
-
targetResource
@Stability(Stable) public CfnResourceSet.DNSTargetResourceProperty.Builder targetResource(IResolvable targetResource) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getTargetResource()
- Parameters:
targetResource
- The target resource that the Route 53 record points to.- Returns:
this
-
targetResource
@Stability(Stable) public CfnResourceSet.DNSTargetResourceProperty.Builder targetResource(CfnResourceSet.TargetResourceProperty targetResource) Sets the value ofCfnResourceSet.DNSTargetResourceProperty.getTargetResource()
- Parameters:
targetResource
- The target resource that the Route 53 record points to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceSet.DNSTargetResourceProperty>
- Returns:
- a new instance of
CfnResourceSet.DNSTargetResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-