Record Class SyncProxyLoginConfiguration
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.syncproxy.config.SyncProxyLoginConfiguration
public record SyncProxyLoginConfiguration(@NonNull String targetGroup, boolean maintenance, int maxPlayers, @Unmodifiable @NonNull Set<String> whitelist, @Unmodifiable @NonNull List<SyncProxyMotd> motds, @Unmodifiable @NonNull List<SyncProxyMotd> maintenanceMotds)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for themaintenancerecord component.private final @Unmodifiable @NonNull List<SyncProxyMotd> The field for themaintenanceMotdsrecord component.private final intThe field for themaxPlayersrecord component.private final @Unmodifiable @NonNull List<SyncProxyMotd> The field for themotdsrecord component.The field for thetargetGrouprecord component.private final @Unmodifiable @NonNull Set<String> The field for thewhitelistrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSyncProxyLoginConfiguration(@NonNull String targetGroup, boolean maintenance, int maxPlayers, @Unmodifiable @NonNull Set<String> whitelist, @Unmodifiable @NonNull List<SyncProxyMotd> motds, @Unmodifiable @NonNull List<SyncProxyMotd> maintenanceMotds) Creates an instance of aSyncProxyLoginConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(@NonNull SyncProxyLoginConfiguration configuration) createDefault(@NonNull String targetGroup) booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanReturns the value of themaintenancerecord component.Returns the value of themaintenanceMotdsrecord component.intReturns the value of themaxPlayersrecord component.motds()Returns the value of themotdsrecord component.Returns the value of thetargetGrouprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewhitelistrecord component.
-
Field Details
-
targetGroup
-
maintenance
private final boolean maintenanceThe field for themaintenancerecord component. -
maxPlayers
private final int maxPlayersThe field for themaxPlayersrecord component. -
whitelist
The field for thewhitelistrecord component. -
motds
The field for themotdsrecord component. -
maintenanceMotds
The field for themaintenanceMotdsrecord component.
-
-
Constructor Details
-
SyncProxyLoginConfiguration
public SyncProxyLoginConfiguration(@NonNull @NonNull String targetGroup, boolean maintenance, int maxPlayers, @NonNull @Unmodifiable @NonNull Set<String> whitelist, @NonNull @Unmodifiable @NonNull List<SyncProxyMotd> motds, @NonNull @Unmodifiable @NonNull List<SyncProxyMotd> maintenanceMotds) Creates an instance of aSyncProxyLoginConfigurationrecord class.- Parameters:
targetGroup- the value for thetargetGrouprecord componentmaintenance- the value for themaintenancerecord componentmaxPlayers- the value for themaxPlayersrecord componentwhitelist- the value for thewhitelistrecord componentmotds- the value for themotdsrecord componentmaintenanceMotds- the value for themaintenanceMotdsrecord component
-
-
Method Details
-
builder
-
builder
@NonNull public static @NonNull SyncProxyLoginConfiguration.Builder builder(@NonNull @NonNull SyncProxyLoginConfiguration configuration) -
createDefault
-
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. -
hashCode
-
toString
-
targetGroup
-
maintenance
public boolean maintenance()Returns the value of themaintenancerecord component.- Returns:
- the value of the
maintenancerecord component
-
maxPlayers
public int maxPlayers()Returns the value of themaxPlayersrecord component.- Returns:
- the value of the
maxPlayersrecord component
-
whitelist
Returns the value of thewhitelistrecord component.- Returns:
- the value of the
whitelistrecord component
-
motds
Returns the value of themotdsrecord component.- Returns:
- the value of the
motdsrecord component
-
maintenanceMotds
Returns the value of themaintenanceMotdsrecord component.- Returns:
- the value of the
maintenanceMotdsrecord component
-