Skip to content

/AWS1/IF_CEX=>GETRESERVATIONPURCHASERECO00()

About GetReservationPurchaseRecommendation

Gets recommendations for reservation purchases. These recommendations might help you to reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing.

Amazon Web Services generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage into categories that are eligible for a reservation. After Amazon Web Services has these categories, it simulates every combination of reservations in each category of usage to identify the best number of each type of Reserved Instance (RI) to purchase to maximize your estimated savings.

For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon) Region and recommends that you buy size-flexible regional reservations to apply to the c4 family usage. Amazon Web Services recommends the smallest size instance in an instance family. This makes it easier to purchase a size-flexible Reserved Instance (RI). Amazon Web Services also shows the equal number of normalized units. This way, you can purchase any instance size that you want. For this example, your RI recommendation is for c4.large because that is the smallest size instance in the c4 instance family.

Method Signature

METHODS /AWS1/IF_CEX~GETRESERVATIONPURCHASERECO00
  IMPORTING
    !IV_ACCOUNTID TYPE /AWS1/CEXGENERICSTRING OPTIONAL
    !IV_SERVICE TYPE /AWS1/CEXGENERICSTRING OPTIONAL
    !IO_FILTER TYPE REF TO /AWS1/CL_CEXEXPRESSION OPTIONAL
    !IV_ACCOUNTSCOPE TYPE /AWS1/CEXACCOUNTSCOPE OPTIONAL
    !IV_LOOKBACKPERIODINDAYS TYPE /AWS1/CEXLOOKBACKPERIODINDAYS OPTIONAL
    !IV_TERMINYEARS TYPE /AWS1/CEXTERMINYEARS OPTIONAL
    !IV_PAYMENTOPTION TYPE /AWS1/CEXPAYMENTOPTION OPTIONAL
    !IO_SERVICESPECIFICATION TYPE REF TO /AWS1/CL_CEXSERVICESPEC OPTIONAL
    !IV_PAGESIZE TYPE /AWS1/CEXRECSPAGESIZE OPTIONAL
    !IV_NEXTPAGETOKEN TYPE /AWS1/CEXNEXTPAGETOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cexgetreservationpu01
  RAISING
    /AWS1/CX_CEXDATAUNAVAILEX
    /AWS1/CX_CEXINVALIDNEXTTOKENEX
    /AWS1/CX_CEXLIMITEXCEEDEDEX
    /AWS1/CX_CEXCLIENTEXC
    /AWS1/CX_CEXSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_service TYPE /AWS1/CEXGENERICSTRING /AWS1/CEXGENERICSTRING

The specific service that you want recommendations for.

Optional arguments:

iv_accountid TYPE /AWS1/CEXGENERICSTRING /AWS1/CEXGENERICSTRING

The account ID that's associated with the recommendation.

io_filter TYPE REF TO /AWS1/CL_CEXEXPRESSION /AWS1/CL_CEXEXPRESSION

Use Expression to filter in various Cost Explorer APIs.

Not all Expression types are supported in each API. Refer to the documentation for each specific API to see what is supported.

