Package com.ngrok.services
Class EventSubscriptions.UpdateCallBuilder
java.lang.Object
com.ngrok.services.EventSubscriptions.UpdateCallBuilder
- Enclosing class:
- EventSubscriptions
A builder object encapsulating state for an unsent Update API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the API call and blocks until it returns.call()Initiates the API call asynchronously.description(String description) Arbitrary customer supplied information intended to be human readable.description(Optional<String> description) Arbitrary customer supplied information intended to be human readable.destinationIds(List<String> destinationIds) A list of Event Destination IDs which should be used for this Event Subscription.destinationIds(Optional<List<String>> destinationIds) A list of Event Destination IDs which should be used for this Event Subscription.Arbitrary customer supplied information intended to be machine readable.Arbitrary customer supplied information intended to be machine readable.sources(List<EventSourceReplace> sources) Sources containing the types for which this event subscription will triggersources(Optional<List<EventSourceReplace>> sources) Sources containing the types for which this event subscription will trigger
-
Method Details
-
metadata
Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars.- Parameters:
metadata- the value of the metadata parameter as aString- Returns:
- the call builder instance
-
metadata
Arbitrary customer supplied information intended to be machine readable. Optional, max 4096 chars. -
description
Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars.- Parameters:
description- the value of the description parameter as aString- Returns:
- the call builder instance
-
description
Arbitrary customer supplied information intended to be human readable. Optional, max 255 chars. -
sources
Sources containing the types for which this event subscription will trigger- Parameters:
sources- the value of the sources parameter as aListofEventSourceReplace- Returns:
- the call builder instance
-
sources
Sources containing the types for which this event subscription will trigger- Parameters:
sources- the value of the sources parameter as anOptionalofListofEventSourceReplace- Returns:
- the call builder instance
-
destinationIds
A list of Event Destination IDs which should be used for this Event Subscription. -
destinationIds
A list of Event Destination IDs which should be used for this Event Subscription. -
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStageofEventSubscription
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
EventSubscription- Throws:
InterruptedException- if the thread was interrupted during the call
-