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

@param name
       The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource
       record sets that are associated with 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/TrafficPolicyInstance.java