public DeploymentTargets withAccounts(java.util.Collection<String> accounts) {
        setAccounts(accounts);
        return this;
    }
<p>
The names of one or more Amazon Web Services accounts for which you want to deploy stack set updates.
</p>

@param accounts
       The names of one or more Amazon Web Services accounts for which you want to deploy stack set updates.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/DeploymentTargets.java