Record Class Permission.Message.Status
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Permission.Message.Status
- All Implemented Interfaces:
PermissionSetting
- Enclosing class:
Permission.Message
public static record Permission.Message.Status(String name, Permission.Type type, Permission.Message.Status.Icon icon, Permission.Message.Status.MOTD motd, Permission.Message.Status.Players players, Permission.Message.Status.Version version)
extends Record
implements PermissionSetting
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionStatus(String name, Permission.Type type, Permission.Message.Status.Icon icon, Permission.Message.Status.MOTD motd, Permission.Message.Status.Players players, Permission.Message.Status.Version version) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.motd()Returns the value of themotdrecord component.name()Returns the value of thenamerecord component.players()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.version()Returns the value of theversionrecord component.withType(Permission.Type type)
-
Constructor Details
-
Status
public Status(String name, Permission.Type type, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/icon") Permission.Message.Status.Icon icon, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/motd") Permission.Message.Status.MOTD motd, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/players") Permission.Message.Status.Players players, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/version") Permission.Message.Status.Version version) Creates an instance of aStatusrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componenticon- the value for theiconrecord componentmotd- the value for themotdrecord componentplayers- the value for theplayersrecord componentversion- the value for theversionrecord 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).
-
withIcon
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMotd
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayers
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVersion
- 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:
-
icon
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/icon") public Permission.Message.Status.Icon icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
motd
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/motd") public Permission.Message.Status.MOTD motd()Returns the value of themotdrecord component.- Returns:
- the value of the
motdrecord component
-
players
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/players") public Permission.Message.Status.Players players()Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
version
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/status/version") public Permission.Message.Status.Version version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-