public UpdateDataSourcePermissionsRequest withGrantPermissions(java.util.Collection<ResourcePermission> grantPermissions) {
        setGrantPermissions(grantPermissions);
        return this;
    }
<p>
A list of resource permissions that you want to grant on the data source.
</p>

@param grantPermissions
       A list of resource permissions that you want to grant on the data source.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/UpdateDataSourcePermissionsRequest.java