src/main/java/com/ngrok/services/ReservedDomains.java
public CompletionStage<ReservedDomain> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/reserved_domains",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("name", Optional.of(this.name)),
                    new AbstractMap.SimpleEntry<>("region", Optional.of(this.region)),
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("http_endpoint_configuration_id", this.httpEndpointConfigurationId.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("https_endpoint_configuration_id", this.httpsEndpointConfigurationId.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("certificate_id", this.certificateId.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("certificate_management_policy", this.certificateManagementPolicy.map(Function.identity()))
                ),
                Optional.of(ReservedDomain.class)
            );
        }
/**
         * Initiates the API call asynchronously.
         *
         * @return a {@link CompletionStage} of {@link ReservedDomain}
         */
Initiates the API call asynchronously.
Initiates the API call asynchronously .
public CompletionStage<ReservedDomain> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/reserved_domains",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("name", Optional.of(this.name)),
                    new AbstractMap.SimpleEntry<>("region", Optional.of(this.region)),
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("http_endpoint_configuration_id", this.httpEndpointConfigurationId.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("https_endpoint_configuration_id", this.httpsEndpointConfigurationId.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("certificate_id", this.certificateId.map(Function.identity())),
                    new AbstractMap.SimpleEntry<>("certificate_management_policy", this.certificateManagementPolicy.map(Function.identity()))
                ),
                Optional.of(ReservedDomain.class)
            );
        }
public CompletionStage < ReservedDomain > call ( ) { return apiClient . sendRequest ( NgrokApiClient . HttpMethod . POST , "/reserved_domains" , Stream . empty ( ) , Stream . of ( new AbstractMap . SimpleEntry < > ( "name" , Optional . of ( this . name ) ) , new AbstractMap . SimpleEntry < > ( "region" , Optional . of ( this . region ) ) , new AbstractMap . SimpleEntry < > ( "description" , Optional . of ( this . description ) ) , new AbstractMap . SimpleEntry < > ( "metadata" , Optional . of ( this . metadata ) ) , new AbstractMap . SimpleEntry < > ( "http_endpoint_configuration_id" , this . httpEndpointConfigurationId . map ( Function . identity ( ) ) ) , new AbstractMap . SimpleEntry < > ( "https_endpoint_configuration_id" , this . httpsEndpointConfigurationId . map ( Function . identity ( ) ) ) , new AbstractMap . SimpleEntry < > ( "certificate_id" , this . certificateId . map ( Function . identity ( ) ) ) , new AbstractMap . SimpleEntry < > ( "certificate_management_policy" , this . certificateManagementPolicy . map ( Function . identity ( ) ) ) ) , Optional . of ( ReservedDomain . class ) ) ; }
Initiates the API call asynchronously.
Initiates the API call asynchronously .