public ListSpacesResult withSpaces(SpaceData... spaces) {
        if (this.spaces == null) {
            setSpaces(new java.util.ArrayList<SpaceData>(spaces.length));
        }
        for (SpaceData ele : spaces) {
            this.spaces.add(ele);
        }
        return this;
    }
<p>
An array of structures that contain some information about the private re:Posts in the account.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSpaces(java.util.Collection)} or {@link #withSpaces(java.util.Collection)} if you want to override the
existing values.
</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