Record Class AiidaConfiguration

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.aiida.config.AiidaConfiguration
Record Components:
customerId - Customer Identifier
bCryptStrength - Strength to be used by BCryptPasswordEncoder.
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 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 a AiidaConfiguration record class.
      Parameters:
      customerId - the value for the customerId record component
      bCryptStrength - the value for the bCryptStrength record component
      mqttServerUri - the value for the mqttServerUri record component
      mqttUsername - the value for the mqttUsername record component
      mqttPassword - the value for the mqttPassword record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • customerId

      public String customerId()
      Returns the value of the customerId record component.
      Returns:
      the value of the customerId record component
    • bCryptStrength

      public int bCryptStrength()
      Returns the value of the bCryptStrength record component.
      Returns:
      the value of the bCryptStrength record component
    • mqttServerUri

      public String mqttServerUri()
      Returns the value of the mqttServerUri record component.
      Returns:
      the value of the mqttServerUri record component
    • mqttUsername

      public String mqttUsername()
      Returns the value of the mqttUsername record component.
      Returns:
      the value of the mqttUsername record component
    • mqttPassword

      public String mqttPassword()
      Returns the value of the mqttPassword record component.
      Returns:
      the value of the mqttPassword record component