Record Class CAServerConfigurationFile
java.lang.Object
java.lang.Record
com.io7m.cardant.server.api.CAServerConfigurationFile
- Record Components:
inventoryService- The inventory service configurationdatabaseConfiguration- The database configurationidstoreConfiguration- The idstore server configurationlimitsConfiguration- The limits configurationmaintenanceConfiguration- The maintenance configurationopenTelemetry- The OpenTelemetry configuration
public record CAServerConfigurationFile(CAServerHTTPServiceConfiguration inventoryService, CAServerDatabaseConfiguration databaseConfiguration, CAServerIdstoreConfiguration idstoreConfiguration, CAServerLimitsConfiguration limitsConfiguration, CAServerMaintenanceConfiguration maintenanceConfiguration, Optional<CAServerOpenTelemetryConfiguration> openTelemetry)
extends Record
The server configuration file.
-
Constructor Summary
ConstructorsConstructorDescriptionCAServerConfigurationFile(CAServerHTTPServiceConfiguration inventoryService, CAServerDatabaseConfiguration databaseConfiguration, CAServerIdstoreConfiguration idstoreConfiguration, CAServerLimitsConfiguration limitsConfiguration, CAServerMaintenanceConfiguration maintenanceConfiguration, Optional<CAServerOpenTelemetryConfiguration> openTelemetry) The server configuration file. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatabaseConfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidstoreConfigurationrecord component.Returns the value of theinventoryServicerecord component.Returns the value of thelimitsConfigurationrecord component.Returns the value of themaintenanceConfigurationrecord component.Returns the value of theopenTelemetryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAServerConfigurationFile
public CAServerConfigurationFile(CAServerHTTPServiceConfiguration inventoryService, CAServerDatabaseConfiguration databaseConfiguration, CAServerIdstoreConfiguration idstoreConfiguration, CAServerLimitsConfiguration limitsConfiguration, CAServerMaintenanceConfiguration maintenanceConfiguration, Optional<CAServerOpenTelemetryConfiguration> openTelemetry) The server configuration file.- Parameters:
inventoryService- The inventory service configurationdatabaseConfiguration- The database configurationidstoreConfiguration- The idstore server configurationlimitsConfiguration- The limits configurationmaintenanceConfiguration- The maintenance configurationopenTelemetry- The OpenTelemetry configuration
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
inventoryService
Returns the value of theinventoryServicerecord component.- Returns:
- the value of the
inventoryServicerecord component
-
databaseConfiguration
Returns the value of thedatabaseConfigurationrecord component.- Returns:
- the value of the
databaseConfigurationrecord component
-
idstoreConfiguration
Returns the value of theidstoreConfigurationrecord component.- Returns:
- the value of the
idstoreConfigurationrecord component
-
limitsConfiguration
Returns the value of thelimitsConfigurationrecord component.- Returns:
- the value of the
limitsConfigurationrecord component
-
maintenanceConfiguration
Returns the value of themaintenanceConfigurationrecord component.- Returns:
- the value of the
maintenanceConfigurationrecord component
-
openTelemetry
Returns the value of theopenTelemetryrecord component.- Returns:
- the value of the
openTelemetryrecord component
-