Package com.jtelegram.api.requests
Class GetFile.GetFileBuilder
- java.lang.Object
-
- com.jtelegram.api.requests.GetFile.GetFileBuilder
-
- Enclosing class:
- GetFile
public static class GetFile.GetFileBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetFile
build()
GetFile.GetFileBuilder
callback(java.util.function.Consumer<TelegramFile> callback)
GetFile.GetFileBuilder
errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
GetFile.GetFileBuilder
fileId(java.lang.String fileId)
java.lang.String
toString()
-
-
-
Method Detail
-
callback
public GetFile.GetFileBuilder callback(java.util.function.Consumer<TelegramFile> callback)
-
errorHandler
public GetFile.GetFileBuilder errorHandler(java.util.function.Consumer<TelegramException> errorHandler)
-
fileId
public GetFile.GetFileBuilder fileId(java.lang.String fileId)
-
build
public GetFile build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-