public CreateTrafficPolicyInstanceRequest withName(String name) {
        setName(name);
        return this;
    }
<p>
The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53
responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.
</p>

@param name
       The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route
       53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy
       instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/model/CreateTrafficPolicyInstanceRequest.java