/AWS1/IF_CHE=>UPDATEACCOUNT()¶
About UpdateAccount¶
Updates account details for the specified Amazon Chime account. Currently, only account name and default license updates are supported for this action.
Method Signature¶
METHODS /AWS1/IF_CHE~UPDATEACCOUNT
  IMPORTING
    !IV_ACCOUNTID TYPE /AWS1/CHENONEMPTYSTRING OPTIONAL
    !IV_NAME TYPE /AWS1/CHEACCOUNTNAME OPTIONAL
    !IV_DEFAULTLICENSE TYPE /AWS1/CHELICENSE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cheupdateaccountrsp
  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¶
Required arguments:¶
iv_accountid TYPE /AWS1/CHENONEMPTYSTRING /AWS1/CHENONEMPTYSTRING¶
The Amazon Chime account ID.
Optional arguments:¶
iv_name TYPE /AWS1/CHEACCOUNTNAME /AWS1/CHEACCOUNTNAME¶
The new name for the specified Amazon Chime account.
iv_defaultlicense TYPE /AWS1/CHELICENSE /AWS1/CHELICENSE¶
The default license applied when you add users to an Amazon Chime account.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cheupdateaccountrsp /AWS1/CL_CHEUPDATEACCOUNTRSP¶
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->updateaccount(
  iv_accountid = |string|
  iv_defaultlicense = |string|
  iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_account = lo_result->get_account( ).
  IF lo_account IS NOT INITIAL.
    lv_string = lo_account->get_awsaccountid( ).
    lv_string = lo_account->get_accountid( ).
    lv_string = lo_account->get_name( ).
    lv_accounttype = lo_account->get_accounttype( ).
    lv_iso8601timestamp = lo_account->get_createdtimestamp( ).
    lv_license = lo_account->get_defaultlicense( ).
    LOOP AT lo_account->get_supportedlicenses( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_license = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_accountstatus = lo_account->get_accountstatus( ).
    LOOP AT lo_account->get_signindelegategroups( ) into lo_row_2.
      lo_row_3 = lo_row_2.
      IF lo_row_3 IS NOT INITIAL.
        lv_nonemptystring = lo_row_3->get_groupname( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.