Record Class StConfiguration
java.lang.Object
java.lang.Record
com.io7m.stonesignal.server.StConfiguration
public record StConfiguration(StConfiguration.Database database, Optional<StConfiguration.OpenTelemetry> openTelemetry, StConfiguration.DeviceAPI deviceAPI, StConfiguration.AdminAPI adminAPI, StConfiguration.DataAPI dataAPI)
extends Record
The server configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic enumstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionStConfiguration(StConfiguration.Database database, Optional<StConfiguration.OpenTelemetry> openTelemetry, StConfiguration.DeviceAPI deviceAPI, StConfiguration.AdminAPI adminAPI, StConfiguration.DataAPI dataAPI) Creates an instance of aStConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionadminAPI()Returns the value of theadminAPIrecord component.dataAPI()Returns the value of thedataAPIrecord component.database()Returns the value of thedatabaserecord component.Returns the value of thedeviceAPIrecord 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 theopenTelemetryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StConfiguration
public StConfiguration(@JsonPropertyDescription("The database configuration.") StConfiguration.Database database, @JsonPropertyDescription("The OpenTelemetry configuration.") Optional<StConfiguration.OpenTelemetry> openTelemetry, @JsonPropertyDescription("The device API configuration.") StConfiguration.DeviceAPI deviceAPI, @JsonPropertyDescription("The admin API configuration.") StConfiguration.AdminAPI adminAPI, @JsonPropertyDescription("The data API configuration.") StConfiguration.DataAPI dataAPI) Creates an instance of aStConfigurationrecord class.- Parameters:
database- the value for thedatabaserecord componentopenTelemetry- the value for theopenTelemetryrecord componentdeviceAPI- the value for thedeviceAPIrecord componentadminAPI- the value for theadminAPIrecord componentdataAPI- the value for thedataAPIrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
openTelemetry
@JsonPropertyDescription("The OpenTelemetry configuration.") public Optional<StConfiguration.OpenTelemetry> openTelemetry()Returns the value of theopenTelemetryrecord component.- Returns:
- the value of the
openTelemetryrecord component
-
deviceAPI
@JsonPropertyDescription("The device API configuration.") public StConfiguration.DeviceAPI deviceAPI()Returns the value of thedeviceAPIrecord component.- Returns:
- the value of the
deviceAPIrecord component
-
adminAPI
Returns the value of theadminAPIrecord component.- Returns:
- the value of the
adminAPIrecord component
-
dataAPI
Returns the value of thedataAPIrecord component.- Returns:
- the value of the
dataAPIrecord component
-