public DescribeUpdateDirectoryResult withUpdateActivities(UpdateInfoEntry... updateActivities) {
        if (this.updateActivities == null) {
            setUpdateActivities(new com.amazonaws.internal.SdkInternalList<UpdateInfoEntry>(updateActivities.length));
        }
        for (UpdateInfoEntry ele : updateActivities) {
            this.updateActivities.add(ele);
        }
        return this;
    }
<p>
The list of update activities on a directory for the requested update type.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setUpdateActivities(java.util.Collection)} or {@link #withUpdateActivities(java.util.Collection)} if you
want to override the existing values.
</p>

@param updateActivities
       The list of update activities on a directory for the requested update type.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/DescribeUpdateDirectoryResult.java