Record Class PlainAiidaConfiguration

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.aiida.config.PlainAiidaConfiguration
All Implemented Interfaces:
AiidaConfiguration

public record PlainAiidaConfiguration(String customerId, int bCryptStrength, String handshakeUrl, String mqttServerUri, @Nullable String mqttPassword) extends Record implements AiidaConfiguration
  • Constructor Details

    • PlainAiidaConfiguration

      public PlainAiidaConfiguration(String customerId, int bCryptStrength, String handshakeUrl, String mqttServerUri, @Nullable String mqttPassword)
      Creates an instance of a PlainAiidaConfiguration record class.
      Parameters:
      customerId - the value for the customerId record component
      bCryptStrength - the value for the bCryptStrength record component
      handshakeUrl - the value for the handshakeUrl record component
      mqttServerUri - the value for the mqttServerUri record component
      mqttPassword - the value for the mqttPassword record component
  • Method Details

    • mqttUsername

      public String mqttUsername()
      Description copied from interface: AiidaConfiguration
      Username to use to authenticate to the MQTT broker.
      Specified by:
      mqttUsername in interface AiidaConfiguration
    • 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.
      Specified by:
      customerId in interface AiidaConfiguration
      Returns:
      the value of the customerId record component
    • bCryptStrength

      public int bCryptStrength()
      Returns the value of the bCryptStrength record component.
      Specified by:
      bCryptStrength in interface AiidaConfiguration
      Returns:
      the value of the bCryptStrength record component
      See Also:
    • handshakeUrl

      public String handshakeUrl()
      Returns the value of the handshakeUrl record component.
      Specified by:
      handshakeUrl in interface AiidaConfiguration
      Returns:
      the value of the handshakeUrl record component
    • mqttServerUri

      public String mqttServerUri()
      Returns the value of the mqttServerUri record component.
      Specified by:
      mqttServerUri in interface AiidaConfiguration
      Returns:
      the value of the mqttServerUri record component
    • mqttPassword

      @Nullable public String mqttPassword()
      Returns the value of the mqttPassword record component.
      Specified by:
      mqttPassword in interface AiidaConfiguration
      Returns:
      the value of the mqttPassword record component