/AWS1/IF_MDL=>LISTOFFERINGS()¶
About ListOfferings¶
List offerings available for purchase.
Method Signature¶
METHODS /AWS1/IF_MDL~LISTOFFERINGS
  IMPORTING
    !IV_CHANNELCLASS TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_CHANNELCONFIGURATION TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_CODEC TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_DURATION TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/MDLMAXRESULTS OPTIONAL
    !IV_MAXIMUMBITRATE TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_MAXIMUMFRAMERATE TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_RESOLUTION TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_RESOURCETYPE TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_SPECIALFEATURE TYPE /AWS1/MDL__STRING OPTIONAL
    !IV_VIDEOQUALITY TYPE /AWS1/MDL__STRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdllistofferingsrsp
  RAISING
    /AWS1/CX_MDLBADGATEWAYEX
    /AWS1/CX_MDLBADREQUESTEX
    /AWS1/CX_MDLFORBIDDENEXCEPTION
    /AWS1/CX_MDLGATEWAYTIMEOUTEX
    /AWS1/CX_MDLINTERNALSERVERER00
    /AWS1/CX_MDLTOOMANYREQUESTSEX
    /AWS1/CX_MDLCLIENTEXC
    /AWS1/CX_MDLSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_channelclass TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'
iv_channelconfiguration TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter to offerings that match the configuration of an existing channel, e.g. '2345678' (a channel ID)
iv_codec TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', 'LINK', or 'AV1'
iv_duration TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by offering duration, e.g. '12'
iv_maxresults TYPE /AWS1/MDLMAXRESULTS /AWS1/MDLMAXRESULTS¶
MaxResults
iv_maximumbitrate TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'
iv_maximumframerate TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'
iv_nexttoken TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
NextToken
iv_resolution TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'
iv_resourcetype TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'
iv_specialfeature TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'
iv_videoquality TYPE /AWS1/MDL__STRING /AWS1/MDL__STRING¶
Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mdllistofferingsrsp /AWS1/CL_MDLLISTOFFERINGSRSP¶
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->listofferings(
  iv_channelclass = |string|
  iv_channelconfiguration = |string|
  iv_codec = |string|
  iv_duration = |string|
  iv_maximumbitrate = |string|
  iv_maximumframerate = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_resolution = |string|
  iv_resourcetype = |string|
  iv_specialfeature = |string|
  iv_videoquality = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv___string = lo_result->get_nexttoken( ).
  LOOP AT lo_result->get_offerings( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv___string = lo_row_1->get_arn( ).
      lv___string = lo_row_1->get_currencycode( ).
      lv___integer = lo_row_1->get_duration( ).
      lv_offeringdurationunits = lo_row_1->get_durationunits( ).
      lv___double = lo_row_1->get_fixedprice( ).
      lv___string = lo_row_1->get_offeringdescription( ).
      lv___string = lo_row_1->get_offeringid( ).
      lv_offeringtype = lo_row_1->get_offeringtype( ).
      lv___string = lo_row_1->get_region( ).
      lo_reservationresourcespec = lo_row_1->get_resourcespecification( ).
      IF lo_reservationresourcespec IS NOT INITIAL.
        lv_channelclass = lo_reservationresourcespec->get_channelclass( ).
        lv_reservationcodec = lo_reservationresourcespec->get_codec( ).
        lv_reservationmaximumbitra = lo_reservationresourcespec->get_maximumbitrate( ).
        lv_reservationmaximumframe = lo_reservationresourcespec->get_maximumframerate( ).
        lv_reservationresolution = lo_reservationresourcespec->get_resolution( ).
        lv_reservationresourcetype = lo_reservationresourcespec->get_resourcetype( ).
        lv_reservationspecialfeatu = lo_reservationresourcespec->get_specialfeature( ).
        lv_reservationvideoquality = lo_reservationresourcespec->get_videoquality( ).
      ENDIF.
      lv___double = lo_row_1->get_usageprice( ).
    ENDIF.
  ENDLOOP.
ENDIF.