Record Class Integration.Telegram
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Integration.Telegram
- All Implemented Interfaces:
EnableSetting, MessageChannelSetting, SoundConfigSetting
- Enclosing class:
Integration
public static record Integration.Telegram(Boolean enable, Boolean ignoreAllBots, Boolean disableNotification, Boolean protectContent, Integration.Telegram.Mode parseMode, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Integration.ChannelInfo channelInfo, Map<String, List<String>> messageChannel, Destination destination, Sound sound)
extends Record
implements MessageChannelSetting, SoundConfigSetting, EnableSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Constructor Summary
ConstructorsConstructorDescriptionTelegram(Boolean enable, Boolean ignoreAllBots, Boolean disableNotification, Boolean protectContent, Integration.Telegram.Mode parseMode, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Integration.ChannelInfo channelInfo, Map<String, List<String>> messageChannel, Destination destination, Sound sound) Creates an instance of aTelegramrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thechannelInforecord component.Returns the value of thecustomCommandrecord component.Returns the value of thedestinationrecord component.Returns the value of thedisableNotificationrecord component.enable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theignoreAllBotsrecord component.Returns the value of themessageChannelrecord component.Returns the value of theparseModerecord component.Returns the value of theprotectContentrecord component.proxy()Returns the value of theproxyrecord component.sound()Returns the value of thesoundrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.withChannelInfo(Integration.ChannelInfo channelInfo) withCustomCommand(Map<String, Integration.Command> customCommand) withDestination(Destination destination) withDisableNotification(Boolean disableNotification) withEnable(Boolean enable) withIgnoreAllBots(Boolean ignoreAllBots) withMessageChannel(Map<String, List<String>> messageChannel) withParseMode(Integration.Telegram.Mode parseMode) withProtectContent(Boolean protectContent) withProxy(Integration.Proxy proxy)
-
Constructor Details
-
Telegram
public Telegram(Boolean enable, Boolean ignoreAllBots, Boolean disableNotification, Boolean protectContent, Integration.Telegram.Mode parseMode, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Integration.ChannelInfo channelInfo, Map<String, List<String>> messageChannel, Destination destination, Sound sound) Creates an instance of aTelegramrecord class.- Parameters:
enable- the value for theenablerecord componentignoreAllBots- the value for theignoreAllBotsrecord componentdisableNotification- the value for thedisableNotificationrecord componentprotectContent- the value for theprotectContentrecord componentparseMode- the value for theparseModerecord componenttoken- the value for thetokenrecord componentproxy- the value for theproxyrecord componentcustomCommand- the value for thecustomCommandrecord componentchannelInfo- the value for thechannelInforecord componentmessageChannel- the value for themessageChannelrecord componentdestination- the value for thedestinationrecord componentsound- the value for thesoundrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIgnoreAllBots
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDisableNotification
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withProtectContent
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withParseMode
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withToken
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withProxy
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCustomCommand
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChannelInfo
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMessageChannel
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDestination
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
enable
Returns the value of theenablerecord component.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
ignoreAllBots
Returns the value of theignoreAllBotsrecord component.- Returns:
- the value of the
ignoreAllBotsrecord component
-
disableNotification
Returns the value of thedisableNotificationrecord component.- Returns:
- the value of the
disableNotificationrecord component
-
protectContent
Returns the value of theprotectContentrecord component.- Returns:
- the value of the
protectContentrecord component
-
parseMode
Returns the value of theparseModerecord component.- Returns:
- the value of the
parseModerecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
proxy
Returns the value of theproxyrecord component.- Returns:
- the value of the
proxyrecord component
-
customCommand
Returns the value of thecustomCommandrecord component.- Returns:
- the value of the
customCommandrecord component
-
channelInfo
Returns the value of thechannelInforecord component.- Returns:
- the value of the
channelInforecord component
-
messageChannel
Returns the value of themessageChannelrecord component.- Specified by:
messageChannelin interfaceMessageChannelSetting- Returns:
- the value of the
messageChannelrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
sound
Returns the value of thesoundrecord component.- Specified by:
soundin interfaceSoundConfigSetting- Returns:
- the value of the
soundrecord component - See Also:
-