Package com.ngrok.services
Class EventDestinations.CreateCallBuilder
java.lang.Object
com.ngrok.services.EventDestinations.CreateCallBuilder
- Enclosing class:
- EventDestinations
A builder object encapsulating state for an unsent Create API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.description
(String description) Human-readable description of the Event Destination.description
(Optional<String> description) Human-readable description of the Event Destination.The output format you would like to serialize events into when sending to their target.The output format you would like to serialize events into when sending to their target.Arbitrary user-defined machine-readable data of this Event Destination.Arbitrary user-defined machine-readable data of this Event Destination.target
(EventTarget target) An object that encapsulates where and how to send your events.target
(Optional<EventTarget> target) An object that encapsulates where and how to send your events.
-
Method Details
-
metadata
Arbitrary user-defined machine-readable data of this Event Destination. Optional, max 4096 bytes.- Parameters:
metadata
- the value of the metadata parameter as aString
- Returns:
- the call builder instance
-
metadata
Arbitrary user-defined machine-readable data of this Event Destination. Optional, max 4096 bytes. -
description
Human-readable description of the Event Destination. Optional, max 255 bytes.- Parameters:
description
- the value of the description parameter as aString
- Returns:
- the call builder instance
-
description
Human-readable description of the Event Destination. Optional, max 255 bytes. -
format
The output format you would like to serialize events into when sending to their target. Currently the only accepted value isJSON
.- Parameters:
format
- the value of the format parameter as aString
- Returns:
- the call builder instance
-
format
The output format you would like to serialize events into when sending to their target. Currently the only accepted value isJSON
. -
target
An object that encapsulates where and how to send your events. An event destination must contain exactly one of the following objects, leaving the rest null:kinesis
,firehose
,cloudwatch_logs
, ors3
.- Parameters:
target
- the value of the target parameter as aEventTarget
- Returns:
- the call builder instance
-
target
An object that encapsulates where and how to send your events. An event destination must contain exactly one of the following objects, leaving the rest null:kinesis
,firehose
,cloudwatch_logs
, ors3
.- Parameters:
target
- the value of the target parameter as anOptional
ofEventTarget
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofEventDestination
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
EventDestination
- Throws:
InterruptedException
- if the thread was interrupted during the call
-