public void setRelatedWorkspaces(java.util.Collection<RelatedWorkspaceProperties> relatedWorkspaces) {
        if (relatedWorkspaces == null) {
            this.relatedWorkspaces = null;
            return;
        }

        this.relatedWorkspaces = new com.amazonaws.internal.SdkInternalList<RelatedWorkspaceProperties>(relatedWorkspaces);
    }
<p>
The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
</p>

@param relatedWorkspaces
       The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/Workspace.java