public ResourceDataSyncAwsOrganizationsSource withOrganizationalUnits(ResourceDataSyncOrganizationalUnit... organizationalUnits) {
        if (this.organizationalUnits == null) {
            setOrganizationalUnits(new com.amazonaws.internal.SdkInternalList<ResourceDataSyncOrganizationalUnit>(organizationalUnits.length));
        }
        for (ResourceDataSyncOrganizationalUnit ele : organizationalUnits) {
            this.organizationalUnits.add(ele);
        }
        return this;
    }
<p>
The Organizations organization units included in the sync.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setOrganizationalUnits(java.util.Collection)} or {@link #withOrganizationalUnits(java.util.Collection)}
if you want to override the existing values.
</p>

@param organizationalUnits
       The Organizations organization units included in the sync.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ResourceDataSyncAwsOrganizationsSource.java