Record Class Integration.Twitch
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Integration.Twitch
- All Implemented Interfaces:
EnableSetting, MessageChannelSetting, SoundConfigSetting
- Enclosing class:
Integration
public static record Integration.Twitch(Boolean enable, String clientID, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Map<String, List<String>> messageChannel, Map<String, Integration.Twitch.Channel> channelAction, Destination destination, Sound sound)
extends Record
implements MessageChannelSetting, SoundConfigSetting, EnableSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Constructor Summary
ConstructorsConstructorDescriptionTwitch(Boolean enable, String clientID, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Map<String, List<String>> messageChannel, Map<String, Integration.Twitch.Channel> channelAction, Destination destination, Sound sound) Creates an instance of aTwitchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thechannelActionrecord component.clientID()Returns the value of theclientIDrecord 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 themessageChannelrecord 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.withChannelAction(Map<String, Integration.Twitch.Channel> channelAction) withClientID(String clientID) withCustomCommand(Map<String, Integration.Command> customCommand) withDestination(Destination destination) withEnable(Boolean enable) withMessageChannel(Map<String, List<String>> messageChannel) withProxy(Integration.Proxy proxy)
-
Constructor Details
-
Twitch
public Twitch(Boolean enable, String clientID, String token, Integration.Proxy proxy, Map<String, Integration.Command> customCommand, Map<String, List<String>> messageChannel, Map<String, Integration.Twitch.Channel> channelAction, Destination destination, Sound sound) Creates an instance of aTwitchrecord class.- Parameters:
enable- the value for theenablerecord componentclientID- the value for theclientIDrecord componenttoken- the value for thetokenrecord componentproxy- the value for theproxyrecord componentcustomCommand- the value for thecustomCommandrecord componentmessageChannel- the value for themessageChannelrecord componentchannelAction- the value for thechannelActionrecord 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).
-
withClientID
- 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).
-
withMessageChannel
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChannelAction
- 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
-
clientID
Returns the value of theclientIDrecord component.- Returns:
- the value of the
clientIDrecord 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
-
messageChannel
Returns the value of themessageChannelrecord component.- Specified by:
messageChannelin interfaceMessageChannelSetting- Returns:
- the value of the
messageChannelrecord component
-
channelAction
Returns the value of thechannelActionrecord component.- Returns:
- the value of the
channelActionrecord 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:
-