/AWS1/IF_BDK=>LISTPROMPTROUTERS()¶
About ListPromptRouters¶
Retrieves a list of prompt routers.
Method Signature¶
METHODS /AWS1/IF_BDK~LISTPROMPTROUTERS
IMPORTING
!IV_MAXRESULTS TYPE /AWS1/BDKMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/BDKPAGINATIONTOKEN OPTIONAL
!IV_TYPE TYPE /AWS1/BDKPROMPTROUTERTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdklstpromptrouters01
RAISING
/AWS1/CX_BDKACCESSDENIEDEX
/AWS1/CX_BDKINTERNALSERVEREX
/AWS1/CX_BDKTHROTTLINGEX
/AWS1/CX_BDKVALIDATIONEX
/AWS1/CX_BDKCLIENTEXC
/AWS1/CX_BDKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_maxresults TYPE /AWS1/BDKMAXRESULTS /AWS1/BDKMAXRESULTS¶
The maximum number of prompt routers to return in one page of results.
iv_nexttoken TYPE /AWS1/BDKPAGINATIONTOKEN /AWS1/BDKPAGINATIONTOKEN¶
Specify the pagination token from a previous request to retrieve the next page of results.
iv_type TYPE /AWS1/BDKPROMPTROUTERTYPE /AWS1/BDKPROMPTROUTERTYPE¶
The type of the prompt routers, such as whether it's default or custom.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdklstpromptrouters01 /AWS1/CL_BDKLSTPROMPTROUTERS01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->listpromptrouters(
iv_maxresults = 123
iv_nexttoken = |string|
iv_type = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_promptroutersummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_promptroutername = lo_row_1->get_promptroutername( ).
lo_routingcriteria = lo_row_1->get_routingcriteria( ).
IF lo_routingcriteria IS NOT INITIAL.
lv_double = lo_routingcriteria->get_rspqualitydifference( ).
ENDIF.
lv_promptrouterdescription = lo_row_1->get_description( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
lv_promptrouterarn = lo_row_1->get_promptrouterarn( ).
LOOP AT lo_row_1->get_models( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_promptroutertargetmodel = lo_row_3->get_modelarn( ).
ENDIF.
ENDLOOP.
lo_promptroutertargetmodel_1 = lo_row_1->get_fallbackmodel( ).
IF lo_promptroutertargetmodel_1 IS NOT INITIAL.
lv_promptroutertargetmodel = lo_promptroutertargetmodel_1->get_modelarn( ).
ENDIF.
lv_promptrouterstatus = lo_row_1->get_status( ).
lv_promptroutertype = lo_row_1->get_type( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.