Record Class BotAccessSettings
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.BotAccessSettings
- All Implemented Interfaces:
Serializable, ApiResult
-
Constructor Summary
ConstructorsConstructorDescriptionBotAccessSettings(boolean isAccessRestricted, @Nullable User[] addedUsers) Creates an instance of aBotAccessSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable User[]Returns the value of theaddedUsersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAccessRestrictedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BotAccessSettings
Creates an instance of aBotAccessSettingsrecord class.- Parameters:
isAccessRestricted- the value for theisAccessRestrictedrecord componentaddedUsers- the value for theaddedUsersrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
isAccessRestricted
public boolean isAccessRestricted()Returns the value of theisAccessRestrictedrecord component.- Returns:
- the value of the
isAccessRestrictedrecord component
-
addedUsers
Returns the value of theaddedUsersrecord component.- Returns:
- the value of the
addedUsersrecord component
-