public RelationshipsListItem withType(String type) {
        setType(type);
        return this;
    }
<p>
Only supported relationship is a child relationship.
</p>

@param type
       Only supported relationship is a child relationship.
@return Returns a reference to this object so that method calls can be chained together.
@see RelationshipType
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/RelationshipsListItem.java