Record Class Command.Whitelist
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Command.Whitelist
- All Implemented Interfaces:
CommandSetting, CooldownConfigSetting, EnableSetting, SoundConfigSetting
- Enclosing class:
Command
public static record Command.Whitelist(Boolean enable, Boolean autoAdd, Long autoAddDuration, Boolean checkDuplicate, Boolean filterByServer, Boolean showConnectionAttempts, Integer perPage, Range range, String subCommandPlayer, Command.ReasonTimeMap reasonTimes, List<String> aliases, Destination destination, Cooldown cooldown, Sound sound)
extends Record
implements CommandSetting, CooldownConfigSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWhitelist(Boolean enable, Boolean autoAdd, Long autoAddDuration, Boolean checkDuplicate, Boolean filterByServer, Boolean showConnectionAttempts, Integer perPage, Range range, String subCommandPlayer, Command.ReasonTimeMap reasonTimes, List<String> aliases, Destination destination, Cooldown cooldown, Sound sound) Creates an instance of aWhitelistrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.autoAdd()Returns the value of theautoAddrecord component.Returns the value of theautoAddDurationrecord component.builder()Returns the value of thecheckDuplicaterecord component.cooldown()Returns the value of thecooldownrecord component.Returns the value of thedestinationrecord component.enable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefilterByServerrecord component.final inthashCode()Returns a hash code value for this object.perPage()Returns the value of theperPagerecord component.range()Returns the value of therangerecord component.Returns the value of thereasonTimesrecord component.Returns the value of theshowConnectionAttemptsrecord component.sound()Returns the value of thesoundrecord component.Returns the value of thesubCommandPlayerrecord component.final StringtoString()Returns a string representation of this record class.withAliases(List<String> aliases) withAutoAdd(Boolean autoAdd) withAutoAddDuration(Long autoAddDuration) withCheckDuplicate(Boolean checkDuplicate) withCooldown(Cooldown cooldown) withDestination(Destination destination) withEnable(Boolean enable) withFilterByServer(Boolean filterByServer) withPerPage(Integer perPage) withReasonTimes(Command.ReasonTimeMap reasonTimes) withShowConnectionAttempts(Boolean showConnectionAttempts) withSubCommandPlayer(String subCommandPlayer)
-
Constructor Details
-
Whitelist
public Whitelist(Boolean enable, Boolean autoAdd, Long autoAddDuration, Boolean checkDuplicate, Boolean filterByServer, Boolean showConnectionAttempts, Integer perPage, Range range, String subCommandPlayer, Command.ReasonTimeMap reasonTimes, List<String> aliases, Destination destination, Cooldown cooldown, Sound sound) Creates an instance of aWhitelistrecord class.- Parameters:
enable- the value for theenablerecord componentautoAdd- the value for theautoAddrecord componentautoAddDuration- the value for theautoAddDurationrecord componentcheckDuplicate- the value for thecheckDuplicaterecord componentfilterByServer- the value for thefilterByServerrecord componentshowConnectionAttempts- the value for theshowConnectionAttemptsrecord componentperPage- the value for theperPagerecord componentrange- the value for therangerecord componentsubCommandPlayer- the value for thesubCommandPlayerrecord componentreasonTimes- the value for thereasonTimesrecord componentaliases- the value for thealiasesrecord componentdestination- the value for thedestinationrecord componentcooldown- the value for thecooldownrecord componentsound- the value for thesoundrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAutoAdd
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAutoAddDuration
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCheckDuplicate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFilterByServer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withShowConnectionAttempts
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPerPage
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRange
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSubCommandPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReasonTimes
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAliases
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDestination
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCooldown
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSound
- 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
-
autoAdd
Returns the value of theautoAddrecord component.- Returns:
- the value of the
autoAddrecord component
-
autoAddDuration
Returns the value of theautoAddDurationrecord component.- Returns:
- the value of the
autoAddDurationrecord component
-
checkDuplicate
Returns the value of thecheckDuplicaterecord component.- Returns:
- the value of the
checkDuplicaterecord component
-
filterByServer
Returns the value of thefilterByServerrecord component.- Returns:
- the value of the
filterByServerrecord component
-
showConnectionAttempts
Returns the value of theshowConnectionAttemptsrecord component.- Returns:
- the value of the
showConnectionAttemptsrecord component
-
perPage
Returns the value of theperPagerecord component.- Returns:
- the value of the
perPagerecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
subCommandPlayer
Returns the value of thesubCommandPlayerrecord component.- Returns:
- the value of the
subCommandPlayerrecord component
-
reasonTimes
Returns the value of thereasonTimesrecord component.- Returns:
- the value of the
reasonTimesrecord component
-
aliases
Returns the value of thealiasesrecord component.- Specified by:
aliasesin interfaceCommandSetting- Returns:
- the value of the
aliasesrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
cooldown
Returns the value of thecooldownrecord component.- Specified by:
cooldownin interfaceCooldownConfigSetting- Returns:
- the value of the
cooldownrecord component - See Also:
-
sound
Returns the value of thesoundrecord component.- Specified by:
soundin interfaceSoundConfigSetting- Returns:
- the value of the
soundrecord component - See Also:
-