Record Class EnedisConfiguration
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.config.EnedisConfiguration
- Record Components:
clientId- Client ID that will be used to authenticate with Enedis. Must be from an Application registered with Enedis.clientSecret- Client Secret that will be used to authenticate with Enedis. Must be from an Application registered with Enedis.basePath- BasePath is optional and can be changed to the sandbox environment of Enedis for testing - default is production.
@ConfigurationProperties("region-connector.fr.enedis")
public record EnedisConfiguration(String clientId, String clientSecret, String basePath)
extends Record
The main configuration for the Enedis region connector.
-
Constructor Summary
ConstructorsConstructorDescriptionEnedisConfiguration(String clientId, String clientSecret, String basePath) Creates an instance of aEnedisConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbasePath()Returns the value of thebasePathrecord component.clientId()Returns the value of theclientIdrecord component.Returns the value of theclientSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnedisConfiguration
public EnedisConfiguration(@Name("client.id") String clientId, @Name("client.secret") String clientSecret, @Name("basepath") String basePath) Creates an instance of aEnedisConfigurationrecord class.- Parameters:
clientId- the value for theclientIdrecord componentclientSecret- the value for theclientSecretrecord componentbasePath- the value for thebasePathrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientSecret
Returns the value of theclientSecretrecord component.- Returns:
- the value of the
clientSecretrecord component
-
basePath
Returns the value of thebasePathrecord component.- Returns:
- the value of the
basePathrecord component
-