Record Class Message.Status
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Status
- All Implemented Interfaces:
EnableSetting
- Enclosing class:
Message
public static record Message.Status(Boolean enable, Message.Status.Icon icon, Message.Status.MOTD motd, Message.Status.Players players, Message.Status.Version version)
extends Record
implements EnableSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionStatus(Boolean enable, Message.Status.Icon icon, Message.Status.MOTD motd, Message.Status.Players players, Message.Status.Version version) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Message.Status.StatusBuilderbuilder()enable()Returns the value of theenablerecord component.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.players()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.withEnable(Boolean enable) withIcon(Message.Status.Icon icon) withMotd(Message.Status.MOTD motd) withPlayers(Message.Status.Players players) withVersion(Message.Status.Version version)
-
Constructor Details
-
Status
public Status(Boolean enable, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/status/icon") Message.Status.Icon icon, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/status/motd") Message.Status.MOTD motd, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/status/players") Message.Status.Players players, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/status/version") Message.Status.Version version) Creates an instance of aStatusrecord class.- Parameters:
enable- the value for theenablerecord 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
-
withEnable
- 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). -
enable
Returns the value of theenablerecord component.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
icon
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/status/icon") public 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 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 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 Message.Status.Version version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-