Record Class Message.Format.Moderation
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Format.Moderation
- All Implemented Interfaces:
EnableSetting
- Enclosing class:
Message.Format
public static record Message.Format.Moderation(Boolean enable, Message.Format.Moderation.Caps caps, Message.Format.Moderation.Delete delete, Message.Format.Moderation.Newbie newbie, Message.Format.Moderation.Flood flood, Message.Format.Moderation.Swear swear)
extends Record
implements EnableSetting
- 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(Boolean enable, Message.Format.Moderation.Caps caps, Message.Format.Moderation.Delete delete, Message.Format.Moderation.Newbie newbie, Message.Format.Moderation.Flood flood, 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.enable()Returns the value of theenablerecord 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.withEnable(Boolean enable)
-
Constructor Details
-
Moderation
public Moderation(Boolean enable, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/caps") Message.Format.Moderation.Caps caps, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/delete") Message.Format.Moderation.Delete delete, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/newbie") Message.Format.Moderation.Newbie newbie, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/flood") Message.Format.Moderation.Flood flood, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/swear") Message.Format.Moderation.Swear swear) Creates an instance of aModerationrecord class.- Parameters:
enable- the value for theenablerecord componentcaps- the value for thecapsrecord componentdelete- the value for thedeleterecord componentnewbie- the value for thenewbierecord componentflood- the value for thefloodrecord componentswear- the value for theswearrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCaps
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDelete
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNewbie
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFlood
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSwear
- 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
-
caps
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/caps") public 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 Message.Format.Moderation.Delete delete()Returns the value of thedeleterecord component.- Returns:
- the value of the
deleterecord component
-
newbie
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/newbie") public Message.Format.Moderation.Newbie newbie()Returns the value of thenewbierecord component.- Returns:
- the value of the
newbierecord component
-
flood
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/flood") public Message.Format.Moderation.Flood flood()Returns the value of thefloodrecord component.- Returns:
- the value of the
floodrecord component
-
swear
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/format/moderation/swear") public Message.Format.Moderation.Swear swear()Returns the value of theswearrecord component.- Returns:
- the value of the
swearrecord component
-