public ServiceCall < EntityCollection > listEntities ( ListEntitiesOptions listEntitiesOptions ) { Validator . notNull ( listEntitiesOptions , "listEntitiesOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "entities" } ; String [ ] pathParameters = { listEntitiesOptions . workspaceId ( ) } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "conversation" , "v1" , "listEntities" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; if ( listEntitiesOptions . export ( ) != null ) { builder . query ( "export" , String . valueOf ( listEntitiesOptions . export ( ) ) ) ; } if ( listEntitiesOptions . pageLimit ( ) != null ) { builder . query ( "page_limit" , String . valueOf ( listEntitiesOptions . pageLimit ( ) ) ) ; } if ( listEntitiesOptions . includeCount ( ) != null ) { builder . query ( "include_count" , String . valueOf ( listEntitiesOptions . includeCount ( ) ) ) ; } if ( listEntitiesOptions . sort ( ) != null ) { builder . query ( "sort" , listEntitiesOptions . sort ( ) ) ; } if ( listEntitiesOptions . cursor ( ) != null ) { builder . query ( "cursor" , listEntitiesOptions . cursor ( ) ) ; } if ( listEntitiesOptions . includeAudit ( ) != null ) { builder . query ( "include_audit" , String . valueOf ( listEntitiesOptions . includeAudit ( ) ) ) ; } return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( EntityCollection . class ) ) ; }
List entities .