Record Class Message.Format.Mention
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Format.Mention
- All Implemented Interfaces:
EnableSetting, SoundConfigSetting
- Enclosing class:
Message.Format
public static record Message.Format.Mention(Boolean enable, String trigger, String namePattern, String everyoneTag, Destination destination, Sound sound)
extends Record
implements EnableSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thedestinationrecord component.enable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeveryoneTagrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenamePatternrecord component.sound()Returns the value of thesoundrecord component.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.withDestination(Destination destination) withEnable(Boolean enable) withEveryoneTag(String everyoneTag) withNamePattern(String namePattern) withTrigger(String trigger)
-
Constructor Details
-
Mention
public Mention(Boolean enable, String trigger, String namePattern, String everyoneTag, Destination destination, Sound sound) Creates an instance of aMentionrecord class.- Parameters:
enable- the value for theenablerecord componenttrigger- the value for thetriggerrecord componentnamePattern- the value for thenamePatternrecord componenteveryoneTag- the value for theeveryoneTagrecord 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).
-
withTrigger
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNamePattern
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEveryoneTag
- 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
-
trigger
Returns the value of thetriggerrecord component.- Returns:
- the value of the
triggerrecord component
-
namePattern
Returns the value of thenamePatternrecord component.- Returns:
- the value of the
namePatternrecord component
-
everyoneTag
Returns the value of theeveryoneTagrecord component.- Returns:
- the value of the
everyoneTagrecord 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:
-