Record Class DiscordMetadata<L extends LocalizationSetting>
java.lang.Object
java.lang.Record
net.flectone.pulse.module.integration.discord.model.DiscordMetadata<L>
- All Implemented Interfaces:
EventMetadata<L>
public record DiscordMetadata<L extends LocalizationSetting>(@NonNull BaseEventMetadata<L extends LocalizationSetting> base, @NonNull String globalName, @NonNull String nickname, @NonNull String displayName, @NonNull String userName)
extends Record
implements EventMetadata<L>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface EventMetadata
EventMetadata.Builder<L> -
Constructor Summary
ConstructorsConstructorDescriptionDiscordMetadata(@NonNull BaseEventMetadata<L> base, @NonNull String globalName, @NonNull String nickname, @NonNull String displayName, @NonNull String userName) Creates an instance of aDiscordMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull BaseEventMetadata<L> base()Returns the value of thebaserecord component.static <L extends LocalizationSetting>
DiscordMetadata.DiscordMetadataBuilder<L> builder()@NonNull StringReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull StringReturns the value of theglobalNamerecord component.final inthashCode()Returns a hash code value for this object.@NonNull Stringnickname()Returns the value of thenicknamerecord component.final StringtoString()Returns a string representation of this record class.@NonNull StringuserName()Returns the value of theuserNamerecord component.withBase(@NonNull BaseEventMetadata<L> base) withDisplayName(@NonNull String displayName) withGlobalName(@NonNull String globalName) withNickname(@NonNull String nickname) withUserName(@NonNull String userName) Methods inherited from interface EventMetadata
destination, filter, flags, format, integrationMetadata, message, proxy, range, receivers, resolveFormat, resolveTags, sender, sound, tagResolvers, uuid
-
Constructor Details
-
DiscordMetadata
public DiscordMetadata(@NonNull BaseEventMetadata<L> base, @NonNull String globalName, @NonNull String nickname, @NonNull String displayName, @NonNull String userName) Creates an instance of aDiscordMetadatarecord class.- Parameters:
base- the value for thebaserecord componentglobalName- the value for theglobalNamerecord componentnickname- the value for thenicknamerecord componentdisplayName- the value for thedisplayNamerecord componentuserName- the value for theuserNamerecord component
-
-
Method Details
-
builder
-
withBase
- Specified by:
withBasein interfaceEventMetadata<L extends LocalizationSetting>- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withGlobalName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNickname
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDisplayName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUserName
- 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). -
base
Returns the value of thebaserecord component.- Specified by:
basein interfaceEventMetadata<L extends LocalizationSetting>- Returns:
- the value of the
baserecord component
-
globalName
Returns the value of theglobalNamerecord component.- Returns:
- the value of the
globalNamerecord component
-
nickname
Returns the value of thenicknamerecord component.- Returns:
- the value of the
nicknamerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
userName
Returns the value of theuserNamerecord component.- Returns:
- the value of the
userNamerecord component
-