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, String apiClientId, String apiClientSecret)
extends Record
Configuration for the German (DE) ETA Plus region connector.
Spring infers property names from the constructor parameter names.
-
Constructor Summary
ConstructorsConstructorDescriptionDeEtaPlusConfiguration(String eligiblePartyId, String apiBaseUrl, String apiClientId, String apiClientSecret) Creates an instance of aDeEtaPlusConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiBaseUrlrecord component.Returns the value of theapiClientIdrecord component.Returns the value of theapiClientSecretrecord 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, @DefaultValue("https://api.eta-plus.de") String apiBaseUrl, String apiClientId, String apiClientSecret) Creates an instance of aDeEtaPlusConfigurationrecord class.- Parameters:
eligiblePartyId- the value for theeligiblePartyIdrecord componentapiBaseUrl- the value for theapiBaseUrlrecord componentapiClientId- the value for theapiClientIdrecord componentapiClientSecret- the value for theapiClientSecretrecord 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
-
apiClientId
Returns the value of theapiClientIdrecord component.- Returns:
- the value of the
apiClientIdrecord component
-
apiClientSecret
Returns the value of theapiClientSecretrecord component.- Returns:
- the value of the
apiClientSecretrecord component
-