Class CfnResolverRule.TargetAddressProperty.Builder
java.lang.Object
software.amazon.awscdk.services.route53resolver.CfnResolverRule.TargetAddressProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResolverRule.TargetAddressProperty>
- Enclosing interface:
- CfnResolverRule.TargetAddressProperty
@Stability(Stable)
public static final class CfnResolverRule.TargetAddressProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResolverRule.TargetAddressProperty>
A builder for
CfnResolverRule.TargetAddressProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnResolverRule.TargetAddressProperty.getIp()
Sets the value ofCfnResolverRule.TargetAddressProperty.getIpv6()
Sets the value ofCfnResolverRule.TargetAddressProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ip
Sets the value ofCfnResolverRule.TargetAddressProperty.getIp()
- Parameters:
ip
- One IPv4 address that you want to forward DNS queries to.- Returns:
this
-
ipv6
Sets the value ofCfnResolverRule.TargetAddressProperty.getIpv6()
- Parameters:
ipv6
- One IPv6 address that you want to forward DNS queries to.- Returns:
this
-
port
Sets the value ofCfnResolverRule.TargetAddressProperty.getPort()
- Parameters:
port
- The port atIp
that you want to forward DNS queries to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResolverRule.TargetAddressProperty>
- Returns:
- a new instance of
CfnResolverRule.TargetAddressProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-