/AWS1/IF_BCF=>GETFREETIERUSAGE()¶
About GetFreeTierUsage¶
Returns a list of all Free Tier usage objects that match your filters.
Method Signature¶
METHODS /AWS1/IF_BCF~GETFREETIERUSAGE
IMPORTING
!IO_FILTER TYPE REF TO /AWS1/CL_BCFEXPRESSION OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BCFMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/BCFNEXTPAGETOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bcfgetfreetierusage01
RAISING
/AWS1/CX_BCFINTERNALSERVEREX
/AWS1/CX_BCFTHROTTLINGEX
/AWS1/CX_BCFVALIDATIONEX
/AWS1/CX_BCFCLIENTEXC
/AWS1/CX_BCFSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
io_filter TYPE REF TO /AWS1/CL_BCFEXPRESSION /AWS1/CL_BCFEXPRESSION¶
An expression that specifies the conditions that you want each
FreeTierUsageobject to meet.
iv_maxresults TYPE /AWS1/BCFMAXRESULTS /AWS1/BCFMAXRESULTS¶
The maximum number of results to return in the response.
MaxResultsmeans that there can be up to the specified number of values, but there might be fewer results based on your filters.
iv_nexttoken TYPE /AWS1/BCFNEXTPAGETOKEN /AWS1/BCFNEXTPAGETOKEN¶
The pagination token that indicates the next set of results to retrieve.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bcfgetfreetierusage01 /AWS1/CL_BCFGETFREETIERUSAGE01¶
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->getfreetierusage(
io_filter = new /aws1/cl_bcfexpression(
io_dimensions = new /aws1/cl_bcfdimensionvalues(
it_matchoptions = VALUE /aws1/cl_bcfmatchoptions_w=>tt_matchoptions(
( new /aws1/cl_bcfmatchoptions_w( |string| ) )
)
it_values = VALUE /aws1/cl_bcfvalues_w=>tt_values(
( new /aws1/cl_bcfvalues_w( |string| ) )
)
iv_key = |string|
)
io_not = new /aws1/cl_bcfexpression(
io_dimensions = new /aws1/cl_bcfdimensionvalues(
it_matchoptions = VALUE /aws1/cl_bcfmatchoptions_w=>tt_matchoptions(
( new /aws1/cl_bcfmatchoptions_w( |string| ) )
)
it_values = VALUE /aws1/cl_bcfvalues_w=>tt_values(
( new /aws1/cl_bcfvalues_w( |string| ) )
)
iv_key = |string|
)
it_and = VALUE /aws1/cl_bcfexpression=>tt_expressions(
(
new /aws1/cl_bcfexpression(
io_dimensions = new /aws1/cl_bcfdimensionvalues(
it_matchoptions = VALUE /aws1/cl_bcfmatchoptions_w=>tt_matchoptions(
( new /aws1/cl_bcfmatchoptions_w( |string| ) )
)
it_values = VALUE /aws1/cl_bcfvalues_w=>tt_values(
( new /aws1/cl_bcfvalues_w( |string| ) )
)
iv_key = |string|
)
it_or = VALUE /aws1/cl_bcfexpression=>tt_expressions(
)
)
)
)
it_or = VALUE /aws1/cl_bcfexpression=>tt_expressions(
(
new /aws1/cl_bcfexpression(
io_dimensions = new /aws1/cl_bcfdimensionvalues(
it_matchoptions = VALUE /aws1/cl_bcfmatchoptions_w=>tt_matchoptions(
( new /aws1/cl_bcfmatchoptions_w( |string| ) )
)
it_values = VALUE /aws1/cl_bcfvalues_w=>tt_values(
( new /aws1/cl_bcfvalues_w( |string| ) )
)
iv_key = |string|
)
it_and = VALUE /aws1/cl_bcfexpression=>tt_expressions(
)
)
)
)
)
it_and = VALUE /aws1/cl_bcfexpression=>tt_expressions(
(
new /aws1/cl_bcfexpression(
io_dimensions = new /aws1/cl_bcfdimensionvalues(
it_matchoptions = VALUE /aws1/cl_bcfmatchoptions_w=>tt_matchoptions(
( new /aws1/cl_bcfmatchoptions_w( |string| ) )
)
it_values = VALUE /aws1/cl_bcfvalues_w=>tt_values(
( new /aws1/cl_bcfvalues_w( |string| ) )
)
iv_key = |string|
)
io_not = new /aws1/cl_bcfexpression(
io_dimensions = new /aws1/cl_bcfdimensionvalues(
it_matchoptions = VALUE /aws1/cl_bcfmatchoptions_w=>tt_matchoptions(
( new /aws1/cl_bcfmatchoptions_w( |string| ) )
)
it_values = VALUE /aws1/cl_bcfvalues_w=>tt_values(
( new /aws1/cl_bcfvalues_w( |string| ) )
)
iv_key = |string|
)
it_or = VALUE /aws1/cl_bcfexpression=>tt_expressions(
)
)
it_or = VALUE /aws1/cl_bcfexpression=>tt_expressions(
)
)
)
)
it_or = VALUE /aws1/cl_bcfexpression=>tt_expressions(
(
new /aws1/cl_bcfexpression(
io_dimensions = new /aws1/cl_bcfdimensionvalues(
it_matchoptions = VALUE /aws1/cl_bcfmatchoptions_w=>tt_matchoptions(
( new /aws1/cl_bcfmatchoptions_w( |string| ) )
)
it_values = VALUE /aws1/cl_bcfvalues_w=>tt_values(
( new /aws1/cl_bcfvalues_w( |string| ) )
)
iv_key = |string|
)
io_not = new /aws1/cl_bcfexpression(
io_dimensions = new /aws1/cl_bcfdimensionvalues(
it_matchoptions = VALUE /aws1/cl_bcfmatchoptions_w=>tt_matchoptions(
( new /aws1/cl_bcfmatchoptions_w( |string| ) )
)
it_values = VALUE /aws1/cl_bcfvalues_w=>tt_values(
( new /aws1/cl_bcfvalues_w( |string| ) )
)
iv_key = |string|
)
it_and = VALUE /aws1/cl_bcfexpression=>tt_expressions(
)
)
it_and = VALUE /aws1/cl_bcfexpression=>tt_expressions(
)
)
)
)
)
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_freetierusages( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_genericstring = lo_row_1->get_service( ).
lv_genericstring = lo_row_1->get_operation( ).
lv_genericstring = lo_row_1->get_usagetype( ).
lv_genericstring = lo_row_1->get_region( ).
lv_genericdouble = lo_row_1->get_actualusageamount( ).
lv_genericdouble = lo_row_1->get_forecastedusageamount( ).
lv_genericdouble = lo_row_1->get_limit( ).
lv_genericstring = lo_row_1->get_unit( ).
lv_genericstring = lo_row_1->get_description( ).
lv_genericstring = lo_row_1->get_freetiertype( ).
ENDIF.
ENDLOOP.
lv_nextpagetoken = lo_result->get_nexttoken( ).
ENDIF.