Package com.nexmo.client.voice.ncco
Class NotifyAction.Builder
- java.lang.Object
-
- com.nexmo.client.voice.ncco.NotifyAction.Builder
-
- Enclosing class:
- NotifyAction
public static class NotifyAction.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotifyActionbuild()NotifyAction.BuildereventMethod(EventMethod eventMethod)NotifyAction.BuildereventUrl(java.lang.String... eventUrl)NotifyAction.BuildereventUrl(java.util.Collection<java.lang.String> eventUrl)NotifyAction.Builderpayload(java.util.Map<java.lang.String,?> payload)
-
-
-
Constructor Detail
-
Builder
public Builder(java.util.Map<java.lang.String,?> payload, java.util.Collection<java.lang.String> eventUrl)
- Parameters:
payload- A Map of String keys and ? values that will be converted to JSON and sent to your event URL.eventUrl- The URL to send events to.
-
Builder
public Builder(java.util.Map<java.lang.String,?> payload, java.lang.String... eventUrl)
- Parameters:
payload- A Map of String keys and ? values that will be converted to JSON and sent to your event URL.eventUrl- The URL to send events to.
-
-
Method Detail
-
payload
public NotifyAction.Builder payload(java.util.Map<java.lang.String,?> payload)
- Parameters:
payload- A Map of String keys and ? values that will be converted to JSON and sent to your event URL.- Returns:
- The
NotifyAction.Builderto keep building.
-
eventUrl
public NotifyAction.Builder eventUrl(java.util.Collection<java.lang.String> eventUrl)
- Parameters:
eventUrl- The URL to send events to.- Returns:
- The
NotifyAction.Builderto keep building.
-
eventUrl
public NotifyAction.Builder eventUrl(java.lang.String... eventUrl)
- Parameters:
eventUrl- The URL to send events to.- Returns:
- The
NotifyAction.Builderto keep building.
-
eventMethod
public NotifyAction.Builder eventMethod(EventMethod eventMethod)
- Parameters:
eventMethod- The HTTP method to use when sending the payload to your event url.- Returns:
- The
NotifyAction.Builderto keep building.
-
build
public NotifyAction build()
- Returns:
- A new
NotifyActionobject from the stored builder options.
-
-