src/main/java/com/ngrok/services/EventStreams.java
public CompletionStage<EventStream> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/event_streams",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("fields", Optional.of(this.fields)),
                    new AbstractMap.SimpleEntry<>("event_type", Optional.of(this.eventType)),
                    new AbstractMap.SimpleEntry<>("destination_ids", Optional.of(this.destinationIds)),
                    new AbstractMap.SimpleEntry<>("sampling_rate", Optional.of(this.samplingRate))
                ),
                Optional.of(EventStream.class)
            );
        }
/**
         * Initiates the API call asynchronously.
         *
         * @return a {@link CompletionStage} of {@link EventStream}
         */
Initiates the API call asynchronously.
Initiates the API call asynchronously .
public CompletionStage<EventStream> call() {
            return apiClient.sendRequest(
                NgrokApiClient.HttpMethod.POST,
                "/event_streams",
                Stream.empty(),
                Stream.of(
                    new AbstractMap.SimpleEntry<>("metadata", Optional.of(this.metadata)),
                    new AbstractMap.SimpleEntry<>("description", Optional.of(this.description)),
                    new AbstractMap.SimpleEntry<>("fields", Optional.of(this.fields)),
                    new AbstractMap.SimpleEntry<>("event_type", Optional.of(this.eventType)),
                    new AbstractMap.SimpleEntry<>("destination_ids", Optional.of(this.destinationIds)),
                    new AbstractMap.SimpleEntry<>("sampling_rate", Optional.of(this.samplingRate))
                ),
                Optional.of(EventStream.class)
            );
        }
public CompletionStage < EventStream > call ( ) { return apiClient . sendRequest ( NgrokApiClient . HttpMethod . POST , "/event_streams" , Stream . empty ( ) , Stream . of ( new AbstractMap . SimpleEntry < > ( "metadata" , Optional . of ( this . metadata ) ) , new AbstractMap . SimpleEntry < > ( "description" , Optional . of ( this . description ) ) , new AbstractMap . SimpleEntry < > ( "fields" , Optional . of ( this . fields ) ) , new AbstractMap . SimpleEntry < > ( "event_type" , Optional . of ( this . eventType ) ) , new AbstractMap . SimpleEntry < > ( "destination_ids" , Optional . of ( this . destinationIds ) ) , new AbstractMap . SimpleEntry < > ( "sampling_rate" , Optional . of ( this . samplingRate ) ) ) , Optional . of ( EventStream . class ) ) ; }
Initiates the API call asynchronously.
Initiates the API call asynchronously .