public SearchRelatedItemsResult withRelatedItems(SearchRelatedItemsResponseItem... relatedItems) {
        if (this.relatedItems == null) {
            setRelatedItems(new java.util.ArrayList<SearchRelatedItemsResponseItem>(relatedItems.length));
        }
        for (SearchRelatedItemsResponseItem ele : relatedItems) {
            this.relatedItems.add(ele);
        }
        return this;
    }
<p>
A list of items related to a case.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRelatedItems(java.util.Collection)} or {@link #withRelatedItems(java.util.Collection)} if you want to
override the existing values.
</p>

@param relatedItems
       A list of items related to a case.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connectcases/src/main/java/com/amazonaws/services/connectcases/model/SearchRelatedItemsResult.java