Record Class Integration.Discord.Presence
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Integration.Discord.Presence
- Enclosing class:
Integration.Discord
public static record Integration.Discord.Presence(Boolean enable, String status, Integration.Discord.Presence.Activity activity)
extends Record
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Constructor Summary
ConstructorsConstructorDescriptionPresence(Boolean enable, String status, Integration.Discord.Presence.Activity activity) Creates an instance of aPresencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionactivity()Returns the value of theactivityrecord component.builder()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.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.withEnable(Boolean enable) withStatus(String status)
-
Constructor Details
-
Presence
Creates an instance of aPresencerecord class.- Parameters:
enable- the value for theenablerecord componentstatus- the value for thestatusrecord componentactivity- the value for theactivityrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStatus
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withActivity
- 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.- Returns:
- the value of the
enablerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
activity
Returns the value of theactivityrecord component.- Returns:
- the value of the
activityrecord component
-