There are two patterns:

  • Simple dimension values.

    • There are three types of simple dimension values: CostCategories, Tags, and Dimensions.

      • Specify the CostCategories field to define a filter that acts on Cost Categories.

      • Specify the Tags field to define a filter that acts on Cost Allocation Tags.

      • Specify the Dimensions field to define a filter that acts on the DimensionValues .

    • For each filter type, you can set the dimension name and values for the filters that you plan to use.

      • For example, you can filter for REGION==us-east-1 OR REGION==us-west-1. For GetRightsizingRecommendation, the Region is a full name (for example, REGION==US East (N. Virginia).

      • The corresponding Expression for this example is as follows: { "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] } }

      • As shown in the previous example, lists of dimension values are combined with OR when applying the filter.

    • You can also set different match options to further control how the filter behaves. Not all APIs support match options. Refer to the documentation for each specific API to see what is supported.

      • For example, you can filter for linked account names that start with "a".

      • The corresponding Expression for this example is as follows: { "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }

  • Compound Expression types with logical operations.

    • You can use multiple Expression types and the logical operators AND/OR/NOT to create a list of one or more Expression objects. By doing this, you can filter by more advanced options.

    • For example, you can filter by ((REGION == us-east-1 OR REGION == us-west-1) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer).

    • The corresponding Expression for this example is as follows: { "And": [ {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }

    Because each Expression can have only one operator, the service returns an error if more than one is specified. The following example shows an Expression object that creates an error: { "And": [ ... ], "Dimensions": { "Key": "USAGE_TYPE", "Values": [ "DataTransfer" ] } }

    The following is an example of the corresponding error message: "Expression has more than one roots. Only one root operator is allowed for each expression: And, Or, Not, Dimensions, Tags, CostCategories"

For the GetRightsizingRecommendation action, a combination of OR and NOT isn't supported. OR isn't supported between different dimensions, or dimensions and tags. NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT, REGION, or RIGHTSIZING_TYPE.

For the GetReservationPurchaseRecommendation action, only NOT is supported. AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT.

iv_accountscope TYPE /AWS1/CEXACCOUNTSCOPE /AWS1/CEXACCOUNTSCOPE

The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to PAYER. If the value is LINKED, recommendations are calculated for individual member accounts only.

iv_lookbackperiodindays TYPE /AWS1/CEXLOOKBACKPERIODINDAYS /AWS1/CEXLOOKBACKPERIODINDAYS

The number of previous days that you want Amazon Web Services to consider when it calculates your recommendations.

iv_terminyears TYPE /AWS1/CEXTERMINYEARS /AWS1/CEXTERMINYEARS

The reservation term that you want recommendations for.

iv_paymentoption TYPE /AWS1/CEXPAYMENTOPTION /AWS1/CEXPAYMENTOPTION

The reservation purchase option that you want recommendations for.

io_servicespecification TYPE REF TO /AWS1/CL_CEXSERVICESPEC /AWS1/CL_CEXSERVICESPEC

The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.

iv_pagesize TYPE /AWS1/CEXRECSPAGESIZE /AWS1/CEXRECSPAGESIZE

The number of recommendations that you want returned in a single response object.

iv_nextpagetoken TYPE /AWS1/CEXNEXTPAGETOKEN /AWS1/CEXNEXTPAGETOKEN

The pagination token that indicates the next set of results that you want to retrieve.

RETURNING

oo_output TYPE REF TO /aws1/cl_cexgetreservationpu01 /AWS1/CL_CEXGETRESERVATIONPU01

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->getreservationpurchasereco00(
  io_filter = new /aws1/cl_cexexpression(
    io_costcategories = new /aws1/cl_cexcostcategoryvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    io_dimensions = new /aws1/cl_cexdimensionvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    io_not = new /aws1/cl_cexexpression(
      io_costcategories = new /aws1/cl_cexcostcategoryvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      io_dimensions = new /aws1/cl_cexdimensionvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      io_tags = new /aws1/cl_cextagvalues(
        it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
          ( new /aws1/cl_cexmatchoptions_w( |string| ) )
        )
        it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
          ( new /aws1/cl_cexvalues_w( |string| ) )
        )
        iv_key = |string|
      )
      it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
        (
          new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
        )
      )
      it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
        (
          new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
        )
      )
    )
    io_tags = new /aws1/cl_cextagvalues(
      it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
        ( new /aws1/cl_cexmatchoptions_w( |string| ) )
      )
      it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
        ( new /aws1/cl_cexvalues_w( |string| ) )
      )
      iv_key = |string|
    )
    it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
      (
        new /aws1/cl_cexexpression(
          io_costcategories = new /aws1/cl_cexcostcategoryvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_dimensions = new /aws1/cl_cexdimensionvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_not = new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
          io_tags = new /aws1/cl_cextagvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
          )
        )
      )
    )
    it_or = VALUE /aws1/cl_cexexpression=>tt_expressions(
      (
        new /aws1/cl_cexexpression(
          io_costcategories = new /aws1/cl_cexcostcategoryvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_dimensions = new /aws1/cl_cexdimensionvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          io_not = new /aws1/cl_cexexpression(
            io_costcategories = new /aws1/cl_cexcostcategoryvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_dimensions = new /aws1/cl_cexdimensionvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            io_tags = new /aws1/cl_cextagvalues(
              it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
                ( new /aws1/cl_cexmatchoptions_w( |string| ) )
              )
              it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
                ( new /aws1/cl_cexvalues_w( |string| ) )
              )
              iv_key = |string|
            )
            it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
            )
          )
          io_tags = new /aws1/cl_cextagvalues(
            it_matchoptions = VALUE /aws1/cl_cexmatchoptions_w=>tt_matchoptions(
              ( new /aws1/cl_cexmatchoptions_w( |string| ) )
            )
            it_values = VALUE /aws1/cl_cexvalues_w=>tt_values(
              ( new /aws1/cl_cexvalues_w( |string| ) )
            )
            iv_key = |string|
          )
          it_and = VALUE /aws1/cl_cexexpression=>tt_expressions(
          )
        )
      )
    )
  )
  io_servicespecification = new /aws1/cl_cexservicespec( new /aws1/cl_cexec2specification( |string| ) )
  iv_accountid = |string|
  iv_accountscope = |string|
  iv_lookbackperiodindays = |string|
  iv_nextpagetoken = |string|
  iv_pagesize = 123
  iv_paymentoption = |string|
  iv_service = |string|
  iv_terminyears = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_reservationpurchasereco = lo_result->get_metadata( ).
  IF lo_reservationpurchasereco IS NOT INITIAL.
    lv_genericstring = lo_reservationpurchasereco->get_recommendationid( ).
    lv_genericstring = lo_reservationpurchasereco->get_generationtimestamp( ).
    lv_genericstring = lo_reservationpurchasereco->get_additionalmetadata( ).
  ENDIF.
  LOOP AT lo_result->get_recommendations( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_accountscope = lo_row_1->get_accountscope( ).
      lv_lookbackperiodindays = lo_row_1->get_lookbackperiodindays( ).
      lv_terminyears = lo_row_1->get_terminyears( ).
      lv_paymentoption = lo_row_1->get_paymentoption( ).
      lo_servicespecification = lo_row_1->get_servicespecification( ).
      IF lo_servicespecification IS NOT INITIAL.
        lo_ec2specification = lo_servicespecification->get_ec2specification( ).
        IF lo_ec2specification IS NOT INITIAL.
          lv_offeringclass = lo_ec2specification->get_offeringclass( ).
        ENDIF.
      ENDIF.
      LOOP AT lo_row_1->get_recommendationdetails( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_genericstring = lo_row_3->get_accountid( ).
          lo_instancedetails = lo_row_3->get_instancedetails( ).
          IF lo_instancedetails IS NOT INITIAL.
            lo_ec2instancedetails = lo_instancedetails->get_ec2instancedetails( ).
            IF lo_ec2instancedetails IS NOT INITIAL.
              lv_genericstring = lo_ec2instancedetails->get_family( ).
              lv_genericstring = lo_ec2instancedetails->get_instancetype( ).
              lv_genericstring = lo_ec2instancedetails->get_region( ).
              lv_genericstring = lo_ec2instancedetails->get_availabilityzone( ).
              lv_genericstring = lo_ec2instancedetails->get_platform( ).
              lv_genericstring = lo_ec2instancedetails->get_tenancy( ).
              lv_genericboolean = lo_ec2instancedetails->get_currentgeneration( ).
              lv_genericboolean = lo_ec2instancedetails->get_sizeflexeligible( ).
            ENDIF.
            lo_rdsinstancedetails = lo_instancedetails->get_rdsinstancedetails( ).
            IF lo_rdsinstancedetails IS NOT INITIAL.
              lv_genericstring = lo_rdsinstancedetails->get_family( ).
              lv_genericstring = lo_rdsinstancedetails->get_instancetype( ).
              lv_genericstring = lo_rdsinstancedetails->get_region( ).
              lv_genericstring = lo_rdsinstancedetails->get_databaseengine( ).
              lv_genericstring = lo_rdsinstancedetails->get_databaseedition( ).
              lv_genericstring = lo_rdsinstancedetails->get_deploymentoption( ).
              lv_genericstring = lo_rdsinstancedetails->get_licensemodel( ).
              lv_genericboolean = lo_rdsinstancedetails->get_currentgeneration( ).
              lv_genericboolean = lo_rdsinstancedetails->get_sizeflexeligible( ).
              lv_genericstring = lo_rdsinstancedetails->get_deploymentmodel( ).
            ENDIF.
            lo_redshiftinstancedetails = lo_instancedetails->get_redshiftinstancedetails( ).
            IF lo_redshiftinstancedetails IS NOT INITIAL.
              lv_genericstring = lo_redshiftinstancedetails->get_family( ).
              lv_genericstring = lo_redshiftinstancedetails->get_nodetype( ).
              lv_genericstring = lo_redshiftinstancedetails->get_region( ).
              lv_genericboolean = lo_redshiftinstancedetails->get_currentgeneration( ).
              lv_genericboolean = lo_redshiftinstancedetails->get_sizeflexeligible( ).
            ENDIF.
            lo_elasticacheinstancedeta = lo_instancedetails->get_elasticacheinstdetails( ).
            IF lo_elasticacheinstancedeta IS NOT INITIAL.
              lv_genericstring = lo_elasticacheinstancedeta->get_family( ).
              lv_genericstring = lo_elasticacheinstancedeta->get_nodetype( ).
              lv_genericstring = lo_elasticacheinstancedeta->get_region( ).
              lv_genericstring = lo_elasticacheinstancedeta->get_productdescription( ).
              lv_genericboolean = lo_elasticacheinstancedeta->get_currentgeneration( ).
              lv_genericboolean = lo_elasticacheinstancedeta->get_sizeflexeligible( ).
            ENDIF.
            lo_esinstancedetails = lo_instancedetails->get_esinstancedetails( ).
            IF lo_esinstancedetails IS NOT INITIAL.
              lv_genericstring = lo_esinstancedetails->get_instanceclass( ).
              lv_genericstring = lo_esinstancedetails->get_instancesize( ).
              lv_genericstring = lo_esinstancedetails->get_region( ).
              lv_genericboolean = lo_esinstancedetails->get_currentgeneration( ).
              lv_genericboolean = lo_esinstancedetails->get_sizeflexeligible( ).
            ENDIF.
            lo_memorydbinstancedetails = lo_instancedetails->get_memorydbinstancedetails( ).
            IF lo_memorydbinstancedetails IS NOT INITIAL.
              lv_genericstring = lo_memorydbinstancedetails->get_family( ).
              lv_genericstring = lo_memorydbinstancedetails->get_nodetype( ).
              lv_genericstring = lo_memorydbinstancedetails->get_region( ).
              lv_genericboolean = lo_memorydbinstancedetails->get_currentgeneration( ).
              lv_genericboolean = lo_memorydbinstancedetails->get_sizeflexeligible( ).
            ENDIF.
          ENDIF.
          lv_genericstring = lo_row_3->get_recommendednoofinststo00( ).
          lv_genericstring = lo_row_3->get_recommendednormalizedu00( ).
          lv_genericstring = lo_row_3->get_minnumofinstsusedperhour( ).
          lv_genericstring = lo_row_3->get_minnormalizedunitsused00( ).
          lv_genericstring = lo_row_3->get_maxnumofinstsusedperhour( ).
          lv_genericstring = lo_row_3->get_maxnormalizedunitsused00( ).
          lv_genericstring = lo_row_3->get_averagenumofinstsusedp00( ).
          lv_genericstring = lo_row_3->get_averagenormalizedunits00( ).
          lv_genericstring = lo_row_3->get_averageutilization( ).
          lv_genericstring = lo_row_3->get_estimatedbreakeveninmo00( ).
          lv_genericstring = lo_row_3->get_currencycode( ).
          lv_genericstring = lo_row_3->get_estimatedmonthlysaving00( ).
          lv_genericstring = lo_row_3->get_estimatedmonthlysaving01( ).
          lv_genericstring = lo_row_3->get_estimatedmonthlyondemc00( ).
          lv_genericstring = lo_row_3->get_estimatedreservationco00( ).
          lv_genericstring = lo_row_3->get_upfrontcost( ).
          lv_genericstring = lo_row_3->get_recurringstandardmonth00( ).
          lo_reservedcapacitydetails = lo_row_3->get_reservedcapacitydetails( ).
          IF lo_reservedcapacitydetails IS NOT INITIAL.
            lo_dynamodbcapacitydetails = lo_reservedcapacitydetails->get_dynamodbcapacitydetails( ).
            IF lo_dynamodbcapacitydetails IS NOT INITIAL.
              lv_genericstring = lo_dynamodbcapacitydetails->get_capacityunits( ).
              lv_genericstring = lo_dynamodbcapacitydetails->get_region( ).
            ENDIF.
          ENDIF.
          lv_genericstring = lo_row_3->get_recommendednoofcapunit00( ).
          lv_genericstring = lo_row_3->get_minnumofcapunitsusedpe00( ).
          lv_genericstring = lo_row_3->get_maxnumofcapunitsusedpe00( ).
          lv_genericstring = lo_row_3->get_averagenoofcapunitsuse00( ).
        ENDIF.
      ENDLOOP.
      lo_reservationpurchasereco_1 = lo_row_1->get_recommendationsummary( ).
      IF lo_reservationpurchasereco_1 IS NOT INITIAL.
        lv_genericstring = lo_reservationpurchasereco_1->get_totalestimatedmonthlys00( ).
        lv_genericstring = lo_reservationpurchasereco_1->get_totalestimatedmonthlys01( ).
        lv_genericstring = lo_reservationpurchasereco_1->get_currencycode( ).
      ENDIF.
    ENDIF.
  ENDLOOP.
  lv_nextpagetoken = lo_result->get_nextpagetoken( ).
ENDIF.