public void setRelationships(java.util.Collection<Relationship> relationships) {
        if (relationships == null) {
            this.relationships = null;
            return;
        }

        this.relationships = new java.util.ArrayList<Relationship>(relationships);
    }
<p>
A list of relationship objects that describe how blocks are related to each other. For example, a LINE block
object contains a CHILD relationship type with the WORD blocks that make up the line of text. There aren't
Relationship objects in the list for relationships that don't exist, such as when the current block has no child
blocks.
</p>

@param relationships
       A list of relationship objects that describe how blocks are related to each other. For example, a LINE
       block object contains a CHILD relationship type with the WORD blocks that make up the line of text. There
       aren't Relationship objects in the list for relationships that don't exist, such as when the current block
       has no child blocks.
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Block.java