public ServiceCall < RecognitionJob > checkJob ( CheckJobOptions checkJobOptions ) { Validator . notNull ( checkJobOptions , "checkJobOptions cannot be null" ) ; String [ ] pathSegments = { "v1/recognitions" } ; String [ ] pathParameters = { checkJobOptions . id ( ) } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "speech_to_text" , "v1" , "checkJob" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( RecognitionJob . class ) ) ; }
Check a job .