/AWS1/IF_SHI=>UPDATEMEMBERSHIP()¶
About UpdateMembership¶
Updates membership configuration.
Method Signature¶
METHODS /AWS1/IF_SHI~UPDATEMEMBERSHIP
IMPORTING
!IV_MEMBERSHIPID TYPE /AWS1/SHIMEMBERSHIPID OPTIONAL
!IV_MEMBERSHIPNAME TYPE /AWS1/SHIMEMBERSHIPNAME OPTIONAL
!IT_INCIDENTRESPONSETEAM TYPE /AWS1/CL_SHIINCIDENTRESPONDER=>TT_INCIDENTRESPONSETEAM OPTIONAL
!IT_OPTINFEATURES TYPE /AWS1/CL_SHIOPTINFEATURE=>TT_OPTINFEATURES OPTIONAL
!IO_MEMBERSHIPACCTSCONFSUPD TYPE REF TO /AWS1/CL_SHIMEMBERSHIPACCONF00 OPTIONAL
!IV_UNDOMEMBERSHIPCANCLATION TYPE /AWS1/SHIBOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_shiupdmembershiprsp
RAISING
/AWS1/CX_SHIACCESSDENIEDEX
/AWS1/CX_SHICONFLICTEXCEPTION
/AWS1/CX_SHIINTERNALSERVEREX
/AWS1/CX_SHIINVALIDTOKENEX
/AWS1/CX_SHIRESOURCENOTFOUNDEX
/AWS1/CX_SHISECINCIDENTRSPNO00
/AWS1/CX_SHISERVICEQUOTAEXCDEX
/AWS1/CX_SHITHROTTLINGEX
/AWS1/CX_SHIVALIDATIONEX
/AWS1/CX_SHICLIENTEXC
/AWS1/CX_SHISERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_membershipid TYPE /AWS1/SHIMEMBERSHIPID /AWS1/SHIMEMBERSHIPID¶
Required element for UpdateMembership to identify the membership to update.
Optional arguments:¶
iv_membershipname TYPE /AWS1/SHIMEMBERSHIPNAME /AWS1/SHIMEMBERSHIPNAME¶
Optional element for UpdateMembership to update the membership name.
it_incidentresponseteam TYPE /AWS1/CL_SHIINCIDENTRESPONDER=>TT_INCIDENTRESPONSETEAM TT_INCIDENTRESPONSETEAM¶
Optional element for UpdateMembership to update the membership name.
it_optinfeatures TYPE /AWS1/CL_SHIOPTINFEATURE=>TT_OPTINFEATURES TT_OPTINFEATURES¶
Optional element for UpdateMembership to enable or disable opt-in features for the service.
io_membershipacctsconfsupd TYPE REF TO /AWS1/CL_SHIMEMBERSHIPACCONF00 /AWS1/CL_SHIMEMBERSHIPACCONF00¶
The
membershipAccountsConfigurationsUpdatefield in theUpdateMembershipRequeststructure allows you to update the configuration settings for accounts within a membership.This field is optional and contains a structure of type
MembershipAccountsConfigurationsUpdatethat specifies the updated account configurations for the membership.
iv_undomembershipcanclation TYPE /AWS1/SHIBOOLEAN /AWS1/SHIBOOLEAN¶
The
undoMembershipCancellationparameter is a boolean flag that indicates whether to reverse a previously requested membership cancellation. When set to true, this will revoke the cancellation request and maintain the membership status.This parameter is optional and can be used in scenarios where you need to restore a membership that was marked for cancellation but hasn't been fully terminated yet.
If set to
true, the cancellation request will be revokedIf set to
falsethe service will throw a ValidationException.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_shiupdmembershiprsp /AWS1/CL_SHIUPDMEMBERSHIPRSP¶
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->updatemembership(
io_membershipacctsconfsupd = new /aws1/cl_shimembershipacconf00(
it_orgalunitstoremove = VALUE /aws1/cl_shiorgalunits_w=>tt_organizationalunits(
( new /aws1/cl_shiorgalunits_w( |string| ) )
)
it_organizationalunitstoadd = VALUE /aws1/cl_shiorgalunits_w=>tt_organizationalunits(
( new /aws1/cl_shiorgalunits_w( |string| ) )
)
iv_coverentireorganization = ABAP_TRUE
)
it_incidentresponseteam = VALUE /aws1/cl_shiincidentresponder=>tt_incidentresponseteam(
(
new /aws1/cl_shiincidentresponder(
it_communicationpreferences = VALUE /aws1/cl_shicommpreferences_w=>tt_communicationpreferences(
( new /aws1/cl_shicommpreferences_w( |string| ) )
)
iv_email = |string|
iv_jobtitle = |string|
iv_name = |string|
)
)
)
it_optinfeatures = VALUE /aws1/cl_shioptinfeature=>tt_optinfeatures(
(
new /aws1/cl_shioptinfeature(
iv_featurename = |string|
iv_isenabled = ABAP_TRUE
)
)
)
iv_membershipid = |string|
iv_membershipname = |string|
iv_undomembershipcanclation = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.
Invoke UpdateMembership¶
Invoke UpdateMembership
DATA(lo_result) = lo_client->updatemembership(
it_incidentresponseteam = VALUE /aws1/cl_shiincidentresponder=>tt_incidentresponseteam(
(
new /aws1/cl_shiincidentresponder(
iv_email = |bob.jones@gmail.com|
iv_jobtitle = |Security Responder|
iv_name = |Bob Jones|
)
)
(
new /aws1/cl_shiincidentresponder(
iv_email = |alice@example.com|
iv_jobtitle = |CEO|
iv_name = |Alice|
)
)
)
it_optinfeatures = VALUE /aws1/cl_shioptinfeature=>tt_optinfeatures(
(
new /aws1/cl_shioptinfeature(
iv_featurename = |Triage|
iv_isenabled = ABAP_TRUE
)
)
)
iv_membershipid = |m-abcd1234efgh|
iv_membershipname = |New membership name|
).