/** * <p> * The definition of this traffic policy in JSON format. For more information, see <a * href="http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html" * >Traffic Policy Document Format</a>. * </p> * * @param document * The definition of this traffic policy in JSON format. For more information, see <a href= * "http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html" * >Traffic Policy Document Format</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTrafficPolicyRequest withDocument(String document) { setDocument(document); return this; }