Record Class PlainAiidaConfiguration
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.aiida.config.PlainAiidaConfiguration
- All Implemented Interfaces:
AiidaConfiguration
-
Field Summary
Fields inherited from interface energy.eddie.regionconnector.aiida.config.AiidaConfiguration
BCRYPT_STRENGTH, CUSTOMER_ID, EDDIE_PUBLIC_URL, MQTT_PASSWORD, MQTT_SERVER_URI, PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionPlainAiidaConfiguration(String customerId, int bCryptStrength, String handshakeUrl, String mqttServerUri, String mqttPassword) Creates an instance of aPlainAiidaConfigurationrecord 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.Returns the value of thehandshakeUrlrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themqttPasswordrecord component.Returns the value of themqttServerUrirecord component.Username to use to authenticate to the MQTT broker.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlainAiidaConfiguration
public PlainAiidaConfiguration(String customerId, int bCryptStrength, String handshakeUrl, String mqttServerUri, @Nullable String mqttPassword) Creates an instance of aPlainAiidaConfigurationrecord class.- Parameters:
customerId- the value for thecustomerIdrecord componentbCryptStrength- the value for thebCryptStrengthrecord componenthandshakeUrl- the value for thehandshakeUrlrecord componentmqttServerUri- the value for themqttServerUrirecord componentmqttPassword- the value for themqttPasswordrecord component
-
-
Method Details
-
mqttUsername
Description copied from interface:AiidaConfigurationUsername to use to authenticate to the MQTT broker.- Specified by:
mqttUsernamein interfaceAiidaConfiguration
-
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.- Specified by:
customerIdin interfaceAiidaConfiguration- Returns:
- the value of the
customerIdrecord component
-
bCryptStrength
public int bCryptStrength()Returns the value of thebCryptStrengthrecord component.- Specified by:
bCryptStrengthin interfaceAiidaConfiguration- Returns:
- the value of the
bCryptStrengthrecord component - See Also:
-
handshakeUrl
Returns the value of thehandshakeUrlrecord component.- Specified by:
handshakeUrlin interfaceAiidaConfiguration- Returns:
- the value of the
handshakeUrlrecord component
-
mqttServerUri
Returns the value of themqttServerUrirecord component.- Specified by:
mqttServerUriin interfaceAiidaConfiguration- Returns:
- the value of the
mqttServerUrirecord component
-
mqttPassword
Returns the value of themqttPasswordrecord component.- Specified by:
mqttPasswordin interfaceAiidaConfiguration- Returns:
- the value of the
mqttPasswordrecord component
-