Record Class DeEtaPlusConfiguration
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.de.eta.config.DeEtaPlusConfiguration
@Validated
@ConfigurationProperties("region-connector.de.eta")
public record DeEtaPlusConfiguration(String eligiblePartyId, @NotBlank String apiBaseUrl, @NotBlank String apiClientId, @NotBlank String apiClientSecret, String meteredDataEndpoint, String accountingPointEndpoint, String permissionCheckEndpoint, @jakarta.validation.constraints.Positive int responseTimeoutSeconds, @jakarta.validation.constraints.PositiveOrZero int retryMaxAttempts, @jakarta.validation.constraints.PositiveOrZero int retryInitialBackoffSeconds, boolean sslEnabled, boolean sslTrustAll, 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, @NotBlank String apiBaseUrl, @NotBlank String apiClientId, @NotBlank String apiClientSecret, String meteredDataEndpoint, String accountingPointEndpoint, String permissionCheckEndpoint, @jakarta.validation.constraints.Positive int responseTimeoutSeconds, @jakarta.validation.constraints.PositiveOrZero int retryMaxAttempts, @jakarta.validation.constraints.PositiveOrZero int retryInitialBackoffSeconds, boolean sslEnabled, boolean sslTrustAll, DeEtaPlusConfiguration.AuthConfig auth, DeEtaPlusConfiguration.ApiConfig api) Creates an instance of aDeEtaPlusConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountingPointEndpointrecord component.api()Returns the value of theapirecord component.@NotBlank StringReturns the value of theapiBaseUrlrecord component.@NotBlank StringReturns the value of theapiClientIdrecord component.@NotBlank StringReturns the value of theapiClientSecretrecord 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.Returns the value of themeteredDataEndpointrecord component.Returns the value of thepermissionCheckEndpointrecord component.@jakarta.validation.constraints.Positive intReturns the value of theresponseTimeoutSecondsrecord component.@jakarta.validation.constraints.PositiveOrZero intReturns the value of theretryInitialBackoffSecondsrecord component.@jakarta.validation.constraints.PositiveOrZero intReturns the value of theretryMaxAttemptsrecord component.booleanReturns the value of thesslEnabledrecord component.booleanReturns the value of thesslTrustAllrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeEtaPlusConfiguration
public DeEtaPlusConfiguration(String eligiblePartyId, @NotBlank @DefaultValue("https://int.eta-plus.com/api") @NotBlank String apiBaseUrl, @NotBlank @NotBlank String apiClientId, @NotBlank @NotBlank String apiClientSecret, @DefaultValue("/meters/historical") String meteredDataEndpoint, @DefaultValue("/meters/accounting-point") String accountingPointEndpoint, @DefaultValue("/v1/permissions/{id}") String permissionCheckEndpoint, @Positive @DefaultValue("30") @jakarta.validation.constraints.Positive int responseTimeoutSeconds, @PositiveOrZero @DefaultValue("3") @jakarta.validation.constraints.PositiveOrZero int retryMaxAttempts, @PositiveOrZero @DefaultValue("2") @jakarta.validation.constraints.PositiveOrZero int retryInitialBackoffSeconds, @DefaultValue("true") boolean sslEnabled, @DefaultValue("false") boolean sslTrustAll, DeEtaPlusConfiguration.AuthConfig auth, DeEtaPlusConfiguration.ApiConfig api) 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 componentmeteredDataEndpoint- the value for themeteredDataEndpointrecord componentaccountingPointEndpoint- the value for theaccountingPointEndpointrecord componentpermissionCheckEndpoint- the value for thepermissionCheckEndpointrecord componentresponseTimeoutSeconds- the value for theresponseTimeoutSecondsrecord componentretryMaxAttempts- the value for theretryMaxAttemptsrecord componentretryInitialBackoffSeconds- the value for theretryInitialBackoffSecondsrecord componentsslEnabled- the value for thesslEnabledrecord componentsslTrustAll- the value for thesslTrustAllrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
meteredDataEndpoint
Returns the value of themeteredDataEndpointrecord component.- Returns:
- the value of the
meteredDataEndpointrecord component
-
accountingPointEndpoint
Returns the value of theaccountingPointEndpointrecord component.- Returns:
- the value of the
accountingPointEndpointrecord component
-
permissionCheckEndpoint
Returns the value of thepermissionCheckEndpointrecord component.- Returns:
- the value of the
permissionCheckEndpointrecord component
-
responseTimeoutSeconds
@Positive public @jakarta.validation.constraints.Positive int responseTimeoutSeconds()Returns the value of theresponseTimeoutSecondsrecord component.- Returns:
- the value of the
responseTimeoutSecondsrecord component
-
retryMaxAttempts
@PositiveOrZero public @jakarta.validation.constraints.PositiveOrZero int retryMaxAttempts()Returns the value of theretryMaxAttemptsrecord component.- Returns:
- the value of the
retryMaxAttemptsrecord component
-
retryInitialBackoffSeconds
@PositiveOrZero public @jakarta.validation.constraints.PositiveOrZero int retryInitialBackoffSeconds()Returns the value of theretryInitialBackoffSecondsrecord component.- Returns:
- the value of the
retryInitialBackoffSecondsrecord component
-
sslEnabled
public boolean sslEnabled()Returns the value of thesslEnabledrecord component.- Returns:
- the value of the
sslEnabledrecord component
-
sslTrustAll
public boolean sslTrustAll()Returns the value of thesslTrustAllrecord component.- Returns:
- the value of the
sslTrustAllrecord 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
-