public StackSet withOrganizationalUnitIds(String... organizationalUnitIds) {
        if (this.organizationalUnitIds == null) {
            setOrganizationalUnitIds(new com.amazonaws.internal.SdkInternalList<String>(organizationalUnitIds.length));
        }
        for (String ele : organizationalUnitIds) {
            this.organizationalUnitIds.add(ele);
        }
        return this;
    }
<p>
[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for <a
href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html">
DeploymentTargets</a>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setOrganizationalUnitIds(java.util.Collection)} or
{@link #withOrganizationalUnitIds(java.util.Collection)} if you want to override the existing values.
</p>

@param organizationalUnitIds
       [Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified
       for <a
       href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html">
       DeploymentTargets</a>.
@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/StackSet.java