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