Class SetWebhook.SetWebhookBuilder
- java.lang.Object
-
- com.jtelegram.api.requests.webhooks.SetWebhook.SetWebhookBuilder
-
- Enclosing class:
- SetWebhook
public static class SetWebhook.SetWebhookBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetWebhook.SetWebhookBuilder
allowedTypes(java.util.List<UpdateType> allowedTypes)
SetWebhook
build()
SetWebhook.SetWebhookBuilder
callback(java.lang.Runnable callback)
SetWebhook.SetWebhookBuilder
certificate(LocalInputFile certificate)
SetWebhook.SetWebhookBuilder
errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
SetWebhook.SetWebhookBuilder
maxConnections(java.lang.Integer maxConnections)
java.lang.String
toString()
SetWebhook.SetWebhookBuilder
url(java.net.URL url)
-
-
-
Method Detail
-
errorHandler
public SetWebhook.SetWebhookBuilder errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
callback
public SetWebhook.SetWebhookBuilder callback(java.lang.Runnable callback)
-
url
public SetWebhook.SetWebhookBuilder url(java.net.URL url)
-
certificate
public SetWebhook.SetWebhookBuilder certificate(LocalInputFile certificate)
-
maxConnections
public SetWebhook.SetWebhookBuilder maxConnections(java.lang.Integer maxConnections)
-
allowedTypes
public SetWebhook.SetWebhookBuilder allowedTypes(java.util.List<UpdateType> allowedTypes)
-
build
public SetWebhook build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-