public ServiceCall < TrainingQuery > getTrainingData ( GetTrainingDataOptions getTrainingDataOptions ) { Validator . notNull ( getTrainingDataOptions , "getTrainingDataOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "collections" , "training_data" } ; String [ ] pathParameters = { getTrainingDataOptions . environmentId ( ) , getTrainingDataOptions . collectionId ( ) , getTrainingDataOptions . queryId ( ) } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "discovery" , "v1" , "getTrainingData" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( TrainingQuery . class ) ) ; }
Get details about a query .