/AWS1/IF_IVC=>UPDATEROOM()¶
About UpdateRoom¶
Updates a room’s configuration.
Method Signature¶
METHODS /AWS1/IF_IVC~UPDATEROOM
IMPORTING
!IV_IDENTIFIER TYPE /AWS1/IVCROOMIDENTIFIER OPTIONAL
!IV_NAME TYPE /AWS1/IVCROOMNAME OPTIONAL
!IV_MAXIMUMMESSAGERATEPERSEC TYPE /AWS1/IVCROOMMAXMSGRATEPERSEC OPTIONAL
!IV_MAXIMUMMESSAGELENGTH TYPE /AWS1/IVCROOMMAXMESSAGELENGTH OPTIONAL
!IO_MESSAGEREVIEWHANDLER TYPE REF TO /AWS1/CL_IVCMSGREVIEWHANDLER OPTIONAL
!IT_LOGGINGCONFIDENTIFIERS TYPE /AWS1/CL_IVCLOGCONFIDLIST_W=>TT_LOGGINGCONFIDENTIFIERLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ivcupdateroomresponse
RAISING
/AWS1/CX_IVCACCESSDENIEDEX
/AWS1/CX_IVCPENDINGVERIFICAT00
/AWS1/CX_IVCRESOURCENOTFOUNDEX
/AWS1/CX_IVCVALIDATIONEX
/AWS1/CX_IVCCLIENTEXC
/AWS1/CX_IVCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_identifier TYPE /AWS1/IVCROOMIDENTIFIER /AWS1/IVCROOMIDENTIFIER¶
Identifier of the room to be updated. Currently this must be an ARN.
Optional arguments:¶
iv_name TYPE /AWS1/IVCROOMNAME /AWS1/IVCROOMNAME¶
Room name. The value does not need to be unique.
iv_maximummessageratepersec TYPE /AWS1/IVCROOMMAXMSGRATEPERSEC /AWS1/IVCROOMMAXMSGRATEPERSEC¶
Maximum number of messages per second that can be sent to the room (by all clients). Default: 10.
iv_maximummessagelength TYPE /AWS1/IVCROOMMAXMESSAGELENGTH /AWS1/IVCROOMMAXMESSAGELENGTH¶
The maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes. Default: 500.
io_messagereviewhandler TYPE REF TO /AWS1/CL_IVCMSGREVIEWHANDLER /AWS1/CL_IVCMSGREVIEWHANDLER¶
Configuration information for optional review of messages. Specify an empty
uristring to disassociate a message review handler from the specified room.
it_loggingconfidentifiers TYPE /AWS1/CL_IVCLOGCONFIDLIST_W=>TT_LOGGINGCONFIDENTIFIERLIST TT_LOGGINGCONFIDENTIFIERLIST¶
Array of logging-configuration identifiers attached to the room.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ivcupdateroomresponse /AWS1/CL_IVCUPDATEROOMRESPONSE¶
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->updateroom(
io_messagereviewhandler = new /aws1/cl_ivcmsgreviewhandler(
iv_fallbackresult = |string|
iv_uri = |string|
)
it_loggingconfidentifiers = VALUE /aws1/cl_ivclogconfidlist_w=>tt_loggingconfidentifierlist(
( new /aws1/cl_ivclogconfidlist_w( |string| ) )
)
iv_identifier = |string|
iv_maximummessagelength = 123
iv_maximummessageratepersec = 123
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_roomarn = lo_result->get_arn( ).
lv_roomid = lo_result->get_id( ).
lv_roomname = lo_result->get_name( ).
lv_time = lo_result->get_createtime( ).
lv_time = lo_result->get_updatetime( ).
lv_roommaxmessagerateperse = lo_result->get_maximummessageratepersec( ).
lv_roommaxmessagelength = lo_result->get_maximummessagelength( ).
lo_messagereviewhandler = lo_result->get_messagereviewhandler( ).
IF lo_messagereviewhandler IS NOT INITIAL.
lv_lambdaarn = lo_messagereviewhandler->get_uri( ).
lv_fallbackresult = lo_messagereviewhandler->get_fallbackresult( ).
ENDIF.
LOOP AT lo_result->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_loggingconfidentifiers( ) into lo_row_1.
lo_row_2 = lo_row_1.
IF lo_row_2 IS NOT INITIAL.
lv_loggingconfigurationide = lo_row_2->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.