public ListSpacesResult withSpaces(java.util.Collection<SpaceData> spaces) {
        setSpaces(spaces);
        return this;
    }
<p>
An array of structures that contain some information about the private re:Posts in the account.
</p>

@param spaces
       An array of structures that contain some information about the private re:Posts in the account.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-repostspace/src/main/java/com/amazonaws/services/repostspace/model/ListSpacesResult.java