/AWS1/IF_R5D=>GETDOMAINSUGGESTIONS()¶
About GetDomainSuggestions¶
The GetDomainSuggestions operation returns a list of suggested domain names.
Method Signature¶
METHODS /AWS1/IF_R5D~GETDOMAINSUGGESTIONS
IMPORTING
!IV_DOMAINNAME TYPE /AWS1/R5DDOMAINNAME OPTIONAL
!IV_SUGGESTIONCOUNT TYPE /AWS1/R5DINTEGER OPTIONAL
!IV_ONLYAVAILABLE TYPE /AWS1/R5DBOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_r5dgetdomsuggestion01
RAISING
/AWS1/CX_R5DINVALIDINPUT
/AWS1/CX_R5DUNSUPPORTEDTLD
/AWS1/CX_R5DCLIENTEXC
/AWS1/CX_R5DSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainname TYPE /AWS1/R5DDOMAINNAME /AWS1/R5DDOMAINNAME¶
A domain name that you want to use as the basis for a list of possible domain names. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.
The domain name can contain only the following characters:
Letters a through z. Domain names are not case sensitive.
Numbers 0 through 9.
Hyphen (-). You can't specify a hyphen at the beginning or end of a label.
Period (.) to separate the labels in the name, such as the
.inexample.com.Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see Domains that You Can Register with Amazon Route 53.
iv_suggestioncount TYPE /AWS1/R5DINTEGER /AWS1/R5DINTEGER¶
The number of suggested domain names that you want Route 53 to return. Specify a value between 1 and 50.
iv_onlyavailable TYPE /AWS1/R5DBOOLEAN /AWS1/R5DBOOLEAN¶
If
OnlyAvailableistrue, Route 53 returns only domain names that are available. IfOnlyAvailableisfalse, Route 53 returns domain names without checking whether they're available to be registered. To determine whether the domain is available, you can callcheckDomainAvailabilityfor each suggestion.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_r5dgetdomsuggestion01 /AWS1/CL_R5DGETDOMSUGGESTION01¶
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->getdomainsuggestions(
iv_domainname = |string|
iv_onlyavailable = ABAP_TRUE
iv_suggestioncount = 123
).
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_suggestionslist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_domainname = lo_row_1->get_domainname( ).
lv_string = lo_row_1->get_availability( ).
ENDIF.
ENDLOOP.
ENDIF.