/AWS1/IF_BUP=>CREATEBACKUPSELECTION()¶
About CreateBackupSelection¶
Creates a JSON document that specifies a set of resources to assign to a backup plan. For examples, see Assigning resources programmatically.
Method Signature¶
METHODS /AWS1/IF_BUP~CREATEBACKUPSELECTION
IMPORTING
!IV_BACKUPPLANID TYPE /AWS1/BUPSTRING OPTIONAL
!IO_BACKUPSELECTION TYPE REF TO /AWS1/CL_BUPBACKUPSELECTION OPTIONAL
!IV_CREATORREQUESTID TYPE /AWS1/BUPSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bupcrebackupselionout
RAISING
/AWS1/CX_BUPALREADYEXISTSEX
/AWS1/CX_BUPINVPARAMVALUEEX
/AWS1/CX_BUPLIMITEXCEEDEDEX
/AWS1/CX_BUPMISSINGPARAMVALEX
/AWS1/CX_BUPSERVICEUNAVAILEX
/AWS1/CX_BUPCLIENTEXC
/AWS1/CX_BUPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_backupplanid TYPE /AWS1/BUPSTRING /AWS1/BUPSTRING¶
The ID of the backup plan.
io_backupselection TYPE REF TO /AWS1/CL_BUPBACKUPSELECTION /AWS1/CL_BUPBACKUPSELECTION¶
The body of a request to assign a set of resources to a backup plan.
Optional arguments:¶
iv_creatorrequestid TYPE /AWS1/BUPSTRING /AWS1/BUPSTRING¶
A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional.
If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bupcrebackupselionout /AWS1/CL_BUPCREBACKUPSELIONOUT¶
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->createbackupselection(
io_backupselection = new /aws1/cl_bupbackupselection(
io_conditions = new /aws1/cl_bupconditions(
it_stringequals = VALUE /aws1/cl_bupconditionparameter=>tt_conditionparameters(
(
new /aws1/cl_bupconditionparameter(
iv_conditionkey = |string|
iv_conditionvalue = |string|
)
)
)
it_stringlike = VALUE /aws1/cl_bupconditionparameter=>tt_conditionparameters(
(
new /aws1/cl_bupconditionparameter(
iv_conditionkey = |string|
iv_conditionvalue = |string|
)
)
)
it_stringnotequals = VALUE /aws1/cl_bupconditionparameter=>tt_conditionparameters(
(
new /aws1/cl_bupconditionparameter(
iv_conditionkey = |string|
iv_conditionvalue = |string|
)
)
)
it_stringnotlike = VALUE /aws1/cl_bupconditionparameter=>tt_conditionparameters(
(
new /aws1/cl_bupconditionparameter(
iv_conditionkey = |string|
iv_conditionvalue = |string|
)
)
)
)
it_listoftags = VALUE /aws1/cl_bupcondition=>tt_listoftags(
(
new /aws1/cl_bupcondition(
iv_conditionkey = |string|
iv_conditiontype = |string|
iv_conditionvalue = |string|
)
)
)
it_notresources = VALUE /aws1/cl_bupresourcearns_w=>tt_resourcearns(
( new /aws1/cl_bupresourcearns_w( |string| ) )
)
it_resources = VALUE /aws1/cl_bupresourcearns_w=>tt_resourcearns(
( new /aws1/cl_bupresourcearns_w( |string| ) )
)
iv_iamrolearn = |string|
iv_selectionname = |string|
)
iv_backupplanid = |string|
iv_creatorrequestid = |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_selectionid( ).
lv_string = lo_result->get_backupplanid( ).
lv_timestamp = lo_result->get_creationdate( ).
ENDIF.