public ServiceCall < Example > getExample ( GetExampleOptions getExampleOptions ) { Validator . notNull ( getExampleOptions , "getExampleOptions cannot be null" ) ; String [ ] pathSegments = { "v1/workspaces" , "intents" , "examples" } ; String [ ] pathParameters = { getExampleOptions . workspaceId ( ) , getExampleOptions . intent ( ) , getExampleOptions . text ( ) } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "conversation" , "v1" , "getExample" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; if ( getExampleOptions . includeAudit ( ) != null ) { builder . query ( "include_audit" , String . valueOf ( getExampleOptions . includeAudit ( ) ) ) ; } return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( Example . class ) ) ; }
Get user input example .