code: public PagedList<VulnerabilityAssessmentScanRecordInner> listByDatabase(final String resourceGroupName, final String serverName, final String databaseName) {
          ServiceResponse<Page<VulnerabilityAssessmentScanRecordInner>> response = listByDatabaseSinglePageAsync(resourceGroupName, serverName, databaseName).toBlocking().single();
          return new PagedList<VulnerabilityAssessmentScanRecordInner>(response.body()) {
              @Override
              public Page<VulnerabilityAssessmentScanRecordInner> nextPage(String nextPageLink) {
                  return listByDatabaseNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists the vulnerability assessment scans of a database.
  
  @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  @param serverName The name of the server.
  @param databaseName The name of the database.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;VulnerabilityAssessmentScanRecordInner&gt; object if successful.