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.
  • 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 a DeEtaPlusConfiguration record class.
      Parameters:
      eligiblePartyId - the value for the eligiblePartyId record component
      apiBaseUrl - the value for the apiBaseUrl record component
      apiClientId - the value for the apiClientId record component
      apiClientSecret - the value for the apiClientSecret record component
      meteredDataEndpoint - the value for the meteredDataEndpoint record component
      accountingPointEndpoint - the value for the accountingPointEndpoint record component
      permissionCheckEndpoint - the value for the permissionCheckEndpoint record component
      responseTimeoutSeconds - the value for the responseTimeoutSeconds record component
      retryMaxAttempts - the value for the retryMaxAttempts record component
      retryInitialBackoffSeconds - the value for the retryInitialBackoffSeconds record component
      sslEnabled - the value for the sslEnabled record component
      sslTrustAll - the value for the sslTrustAll record component
      auth - the value for the auth record component
      api - the value for the api record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • eligiblePartyId

      public String eligiblePartyId()
      Returns the value of the eligiblePartyId record component.
      Returns:
      the value of the eligiblePartyId record component
    • apiBaseUrl

      @NotBlank public @NotBlank String apiBaseUrl()
      Returns the value of the apiBaseUrl record component.
      Returns:
      the value of the apiBaseUrl record component
    • apiClientId

      @NotBlank public @NotBlank String apiClientId()
      Returns the value of the apiClientId record component.
      Returns:
      the value of the apiClientId record component
    • apiClientSecret

      @NotBlank public @NotBlank String apiClientSecret()
      Returns the value of the apiClientSecret record component.
      Returns:
      the value of the apiClientSecret record component
    • meteredDataEndpoint

      public String meteredDataEndpoint()
      Returns the value of the meteredDataEndpoint record component.
      Returns:
      the value of the meteredDataEndpoint record component
    • accountingPointEndpoint

      public String accountingPointEndpoint()
      Returns the value of the accountingPointEndpoint record component.
      Returns:
      the value of the accountingPointEndpoint record component
    • permissionCheckEndpoint

      public String permissionCheckEndpoint()
      Returns the value of the permissionCheckEndpoint record component.
      Returns:
      the value of the permissionCheckEndpoint record component
    • responseTimeoutSeconds

      @Positive public @jakarta.validation.constraints.Positive int responseTimeoutSeconds()
      Returns the value of the responseTimeoutSeconds record component.
      Returns:
      the value of the responseTimeoutSeconds record component
    • retryMaxAttempts

      @PositiveOrZero public @jakarta.validation.constraints.PositiveOrZero int retryMaxAttempts()
      Returns the value of the retryMaxAttempts record component.
      Returns:
      the value of the retryMaxAttempts record component
    • retryInitialBackoffSeconds

      @PositiveOrZero public @jakarta.validation.constraints.PositiveOrZero int retryInitialBackoffSeconds()
      Returns the value of the retryInitialBackoffSeconds record component.
      Returns:
      the value of the retryInitialBackoffSeconds record component
    • sslEnabled

      public boolean sslEnabled()
      Returns the value of the sslEnabled record component.
      Returns:
      the value of the sslEnabled record component
    • sslTrustAll

      public boolean sslTrustAll()
      Returns the value of the sslTrustAll record component.
      Returns:
      the value of the sslTrustAll record component
    • auth

      Returns the value of the auth record component.
      Returns:
      the value of the auth record component
    • api

      Returns the value of the api record component.
      Returns:
      the value of the api record component