/AWS1/IF_GML=>UPDATEBUILD()¶
About UpdateBuild¶
This API works with the following fleet types: EC2
Updates metadata in a build resource, including the build name and version. To update the metadata, specify the build ID to update and provide the new values. If successful, a build object containing the updated metadata is returned.
Learn more
Method Signature¶
METHODS /AWS1/IF_GML~UPDATEBUILD
IMPORTING
!IV_BUILDID TYPE /AWS1/GMLBUILDIDORARN OPTIONAL
!IV_NAME TYPE /AWS1/GMLNONZEROANDMAXSTRING OPTIONAL
!IV_VERSION TYPE /AWS1/GMLNONZEROANDMAXSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gmlupdatebuildoutput
RAISING
/AWS1/CX_GMLINTERNALSERVICEEX
/AWS1/CX_GMLINVALIDREQUESTEX
/AWS1/CX_GMLNOTFOUNDEXCEPTION
/AWS1/CX_GMLUNAUTHORIZEDEX
/AWS1/CX_GMLCLIENTEXC
/AWS1/CX_GMLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_buildid TYPE /AWS1/GMLBUILDIDORARN /AWS1/GMLBUILDIDORARN¶
A unique identifier for the build to update. You can use either the build ID or ARN value.
Optional arguments:¶
iv_name TYPE /AWS1/GMLNONZEROANDMAXSTRING /AWS1/GMLNONZEROANDMAXSTRING¶
A descriptive label that is associated with a build. Build names do not need to be unique.
iv_version TYPE /AWS1/GMLNONZEROANDMAXSTRING /AWS1/GMLNONZEROANDMAXSTRING¶
Version information that is associated with a build or script. Version strings do not need to be unique.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gmlupdatebuildoutput /AWS1/CL_GMLUPDATEBUILDOUTPUT¶
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->updatebuild(
iv_buildid = |string|
iv_name = |string|
iv_version = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_build = lo_result->get_build( ).
IF lo_build IS NOT INITIAL.
lv_buildid = lo_build->get_buildid( ).
lv_buildarn = lo_build->get_buildarn( ).
lv_freetext = lo_build->get_name( ).
lv_freetext = lo_build->get_version( ).
lv_buildstatus = lo_build->get_status( ).
lv_positivelong = lo_build->get_sizeondisk( ).
lv_operatingsystem = lo_build->get_operatingsystem( ).
lv_timestamp = lo_build->get_creationtime( ).
lv_serversdkversion = lo_build->get_serversdkversion( ).
ENDIF.
ENDIF.