public CreateTrafficPolicyVersionResult withTrafficPolicy(TrafficPolicy trafficPolicy) {
        setTrafficPolicy(trafficPolicy);
        return this;
    }
<p>
A complex type that contains settings for the new version of the traffic policy.
</p>

@param trafficPolicy
       A complex type that contains settings for the new version of the traffic policy.
@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/CreateTrafficPolicyVersionResult.java