Record Class Integration.Discord
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Integration.Discord
- All Implemented Interfaces:
EnableSetting, MessageChannelSetting, SoundConfigSetting
- Enclosing class:
Integration
public static record Integration.Discord(Boolean enable, Boolean ignoreAllBots, Boolean ignoreAllWebhooks, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Integration.Discord.Presence presence, 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 classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDiscord(Boolean enable, Boolean ignoreAllBots, Boolean ignoreAllWebhooks, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Integration.Discord.Presence presence, Integration.ChannelInfo channelInfo, Map<String, List<String>> messageChannel, Destination destination, Sound sound) Creates an instance of aDiscordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thechannelInforecord component.Returns the value of thecustomCommandrecord component.Returns the value of thedestinationrecord 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 theignoreAllWebhooksrecord component.Returns the value of themessageChannelrecord component.presence()Returns the value of thepresencerecord 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) withEnable(Boolean enable) withIgnoreAllBots(Boolean ignoreAllBots) withIgnoreAllWebhooks(Boolean ignoreAllWebhooks) withMessageChannel(Map<String, List<String>> messageChannel) withPresence(Integration.Discord.Presence presence) withProxy(Integration.Proxy proxy)
-
Constructor Details
-
Discord
public Discord(Boolean enable, Boolean ignoreAllBots, Boolean ignoreAllWebhooks, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Integration.Discord.Presence presence, Integration.ChannelInfo channelInfo, Map<String, List<String>> messageChannel, Destination destination, Sound sound) Creates an instance of aDiscordrecord class.- Parameters:
enable- the value for theenablerecord componentignoreAllBots- the value for theignoreAllBotsrecord componentignoreAllWebhooks- the value for theignoreAllWebhooksrecord componenttoken- the value for thetokenrecord componentproxy- the value for theproxyrecord componentcustomCommand- the value for thecustomCommandrecord componentpresence- the value for thepresencerecord 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).
-
withIgnoreAllWebhooks
- 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).
-
withPresence
- 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
-
ignoreAllWebhooks
Returns the value of theignoreAllWebhooksrecord component.- Returns:
- the value of the
ignoreAllWebhooksrecord 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
-
presence
Returns the value of thepresencerecord component.- Returns:
- the value of the
presencerecord 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:
-