public ListVersionsResult withGrafanaVersions(String... grafanaVersions) {
        if (this.grafanaVersions == null) {
            setGrafanaVersions(new java.util.ArrayList<String>(grafanaVersions.length));
        }
        for (String ele : grafanaVersions) {
            this.grafanaVersions.add(ele);
        }
        return this;
    }
<p>
The Grafana versions available to create. If a workspace ID is included in the request, the Grafana versions to
which this workspace can be upgraded.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setGrafanaVersions(java.util.Collection)} or {@link #withGrafanaVersions(java.util.Collection)} if you
want to override the existing values.
</p>

@param grafanaVersions
       The Grafana versions available to create. If a workspace ID is included in the request, the Grafana
       versions to which this workspace can be upgraded.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-managedgrafana/src/main/java/com/amazonaws/services/managedgrafana/model/ListVersionsResult.java