public Workspace withModificationStates(ModificationState... modificationStates) {
        if (this.modificationStates == null) {
            setModificationStates(new com.amazonaws.internal.SdkInternalList<ModificationState>(modificationStates.length));
        }
        for (ModificationState ele : modificationStates) {
            this.modificationStates.add(ele);
        }
        return this;
    }
<p>
The modification states of the WorkSpace.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setModificationStates(java.util.Collection)} or {@link #withModificationStates(java.util.Collection)} if
you want to override the existing values.
</p>

@param modificationStates
       The modification states of the 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