public WorkspaceDescription withDataSources(String... dataSources) {
        if (this.dataSources == null) {
            setDataSources(new java.util.ArrayList<String>(dataSources.length));
        }
        for (String ele : dataSources) {
            this.dataSources.add(ele);
        }
        return this;
    }
<p>
Specifies the Amazon Web Services data sources that have been configured to have IAM roles and permissions
created to allow Amazon Managed Grafana to read data from these sources.
</p>
<p>
This list is only used when the workspace was created through the Amazon Web Services console, and the
<code>permissionType</code> is <code>SERVICE_MANAGED</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDataSources(java.util.Collection)} or {@link #withDataSources(java.util.Collection)} if you want to
override the existing values.
</p>

@param dataSources
       Specifies the Amazon Web Services data sources that have been configured to have IAM roles and permissions
       created to allow Amazon Managed Grafana to read data from these sources.</p>
       <p>
       This list is only used when the workspace was created through the Amazon Web Services console, and the
       <code>permissionType</code> is <code>SERVICE_MANAGED</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see DataSourceType
aws-java-sdk-managedgrafana/src/main/java/com/amazonaws/services/managedgrafana/model/WorkspaceDescription.java