/AWS1/IF_CHE=>LISTPHONENUMBERS()¶
About ListPhoneNumbers¶
Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group.
Method Signature¶
METHODS /AWS1/IF_CHE~LISTPHONENUMBERS
IMPORTING
!IV_STATUS TYPE /AWS1/CHEPHONENUMBERSTATUS OPTIONAL
!IV_PRODUCTTYPE TYPE /AWS1/CHEPHONENUMPRODUCTTYPE OPTIONAL
!IV_FILTERNAME TYPE /AWS1/CHEPHONENOASSOCIATIONN00 OPTIONAL
!IV_FILTERVALUE TYPE /AWS1/CHESTRING OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/CHERESULTMAX OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CHESTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_chelistphonenumsrsp
RAISING
/AWS1/CX_CHEBADREQUESTEX
/AWS1/CX_CHEFORBIDDENEXCEPTION
/AWS1/CX_CHENOTFOUNDEXCEPTION
/AWS1/CX_CHESERVICEFAILUREEX
/AWS1/CX_CHESERVICEUNAVAILEX
/AWS1/CX_CHETHROTTLEDCLIENTEX
/AWS1/CX_CHEUNAUTHDCLIENTEX
/AWS1/CX_CHECLIENTEXC
/AWS1/CX_CHESERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_status TYPE /AWS1/CHEPHONENUMBERSTATUS /AWS1/CHEPHONENUMBERSTATUS¶
The phone number status.
iv_producttype TYPE /AWS1/CHEPHONENUMPRODUCTTYPE /AWS1/CHEPHONENUMPRODUCTTYPE¶
The phone number product type.
iv_filtername TYPE /AWS1/CHEPHONENOASSOCIATIONN00 /AWS1/CHEPHONENOASSOCIATIONN00¶
The filter to use to limit the number of results.
iv_filtervalue TYPE /AWS1/CHESTRING /AWS1/CHESTRING¶
The value to use for the filter.
iv_maxresults TYPE /AWS1/CHERESULTMAX /AWS1/CHERESULTMAX¶
The maximum number of results to return in a single call.
iv_nexttoken TYPE /AWS1/CHESTRING /AWS1/CHESTRING¶
The token to use to retrieve the next page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_chelistphonenumsrsp /AWS1/CL_CHELISTPHONENUMSRSP¶
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->listphonenumbers(
iv_filtername = |string|
iv_filtervalue = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_producttype = |string|
iv_status = |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_phonenumbers( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_phonenumberid( ).
lv_e164phonenumber = lo_row_1->get_e164phonenumber( ).
lv_alpha2countrycode = lo_row_1->get_country( ).
lv_phonenumbertype = lo_row_1->get_type( ).
lv_phonenumberproducttype = lo_row_1->get_producttype( ).
lv_phonenumberstatus = lo_row_1->get_status( ).
lo_phonenumbercapabilities = lo_row_1->get_capabilities( ).
IF lo_phonenumbercapabilities IS NOT INITIAL.
lv_nullableboolean = lo_phonenumbercapabilities->get_inboundcall( ).
lv_nullableboolean = lo_phonenumbercapabilities->get_outboundcall( ).
lv_nullableboolean = lo_phonenumbercapabilities->get_inboundsms( ).
lv_nullableboolean = lo_phonenumbercapabilities->get_outboundsms( ).
lv_nullableboolean = lo_phonenumbercapabilities->get_inboundmms( ).
lv_nullableboolean = lo_phonenumbercapabilities->get_outboundmms( ).
ENDIF.
LOOP AT lo_row_1->get_associations( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_value( ).
lv_phonenumberassociationn = lo_row_3->get_name( ).
lv_iso8601timestamp = lo_row_3->get_associatedtimestamp( ).
ENDIF.
ENDLOOP.
lv_callingname = lo_row_1->get_callingname( ).
lv_callingnamestatus = lo_row_1->get_callingnamestatus( ).
lv_iso8601timestamp = lo_row_1->get_createdtimestamp( ).
lv_iso8601timestamp = lo_row_1->get_updatedtimestamp( ).
lv_iso8601timestamp = lo_row_1->get_deletiontimestamp( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_nexttoken( ).
ENDIF.