/AWS1/IF_BIC=>UPDATEPRICINGRULE()¶
About UpdatePricingRule¶
Updates an existing pricing rule.
Method Signature¶
METHODS /AWS1/IF_BIC~UPDATEPRICINGRULE
IMPORTING
!IV_ARN TYPE /AWS1/BICPRICINGRULEARN OPTIONAL
!IV_NAME TYPE /AWS1/BICPRICINGRULENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/BICPRICINGRULEDESC OPTIONAL
!IV_TYPE TYPE /AWS1/BICPRICINGRULETYPE OPTIONAL
!IV_MODIFIERPERCENTAGE TYPE /AWS1/RT_DOUBLE_AS_STRING OPTIONAL
!IO_TIERING TYPE REF TO /AWS1/CL_BICUPDATETIERINGINPUT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bicupdpricingruleout
RAISING
/AWS1/CX_BICACCESSDENIEDEX
/AWS1/CX_BICCONFLICTEXCEPTION
/AWS1/CX_BICINTERNALSERVEREX
/AWS1/CX_BICRESOURCENOTFOUNDEX
/AWS1/CX_BICTHROTTLINGEX
/AWS1/CX_BICVALIDATIONEX
/AWS1/CX_BICCLIENTEXC
/AWS1/CX_BICSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_arn TYPE /AWS1/BICPRICINGRULEARN /AWS1/BICPRICINGRULEARN¶
The Amazon Resource Name (ARN) of the pricing rule to update.
Optional arguments:¶
iv_name TYPE /AWS1/BICPRICINGRULENAME /AWS1/BICPRICINGRULENAME¶
The new name of the pricing rule. The name must be unique to each pricing rule.
iv_description TYPE /AWS1/BICPRICINGRULEDESC /AWS1/BICPRICINGRULEDESC¶
The new description for the pricing rule.
iv_type TYPE /AWS1/BICPRICINGRULETYPE /AWS1/BICPRICINGRULETYPE¶
The new pricing rule type.
iv_modifierpercentage TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING¶
The new modifier to show pricing plan rates as a percentage. Your entry will be rounded to the nearest 2 decimal places.
io_tiering TYPE REF TO /AWS1/CL_BICUPDATETIERINGINPUT /AWS1/CL_BICUPDATETIERINGINPUT¶
The set of tiering configurations for the pricing rule.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bicupdpricingruleout /AWS1/CL_BICUPDPRICINGRULEOUT¶
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->updatepricingrule(
io_tiering = new /aws1/cl_bicupdatetieringinput( new /aws1/cl_bicupdatefreetiercfg( ABAP_TRUE ) )
iv_arn = |string|
iv_description = |string|
iv_modifierpercentage = |0.1|
iv_name = |string|
iv_type = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_pricingrulearn = lo_result->get_arn( ).
lv_pricingrulename = lo_result->get_name( ).
lv_pricingruledescription = lo_result->get_description( ).
lv_pricingrulescope = lo_result->get_scope( ).
lv_pricingruletype = lo_result->get_type( ).
lv_modifierpercentage = lo_result->get_modifierpercentage( ).
lv_service = lo_result->get_service( ).
lv_numberofpricingplansass = lo_result->get_assocdpricingplancount( ).
lv_instant = lo_result->get_lastmodifiedtime( ).
lv_billingentity = lo_result->get_billingentity( ).
lo_updatetieringinput = lo_result->get_tiering( ).
IF lo_updatetieringinput IS NOT INITIAL.
lo_updatefreetierconfig = lo_updatetieringinput->get_freetier( ).
IF lo_updatefreetierconfig IS NOT INITIAL.
lv_tieringactivated = lo_updatefreetierconfig->get_activated( ).
ENDIF.
ENDIF.
lv_usagetype = lo_result->get_usagetype( ).
lv_operation = lo_result->get_operation( ).
ENDIF.