Record Class DeEtaPlusConfiguration
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.de.eta.config.DeEtaPlusConfiguration
@ConfigurationProperties("region-connector.de.eta")
public record DeEtaPlusConfiguration(String eligiblePartyId, String apiBaseUrl, DeEtaPlusConfiguration.AuthConfig auth, DeEtaPlusConfiguration.ApiConfig api)
extends Record
Configuration for the German (DE) ETA Plus region connector.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDeEtaPlusConfiguration(String eligiblePartyId, String apiBaseUrl, DeEtaPlusConfiguration.AuthConfig auth, DeEtaPlusConfiguration.ApiConfig api) Creates an instance of aDeEtaPlusConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapi()Returns the value of theapirecord component.Returns the value of theapiBaseUrlrecord component.auth()Returns the value of theauthrecord component.Returns the value of theeligiblePartyIdrecord 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
-
DeEtaPlusConfiguration
public DeEtaPlusConfiguration(String eligiblePartyId, String apiBaseUrl, DeEtaPlusConfiguration.AuthConfig auth, DeEtaPlusConfiguration.ApiConfig api) Creates an instance of aDeEtaPlusConfigurationrecord class.- Parameters:
eligiblePartyId- the value for theeligiblePartyIdrecord componentapiBaseUrl- the value for theapiBaseUrlrecord componentauth- the value for theauthrecord componentapi- the value for theapirecord 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). -
eligiblePartyId
Returns the value of theeligiblePartyIdrecord component.- Returns:
- the value of the
eligiblePartyIdrecord component
-
apiBaseUrl
Returns the value of theapiBaseUrlrecord component.- Returns:
- the value of the
apiBaseUrlrecord component
-
auth
Returns the value of theauthrecord component.- Returns:
- the value of the
authrecord component
-
api
Returns the value of theapirecord component.- Returns:
- the value of the
apirecord component
-