public CreateWorkspaceRequest withWorkspaceOrganizationalUnits(String... workspaceOrganizationalUnits) {
        if (this.workspaceOrganizationalUnits == null) {
            setWorkspaceOrganizationalUnits(new java.util.ArrayList<String>(workspaceOrganizationalUnits.length));
        }
        for (String ele : workspaceOrganizationalUnits) {
            this.workspaceOrganizationalUnits.add(ele);
        }
        return this;
    }
<p>
Specifies the organizational units that this workspace is allowed to use data sources from, if this workspace is
in an account that is part of an organization.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setWorkspaceOrganizationalUnits(java.util.Collection)} or
{@link #withWorkspaceOrganizationalUnits(java.util.Collection)} if you want to override the existing values.
</p>

@param workspaceOrganizationalUnits
       Specifies the organizational units that this workspace is allowed to use data sources from, if this
       workspace is in an account that is part of an organization.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-managedgrafana/src/main/java/com/amazonaws/services/managedgrafana/model/CreateWorkspaceRequest.java