Skip to content

/AWS1/CL_RSH=>MODIFYSNAPSHOTSCHEDULE()

About ModifySnapshotSchedule

Modifies a snapshot schedule. Any schedule associated with a cluster is modified asynchronously.

Method Signature

IMPORTING

Required arguments:

iv_scheduleidentifier TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING

A unique alphanumeric identifier of the schedule to modify.

it_scheduledefinitions TYPE /AWS1/CL_RSHSCHEDULEDEFNLIST_W=>TT_SCHEDULEDEFINITIONLIST TT_SCHEDULEDEFINITIONLIST

An updated list of schedule definitions. A schedule definition is made up of schedule expressions, for example, "cron(30 12 *)" or "rate(12 hours)".

RETURNING

oo_output TYPE REF TO /aws1/cl_rshsnapshotschedule /AWS1/CL_RSHSNAPSHOTSCHEDULE

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->/aws1/if_rsh~modifysnapshotschedule(
  it_scheduledefinitions = VALUE /aws1/cl_rshscheduledefnlist_w=>tt_scheduledefinitionlist(
    ( new /aws1/cl_rshscheduledefnlist_w( |string| ) )
  )
  iv_scheduleidentifier = |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_scheduledefinitions( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_string = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_scheduleidentifier( ).
  lv_string = lo_result->get_scheduledescription( ).
  LOOP AT lo_result->get_tags( ) into lo_row_2.
    lo_row_3 = lo_row_2.
    IF lo_row_3 IS NOT INITIAL.
      lv_string = lo_row_3->get_key( ).
      lv_string = lo_row_3->get_value( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_nextinvocations( ) into lo_row_4.
    lo_row_5 = lo_row_4.
    IF lo_row_5 IS NOT INITIAL.
      lv_tstamp = lo_row_5->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_integeroptional = lo_result->get_associatedclustercount( ).
  LOOP AT lo_result->get_associatedclusters( ) into lo_row_6.
    lo_row_7 = lo_row_6.
    IF lo_row_7 IS NOT INITIAL.
      lv_string = lo_row_7->get_clusteridentifier( ).
      lv_schedulestate = lo_row_7->get_scheduleassociationstate( ).
    ENDIF.
  ENDLOOP.
ENDIF.