Record Class Config.Database

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Config.Database
Enclosing class:
Config

public static record Config.Database(Boolean usePlaytimeTracking, DatabaseType type, String name, String host, String port, String user, String password, String parameters, String prefix, Config.Database.PoolSettings poolSettings) extends Record
Since:
1.7.1
  • Constructor Details

    • Database

      public Database(Boolean usePlaytimeTracking, DatabaseType type, String name, String host, String port, String user, String password, String parameters, String prefix, Config.Database.PoolSettings poolSettings)
      Creates an instance of a Database record class.
      Parameters:
      usePlaytimeTracking - the value for the usePlaytimeTracking record component
      type - the value for the type record component
      name - the value for the name record component
      host - the value for the host record component
      port - the value for the port record component
      user - the value for the user record component
      password - the value for the password record component
      parameters - the value for the parameters record component
      prefix - the value for the prefix record component
      poolSettings - the value for the poolSettings record component
  • Method Details

    • builder

      public static Config.Database.DatabaseBuilder builder()
    • toBuilder

      public Config.Database.DatabaseBuilder toBuilder()
    • withUsePlaytimeTracking

      public Config.Database withUsePlaytimeTracking(Boolean usePlaytimeTracking)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withType

      public Config.Database withType(DatabaseType type)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withName

      public Config.Database withName(String name)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHost

      public Config.Database withHost(String host)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPort

      public Config.Database withPort(String port)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUser

      public Config.Database withUser(String user)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPassword

      public Config.Database withPassword(String password)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withParameters

      public Config.Database withParameters(String parameters)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPrefix

      public Config.Database withPrefix(String prefix)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPoolSettings

      public Config.Database withPoolSettings(Config.Database.PoolSettings poolSettings)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • usePlaytimeTracking

      public Boolean usePlaytimeTracking()
      Returns the value of the usePlaytimeTracking record component.
      Returns:
      the value of the usePlaytimeTracking record component
    • type

      public DatabaseType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • port

      public String port()
      Returns the value of the port record component.
      Returns:
      the value of the port record component
    • user

      public String user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • password

      public String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • parameters

      public String parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • prefix

      public String prefix()
      Returns the value of the prefix record component.
      Returns:
      the value of the prefix record component
    • poolSettings

      public Config.Database.PoolSettings poolSettings()
      Returns the value of the poolSettings record component.
      Returns:
      the value of the poolSettings record component