Record Class StConfiguration.Database
java.lang.Object
java.lang.Record
com.io7m.stonesignal.server.StConfiguration.Database
- Enclosing class:
StConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionDatabase(StConfiguration.DatabaseKind kind, String ownerRoleName, String ownerRolePassword, String workerRolePassword, String readerRolePassword, String deviceRolePassword, String address, int port, String databaseName, boolean upgrade) Creates an instance of aDatabaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.Returns the value of thedatabaseNamerecord component.Returns the value of thedeviceRolePasswordrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of theownerRoleNamerecord component.Returns the value of theownerRolePasswordrecord component.intport()Returns the value of theportrecord component.Returns the value of thereaderRolePasswordrecord component.final StringtoString()Returns a string representation of this record class.booleanupgrade()Returns the value of theupgraderecord component.Returns the value of theworkerRolePasswordrecord component.
-
Constructor Details
-
Database
public Database(@JsonPropertyDescription("The database kind.") StConfiguration.DatabaseKind kind, @JsonPropertyDescription("The database owner role.") String ownerRoleName, @JsonPropertyDescription("The database owner role password.") String ownerRolePassword, @JsonPropertyDescription("The database worker role password.") String workerRolePassword, @JsonPropertyDescription("The database reader role password.") String readerRolePassword, @JsonPropertyDescription("The database device role password.") String deviceRolePassword, @JsonPropertyDescription("The database address.") String address, @JsonPropertyDescription("The database port.") int port, @JsonPropertyDescription("The database name.") String databaseName, @JsonPropertyDescription("Upgrade the database?") boolean upgrade) Creates an instance of aDatabaserecord class.- Parameters:
kind- the value for thekindrecord componentownerRoleName- the value for theownerRoleNamerecord componentownerRolePassword- the value for theownerRolePasswordrecord componentworkerRolePassword- the value for theworkerRolePasswordrecord componentreaderRolePassword- the value for thereaderRolePasswordrecord componentdeviceRolePassword- the value for thedeviceRolePasswordrecord componentaddress- the value for theaddressrecord componentport- the value for theportrecord componentdatabaseName- the value for thedatabaseNamerecord componentupgrade- the value for theupgraderecord 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. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
ownerRoleName
Returns the value of theownerRoleNamerecord component.- Returns:
- the value of the
ownerRoleNamerecord component
-
ownerRolePassword
Returns the value of theownerRolePasswordrecord component.- Returns:
- the value of the
ownerRolePasswordrecord component
-
workerRolePassword
Returns the value of theworkerRolePasswordrecord component.- Returns:
- the value of the
workerRolePasswordrecord component
-
readerRolePassword
Returns the value of thereaderRolePasswordrecord component.- Returns:
- the value of the
readerRolePasswordrecord component
-
deviceRolePassword
Returns the value of thedeviceRolePasswordrecord component.- Returns:
- the value of the
deviceRolePasswordrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
port
@JsonPropertyDescription("The database port.") public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
databaseName
Returns the value of thedatabaseNamerecord component.- Returns:
- the value of the
databaseNamerecord component
-
upgrade
@JsonPropertyDescription("Upgrade the database?") public boolean upgrade()Returns the value of theupgraderecord component.- Returns:
- the value of the
upgraderecord component
-