Record Class AiidaConfiguration
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.aiida.config.AiidaConfiguration
- Record Components:
customerId- Customer IdentifierbCryptStrength- Strength to be used byBCryptPasswordEncoder.mqttServerUri- URI of the MQTT broker to which termination requests should be published.mqttUsername- Username to use to authenticate to the MQTT broker.mqttPassword- Optional password to use to authenticate to the MQTT broker.
@ConfigurationProperties("region-connector.aiida")
public record AiidaConfiguration(String customerId, int bCryptStrength, String mqttServerUri, String mqttUsername, String mqttPassword)
extends Record
The main configuration for the AIIDA region connector.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAiidaConfiguration(String customerId, int bCryptStrength, String mqttServerUri, String mqttUsername, String mqttPassword) Creates an instance of aAiidaConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebCryptStrengthrecord component.Returns the value of thecustomerIdrecord 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 themqttPasswordrecord component.Returns the value of themqttServerUrirecord component.Returns the value of themqttUsernamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AiidaConfiguration
public AiidaConfiguration(@Name("customer.id") String customerId, @Name("bcrypt.strength") int bCryptStrength, @Name("mqtt.server.uri") String mqttServerUri, @Name("mqtt.username") @DefaultValue("eddie") String mqttUsername, @Name("mqtt.password") @DefaultValue("") String mqttPassword) Creates an instance of aAiidaConfigurationrecord class.- Parameters:
customerId- the value for thecustomerIdrecord componentbCryptStrength- the value for thebCryptStrengthrecord componentmqttServerUri- the value for themqttServerUrirecord componentmqttUsername- the value for themqttUsernamerecord componentmqttPassword- the value for themqttPasswordrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
customerId
Returns the value of thecustomerIdrecord component.- Returns:
- the value of the
customerIdrecord component
-
bCryptStrength
public int bCryptStrength()Returns the value of thebCryptStrengthrecord component.- Returns:
- the value of the
bCryptStrengthrecord component
-
mqttServerUri
Returns the value of themqttServerUrirecord component.- Returns:
- the value of the
mqttServerUrirecord component
-
mqttUsername
Returns the value of themqttUsernamerecord component.- Returns:
- the value of the
mqttUsernamerecord component
-
mqttPassword
Returns the value of themqttPasswordrecord component.- Returns:
- the value of the
mqttPasswordrecord component
-