Class CfnTrafficPolicyInstanceProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CfnTrafficPolicyInstanceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficPolicyInstanceProps>
- Enclosing interface:
CfnTrafficPolicyInstanceProps
@Stability(Stable)
public static final class CfnTrafficPolicyInstanceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficPolicyInstanceProps>
A builder for
CfnTrafficPolicyInstanceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.hostedZoneId(String hostedZoneId) Sets the value ofCfnTrafficPolicyInstanceProps.getHostedZoneId()Sets the value ofCfnTrafficPolicyInstanceProps.getName()trafficPolicyId(String trafficPolicyId) Sets the value ofCfnTrafficPolicyInstanceProps.getTrafficPolicyId()trafficPolicyVersion(Number trafficPolicyVersion) Sets the value ofCfnTrafficPolicyInstanceProps.getTrafficPolicyVersion()Sets the value ofCfnTrafficPolicyInstanceProps.getTtl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostedZoneId
Sets the value ofCfnTrafficPolicyInstanceProps.getHostedZoneId()- Parameters:
hostedZoneId- The ID of the hosted zone that Amazon Route 53 creates the resource record sets in. This parameter is required. The bare ID as Route 53 returns it, without a /hostedzone/ prefix.- Returns:
this
-
name
Sets the value ofCfnTrafficPolicyInstanceProps.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. This parameter is required. 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 CfnTrafficPolicyInstanceProps.Builder trafficPolicyId(String trafficPolicyId) Sets the value ofCfnTrafficPolicyInstanceProps.getTrafficPolicyId()- Parameters:
trafficPolicyId- The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. This parameter is required. Lower-case, as Route 53 returns it.- Returns:
this
-
trafficPolicyVersion
@Stability(Stable) public CfnTrafficPolicyInstanceProps.Builder trafficPolicyVersion(Number trafficPolicyVersion) Sets the value ofCfnTrafficPolicyInstanceProps.getTrafficPolicyVersion()- Parameters:
trafficPolicyVersion- The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. This parameter is required.- Returns:
this
-
ttl
Sets the value ofCfnTrafficPolicyInstanceProps.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. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrafficPolicyInstanceProps>- Returns:
- a new instance of
CfnTrafficPolicyInstanceProps - Throws:
NullPointerException- if any required attribute was not provided
-