public CreateWebACLRequest withTokenDomains(java.util.Collection<String> tokenDomains) {
        setTokenDomains(tokenDomains);
        return this;
    }
<p>
Specifies the domains that WAF should accept in a web request token. This enables the use of tokens across
multiple protected websites. When WAF provides a token, it uses the domain of the Amazon Web Services resource
that the web ACL is protecting. If you don't specify a list of token domains, WAF accepts tokens only for the
domain of the protected resource. With a token domain list, WAF accepts the resource's host domain plus all
domains in the token domain list, including their prefixed subdomains.
</p>
<p>
Example JSON: <code>"TokenDomains": { "mywebsite.com", "myotherwebsite.com" }</code>
</p>
<p>
Public suffixes aren't allowed. For example, you can't use <code>gov.au</code> or <code>co.uk</code> as token
domains.
</p>

@param tokenDomains
       Specifies the domains that WAF should accept in a web request token. This enables the use of tokens across
       multiple protected websites. When WAF provides a token, it uses the domain of the Amazon Web Services
       resource that the web ACL is protecting. If you don't specify a list of token domains, WAF accepts tokens
       only for the domain of the protected resource. With a token domain list, WAF accepts the resource's host
       domain plus all domains in the token domain list, including their prefixed subdomains.</p>
       <p>
       Example JSON: <code>"TokenDomains": { "mywebsite.com", "myotherwebsite.com" }</code>
       </p>
       <p>
       Public suffixes aren't allowed. For example, you can't use <code>gov.au</code> or <code>co.uk</code> as
       token domains.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/CreateWebACLRequest.java