Record Class Localization.Message.Format.Moderation
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Message.Format.Moderation
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Message.Format
public static record Localization.Message.Format.Moderation(Localization.Message.Format.Moderation.Caps caps, Localization.Message.Format.Moderation.Delete delete, Localization.Message.Format.Moderation.Flood flood, Localization.Message.Format.Moderation.Newbie newbie, Localization.Message.Format.Moderation.Swear swear)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic classstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionModeration(Localization.Message.Format.Moderation.Caps caps, Localization.Message.Format.Moderation.Delete delete, Localization.Message.Format.Moderation.Flood flood, Localization.Message.Format.Moderation.Newbie newbie, Localization.Message.Format.Moderation.Swear swear) Creates an instance of aModerationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()caps()Returns the value of thecapsrecord component.delete()Returns the value of thedeleterecord component.final booleanIndicates whether some other object is "equal to" this one.flood()Returns the value of thefloodrecord component.final inthashCode()Returns a hash code value for this object.newbie()Returns the value of thenewbierecord component.swear()Returns the value of theswearrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Moderation
public Moderation(@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/caps") Localization.Message.Format.Moderation.Caps caps, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/delete") Localization.Message.Format.Moderation.Delete delete, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/flood") Localization.Message.Format.Moderation.Flood flood, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/newbie") Localization.Message.Format.Moderation.Newbie newbie, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/swear") Localization.Message.Format.Moderation.Swear swear) Creates an instance of aModerationrecord class.- Parameters:
caps- the value for thecapsrecord componentdelete- the value for thedeleterecord componentflood- the value for thefloodrecord componentnewbie- the value for thenewbierecord componentswear- the value for theswearrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withCaps
public Localization.Message.Format.Moderation withCaps(Localization.Message.Format.Moderation.Caps caps) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDelete
public Localization.Message.Format.Moderation withDelete(Localization.Message.Format.Moderation.Delete delete) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFlood
public Localization.Message.Format.Moderation withFlood(Localization.Message.Format.Moderation.Flood flood) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNewbie
public Localization.Message.Format.Moderation withNewbie(Localization.Message.Format.Moderation.Newbie newbie) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSwear
public Localization.Message.Format.Moderation withSwear(Localization.Message.Format.Moderation.Swear swear) - 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). -
caps
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/caps") public Localization.Message.Format.Moderation.Caps caps()Returns the value of thecapsrecord component.- Returns:
- the value of the
capsrecord component
-
delete
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/delete") public Localization.Message.Format.Moderation.Delete delete()Returns the value of thedeleterecord component.- Returns:
- the value of the
deleterecord component
-
flood
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/flood") public Localization.Message.Format.Moderation.Flood flood()Returns the value of thefloodrecord component.- Returns:
- the value of the
floodrecord component
-
newbie
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/newbie") public Localization.Message.Format.Moderation.Newbie newbie()Returns the value of thenewbierecord component.- Returns:
- the value of the
newbierecord component
-
swear
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/swear") public Localization.Message.Format.Moderation.Swear swear()Returns the value of theswearrecord component.- Returns:
- the value of the
swearrecord component
-