Record Class Permission.Message.Format.Moderation
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Permission.Message.Format.Moderation
- All Implemented Interfaces:
PermissionSetting
- Enclosing class:
Permission.Message.Format
public static record Permission.Message.Format.Moderation(String name, Permission.Type type, Permission.Message.Format.Moderation.Caps caps, Permission.Message.Format.Moderation.Delete delete, Permission.Message.Format.Moderation.Newbie newbie, Permission.Message.Format.Moderation.Flood flood, Permission.Message.Format.Moderation.Swear swear)
extends Record
implements PermissionSetting
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic classstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionModeration(String name, Permission.Type type, Permission.Message.Format.Moderation.Caps caps, Permission.Message.Format.Moderation.Delete delete, Permission.Message.Format.Moderation.Newbie newbie, Permission.Message.Format.Moderation.Flood flood, Permission.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.name()Returns the value of thenamerecord component.newbie()Returns the value of thenewbierecord component.swear()Returns the value of theswearrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withType(Permission.Type type)
-
Constructor Details
-
Moderation
public Moderation(String name, Permission.Type type, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/caps") Permission.Message.Format.Moderation.Caps caps, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/delete") Permission.Message.Format.Moderation.Delete delete, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/newbie") Permission.Message.Format.Moderation.Newbie newbie, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/flood") Permission.Message.Format.Moderation.Flood flood, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/swear") Permission.Message.Format.Moderation.Swear swear) Creates an instance of aModerationrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord 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
-
withName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCaps
public Permission.Message.Format.Moderation withCaps(Permission.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 Permission.Message.Format.Moderation withDelete(Permission.Message.Format.Moderation.Delete delete) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNewbie
public Permission.Message.Format.Moderation withNewbie(Permission.Message.Format.Moderation.Newbie newbie) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFlood
public Permission.Message.Format.Moderation withFlood(Permission.Message.Format.Moderation.Flood flood) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSwear
public Permission.Message.Format.Moderation withSwear(Permission.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). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfacePermissionSetting- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfacePermissionSetting- Returns:
- the value of the
typerecord component - See Also:
-
caps
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation/caps") public Permission.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 Permission.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 Permission.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 Permission.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 Permission.Message.Format.Moderation.Swear swear()Returns the value of theswearrecord component.- Returns:
- the value of the
swearrecord component
-