Class CfnTrafficPolicyInstanceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.route53.CfnTrafficPolicyInstanceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficPolicyInstanceMixinProps>
- Enclosing interface:
CfnTrafficPolicyInstanceMixinProps
@Stability(Stable)
public static final class CfnTrafficPolicyInstanceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficPolicyInstanceMixinProps>
A builder for
CfnTrafficPolicyInstanceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.hostedZoneId(String hostedZoneId) Sets the value ofCfnTrafficPolicyInstanceMixinProps.getHostedZoneId()Sets the value ofCfnTrafficPolicyInstanceMixinProps.getName()trafficPolicyId(String trafficPolicyId) Sets the value ofCfnTrafficPolicyInstanceMixinProps.getTrafficPolicyId()trafficPolicyVersion(Number trafficPolicyVersion) Sets the value ofCfnTrafficPolicyInstanceMixinProps.getTrafficPolicyVersion()Sets the value ofCfnTrafficPolicyInstanceMixinProps.getTtl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostedZoneId
@Stability(Stable) public CfnTrafficPolicyInstanceMixinProps.Builder hostedZoneId(String hostedZoneId) Sets the value ofCfnTrafficPolicyInstanceMixinProps.getHostedZoneId()- Parameters:
hostedZoneId- The ID of the hosted zone that Amazon Route 53 creates the resource record sets in. The bare ID as Route 53 returns it, without a /hostedzone/ prefix.- Returns:
this
-
name
Sets the value ofCfnTrafficPolicyInstanceMixinProps.getName()- Parameters:
name- The domain name, or subdomain name, for which Amazon Route 53 answers DNS queries by using the resource record sets it creates for this traffic policy instance. Must be lower-case and end with a trailing dot, which is the form Route 53 returns: Route 53 normalizes DNS names, so admitting another form would neither round-trip through Read nor guarantee that a change to this property changes the resource's identity.- Returns:
this
-
trafficPolicyId
@Stability(Stable) public CfnTrafficPolicyInstanceMixinProps.Builder trafficPolicyId(String trafficPolicyId) Sets the value ofCfnTrafficPolicyInstanceMixinProps.getTrafficPolicyId()- Parameters:
trafficPolicyId- The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. Lower-case, as Route 53 returns it.- Returns:
this
-
trafficPolicyVersion
@Stability(Stable) public CfnTrafficPolicyInstanceMixinProps.Builder trafficPolicyVersion(Number trafficPolicyVersion) Sets the value ofCfnTrafficPolicyInstanceMixinProps.getTrafficPolicyVersion()- Parameters:
trafficPolicyVersion- The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.- Returns:
this
-
ttl
Sets the value ofCfnTrafficPolicyInstanceMixinProps.getTtl()- Parameters:
ttl- The TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrafficPolicyInstanceMixinProps>- Returns:
- a new instance of
CfnTrafficPolicyInstanceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-