public SearchRelatedItemsResponseItem withType(RelatedItemType type) {
        this.type = type.toString();
        return this;
    }
<p>
Type of a related item.
</p>

@param type
       Type of a related item.
@return Returns a reference to this object so that method calls can be chained together.
@see RelatedItemType
aws-java-sdk-connectcases/src/main/java/com/amazonaws/services/connectcases/model/SearchRelatedItemsResponseItem.java