src/main/java/com/ngrok/services/ReservedAddrs.java
public CompletionStage<ReservedAddr> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/reserved_addrs",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("region", Optional.of(this.region)),
                    new AbstractMap.SimpleEntry<>("endpoint_configuration_id", this.endpointConfigurationId.map(Function.identity()))
                ),
                Optional.of(ReservedAddr.class)
            );
        }
/**
         * Initiates the API call asynchronously.
         *
         * @return a {@link CompletionStage} of {@link ReservedAddr}
         */
Initiates the API call asynchronously.
Initiates the API call asynchronously .
public CompletionStage<ReservedAddr> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/reserved_addrs",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("region", Optional.of(this.region)),
                    new AbstractMap.SimpleEntry<>("endpoint_configuration_id", this.endpointConfigurationId.map(Function.identity()))
                ),
                Optional.of(ReservedAddr.class)
            );
        }
public CompletionStage < ReservedAddr > call ( ) { return apiClient . sendRequest ( NgrokApiClient . HttpMethod . POST , "/reserved_addrs" , Stream . empty ( ) , Stream . of ( new AbstractMap . SimpleEntry < > ( "description" , Optional . of ( this . description ) ) , new AbstractMap . SimpleEntry < > ( "metadata" , Optional . of ( this . metadata ) ) , new AbstractMap . SimpleEntry < > ( "region" , Optional . of ( this . region ) ) , new AbstractMap . SimpleEntry < > ( "endpoint_configuration_id" , this . endpointConfigurationId . map ( Function . identity ( ) ) ) ) , Optional . of ( ReservedAddr . class ) ) ; }
Initiates the API call asynchronously.
Initiates the API call asynchronously .