code: public PagedList<LongTermRetentionBackupInner> listByDatabase(final String locationName, final String longTermRetentionServerName, final String longTermRetentionDatabaseName, final Boolean onlyLatestPerDatabase, final LongTermRetentionDatabaseState databaseState) {
          ServiceResponse<Page<LongTermRetentionBackupInner>> response = listByDatabaseSinglePageAsync(locationName, longTermRetentionServerName, longTermRetentionDatabaseName, onlyLatestPerDatabase, databaseState).toBlocking().single();
          return new PagedList<LongTermRetentionBackupInner>(response.body()) {
              @Override
              public Page<LongTermRetentionBackupInner> nextPage(String nextPageLink) {
                  return listByDatabaseNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists all long term retention backups for a database.
  
  @param locationName The location of the database
  @param longTermRetentionServerName the String value
  @param longTermRetentionDatabaseName the String value
  @param onlyLatestPerDatabase Whether or not to only get the latest backup for each database.
  @param databaseState Whether to query against just live databases, just deleted databases, or all databases. Possible values include: 'All', 'Live', 'Deleted'
  @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;LongTermRetentionBackupInner&gt; object if successful.