Class CfnResourceSet.ResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53recoveryreadiness.CfnResourceSet.ResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceSet.ResourceProperty>
- Enclosing interface:
CfnResourceSet.ResourceProperty
@Stability(Stable)
public static final class CfnResourceSet.ResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceSet.ResourceProperty>
A builder for
CfnResourceSet.ResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.componentId
(String componentId) Sets the value ofCfnResourceSet.ResourceProperty.getComponentId()
dnsTargetResource
(IResolvable dnsTargetResource) Sets the value ofCfnResourceSet.ResourceProperty.getDnsTargetResource()
dnsTargetResource
(CfnResourceSet.DNSTargetResourceProperty dnsTargetResource) Sets the value ofCfnResourceSet.ResourceProperty.getDnsTargetResource()
readinessScopes
(List<String> readinessScopes) Sets the value ofCfnResourceSet.ResourceProperty.getReadinessScopes()
resourceArn
(String resourceArn) Sets the value ofCfnResourceSet.ResourceProperty.getResourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
componentId
Sets the value ofCfnResourceSet.ResourceProperty.getComponentId()
- Parameters:
componentId
- The component identifier of the resource, generated when DNS target resource is used.- Returns:
this
-
dnsTargetResource
@Stability(Stable) public CfnResourceSet.ResourceProperty.Builder dnsTargetResource(IResolvable dnsTargetResource) Sets the value ofCfnResourceSet.ResourceProperty.getDnsTargetResource()
- Parameters:
dnsTargetResource
- A component for DNS/routing control readiness checks. This is a required setting whenResourceSet
ResourceSetType
is set toAWS::Route53RecoveryReadiness::DNSTargetResource
. Do not set it for any otherResourceSetType
setting.- Returns:
this
-
dnsTargetResource
@Stability(Stable) public CfnResourceSet.ResourceProperty.Builder dnsTargetResource(CfnResourceSet.DNSTargetResourceProperty dnsTargetResource) Sets the value ofCfnResourceSet.ResourceProperty.getDnsTargetResource()
- Parameters:
dnsTargetResource
- A component for DNS/routing control readiness checks. This is a required setting whenResourceSet
ResourceSetType
is set toAWS::Route53RecoveryReadiness::DNSTargetResource
. Do not set it for any otherResourceSetType
setting.- Returns:
this
-
readinessScopes
@Stability(Stable) public CfnResourceSet.ResourceProperty.Builder readinessScopes(List<String> readinessScopes) Sets the value ofCfnResourceSet.ResourceProperty.getReadinessScopes()
- Parameters:
readinessScopes
- The recovery group Amazon Resource Name (ARN) or the cell ARN that the readiness checks for this resource set are scoped to.- Returns:
this
-
resourceArn
Sets the value ofCfnResourceSet.ResourceProperty.getResourceArn()
- Parameters:
resourceArn
- The Amazon Resource Name (ARN) of the AWS resource. This is a required setting for allResourceSet
ResourceSetType
settings exceptAWS::Route53RecoveryReadiness::DNSTargetResource
. Do not set this whenResourceSetType
is set toAWS::Route53RecoveryReadiness::DNSTargetResource
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceSet.ResourceProperty>
- Returns:
- a new instance of
CfnResourceSet.ResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-