Class CfnResourceSet.TargetResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet.TargetResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceSet.TargetResourceProperty>
- Enclosing interface:
CfnResourceSet.TargetResourceProperty
@Stability(Stable)
public static final class CfnResourceSet.TargetResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceSet.TargetResourceProperty>
A builder for
CfnResourceSet.TargetResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.nlbResource
(IResolvable nlbResource) Sets the value ofCfnResourceSet.TargetResourceProperty.getNlbResource()
nlbResource
(CfnResourceSet.NLBResourceProperty nlbResource) Sets the value ofCfnResourceSet.TargetResourceProperty.getNlbResource()
r53Resource
(IResolvable r53Resource) Sets the value ofCfnResourceSet.TargetResourceProperty.getR53Resource()
r53Resource
(CfnResourceSet.R53ResourceRecordProperty r53Resource) Sets the value ofCfnResourceSet.TargetResourceProperty.getR53Resource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nlbResource
@Stability(Stable) public CfnResourceSet.TargetResourceProperty.Builder nlbResource(IResolvable nlbResource) Sets the value ofCfnResourceSet.TargetResourceProperty.getNlbResource()
- Parameters:
nlbResource
- The Network Load Balancer resource that a DNS target resource points to.- Returns:
this
-
nlbResource
@Stability(Stable) public CfnResourceSet.TargetResourceProperty.Builder nlbResource(CfnResourceSet.NLBResourceProperty nlbResource) Sets the value ofCfnResourceSet.TargetResourceProperty.getNlbResource()
- Parameters:
nlbResource
- The Network Load Balancer resource that a DNS target resource points to.- Returns:
this
-
r53Resource
@Stability(Stable) public CfnResourceSet.TargetResourceProperty.Builder r53Resource(IResolvable r53Resource) Sets the value ofCfnResourceSet.TargetResourceProperty.getR53Resource()
- Parameters:
r53Resource
- The Route 53 resource that a DNS target resource record points to.- Returns:
this
-
r53Resource
@Stability(Stable) public CfnResourceSet.TargetResourceProperty.Builder r53Resource(CfnResourceSet.R53ResourceRecordProperty r53Resource) Sets the value ofCfnResourceSet.TargetResourceProperty.getR53Resource()
- Parameters:
r53Resource
- The Route 53 resource that a DNS target resource record points to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceSet.TargetResourceProperty>
- Returns:
- a new instance of
CfnResourceSet.TargetResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-