public Workspace withRelatedWorkspaces(RelatedWorkspaceProperties... relatedWorkspaces) {
        if (this.relatedWorkspaces == null) {
            setRelatedWorkspaces(new com.amazonaws.internal.SdkInternalList<RelatedWorkspaceProperties>(relatedWorkspaces.length));
        }
        for (RelatedWorkspaceProperties ele : relatedWorkspaces) {
            this.relatedWorkspaces.add(ele);
        }
        return this;
    }
<p>
The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRelatedWorkspaces(java.util.Collection)} or {@link #withRelatedWorkspaces(java.util.Collection)} if
you want to override the existing values.
</p>

@param relatedWorkspaces
       The standby WorkSpace or primary WorkSpace related to the specified WorkSpace.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/Workspace.java