/AWS1/IF_LM2=>DESCRIBESLOTTYPE()¶
About DescribeSlotType¶
Gets metadata information about a slot type.
Method Signature¶
METHODS /AWS1/IF_LM2~DESCRIBESLOTTYPE
  IMPORTING
    !IV_SLOTTYPEID TYPE /AWS1/LM2ID OPTIONAL
    !IV_BOTID TYPE /AWS1/LM2ID OPTIONAL
    !IV_BOTVERSION TYPE /AWS1/LM2BOTVERSION OPTIONAL
    !IV_LOCALEID TYPE /AWS1/LM2LOCALEID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lm2descrslottypersp
  RAISING
    /AWS1/CX_LM2INTERNALSERVEREX
    /AWS1/CX_LM2RESOURCENOTFOUNDEX
    /AWS1/CX_LM2SERVICEQUOTAEXCDEX
    /AWS1/CX_LM2THROTTLINGEX
    /AWS1/CX_LM2VALIDATIONEX
    /AWS1/CX_LM2CLIENTEXC
    /AWS1/CX_LM2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_slottypeid TYPE /AWS1/LM2ID /AWS1/LM2ID¶
The identifier of the slot type.
iv_botid TYPE /AWS1/LM2ID /AWS1/LM2ID¶
The identifier of the bot associated with the slot type.
iv_botversion TYPE /AWS1/LM2BOTVERSION /AWS1/LM2BOTVERSION¶
The version of the bot associated with the slot type.
iv_localeid TYPE /AWS1/LM2LOCALEID /AWS1/LM2LOCALEID¶
The identifier of the language and locale of the slot type to describe. The string must match one of the supported locales. For more information, see Supported languages.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lm2descrslottypersp /AWS1/CL_LM2DESCRSLOTTYPERSP¶
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->describeslottype(
  iv_botid = |string|
  iv_botversion = |string|
  iv_localeid = |string|
  iv_slottypeid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_id = lo_result->get_slottypeid( ).
  lv_name = lo_result->get_slottypename( ).
  lv_description = lo_result->get_description( ).
  LOOP AT lo_result->get_slottypevalues( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lo_samplevalue = lo_row_1->get_samplevalue( ).
      IF lo_samplevalue IS NOT INITIAL.
        lv_value = lo_samplevalue->get_value( ).
      ENDIF.
      LOOP AT lo_row_1->get_synonyms( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_value = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  lo_slotvalueselectionsetti = lo_result->get_valueselectionsetting( ).
  IF lo_slotvalueselectionsetti IS NOT INITIAL.
    lv_slotvalueresolutionstra = lo_slotvalueselectionsetti->get_resolutionstrategy( ).
    lo_slotvalueregexfilter = lo_slotvalueselectionsetti->get_regexfilter( ).
    IF lo_slotvalueregexfilter IS NOT INITIAL.
      lv_regexpattern = lo_slotvalueregexfilter->get_pattern( ).
    ENDIF.
    lo_advancedrecognitionsett = lo_slotvalueselectionsetti->get_advancedrecogsetting( ).
    IF lo_advancedrecognitionsett IS NOT INITIAL.
      lv_audiorecognitionstrateg = lo_advancedrecognitionsett->get_audiorecognitionstrategy( ).
    ENDIF.
  ENDIF.
  lv_slottypesignature = lo_result->get_parentslottypesignature( ).
  lv_id = lo_result->get_botid( ).
  lv_botversion = lo_result->get_botversion( ).
  lv_localeid = lo_result->get_localeid( ).
  lv_timestamp = lo_result->get_creationdatetime( ).
  lv_timestamp = lo_result->get_lastupdateddatetime( ).
  lo_externalsourcesetting = lo_result->get_externalsourcesetting( ).
  IF lo_externalsourcesetting IS NOT INITIAL.
    lo_grammarslottypesetting = lo_externalsourcesetting->get_grammarslottypesetting( ).
    IF lo_grammarslottypesetting IS NOT INITIAL.
      lo_grammarslottypesource = lo_grammarslottypesetting->get_source( ).
      IF lo_grammarslottypesource IS NOT INITIAL.
        lv_s3bucketname = lo_grammarslottypesource->get_s3bucketname( ).
        lv_s3objectpath = lo_grammarslottypesource->get_s3objectkey( ).
        lv_kmskeyarn = lo_grammarslottypesource->get_kmskeyarn( ).
      ENDIF.
    ENDIF.
  ENDIF.
  lo_compositeslottypesettin = lo_result->get_compositeslottypesetting( ).
  IF lo_compositeslottypesettin IS NOT INITIAL.
    LOOP AT lo_compositeslottypesettin->get_subslots( ) into lo_row_4.
      lo_row_5 = lo_row_4.
      IF lo_row_5 IS NOT INITIAL.
        lv_name = lo_row_5->get_name( ).
        lv_builtinorcustomslottype = lo_row_5->get_slottypeid( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.