public Stack withEmbedHostDomains(String... embedHostDomains) {
        if (this.embedHostDomains == null) {
            setEmbedHostDomains(new java.util.ArrayList<String>(embedHostDomains.length));
        }
        for (String ele : embedHostDomains) {
            this.embedHostDomains.add(ele);
        }
        return this;
    }
<p>
The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains
that you want to host embedded AppStream 2.0 streaming sessions.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEmbedHostDomains(java.util.Collection)} or {@link #withEmbedHostDomains(java.util.Collection)} if you
want to override the existing values.
</p>

@param embedHostDomains
       The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the
       domains that you want to host embedded AppStream 2.0 streaming sessions.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appstream/src/main/java/com/amazonaws/services/appstream/model/Stack.java