Record Class AtConfiguration
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.config.AtConfiguration
- Record Components:
eligiblePartyId- ID that will be used as the sender for all messages sent to EDA. This ID must be registered with EDA at ebUtilities.conversationIdPrefix- Optional prefix used for generated EDA message and conversation IDs.
@Validated
@ConfigurationProperties("region-connector.at.eda")
public record AtConfiguration(@NotBlank String eligiblePartyId, @Nullable String energyCommunityId, @NotNull @Pattern(regexp="[0-9A-Za-z]*",message="must contain only ASCII letters and digits") String conversationIdPrefix)
extends Record
The main configuration for the EDA region connector.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAtConfiguration(@NotBlank String eligiblePartyId, @Nullable String energyCommunityId, @NotNull @Pattern(regexp="[0-9A-Za-z]*",message="must contain only ASCII letters and digits") String conversationIdPrefix) Creates an instance of aAtConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @Pattern(regexp="[0-9A-Za-z]*",message="must contain only ASCII letters and digits") StringReturns the value of theconversationIdPrefixrecord component.@NotBlank StringReturns the value of theeligiblePartyIdrecord component.@Nullable StringReturns the value of theenergyCommunityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
CONVERSATION_ID_PREFIX_PATTERN
- See Also:
-
-
Constructor Details
-
AtConfiguration
public AtConfiguration(@Name("eligibleparty.id") @NotBlank @NotBlank String eligiblePartyId, @Nullable String energyCommunityId, @Name("conversation-id.prefix") @NotNull @Pattern(regexp="[0-9A-Za-z]*",message="must contain only ASCII letters and digits") @DefaultValue("") @NotNull @Pattern(regexp="[0-9A-Za-z]*",message="must contain only ASCII letters and digits") String conversationIdPrefix) Creates an instance of aAtConfigurationrecord class.- Parameters:
eligiblePartyId- the value for theeligiblePartyIdrecord componentenergyCommunityId- the value for theenergyCommunityIdrecord componentconversationIdPrefix- the value for theconversationIdPrefixrecord component
-
-
Method Details
-
supportsEnergyCommunity
public boolean supportsEnergyCommunity() -
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
-
energyCommunityId
Returns the value of theenergyCommunityIdrecord component.- Returns:
- the value of the
energyCommunityIdrecord component
-
conversationIdPrefix
@NotNull @Pattern(regexp="[0-9A-Za-z]*", message="must contain only ASCII letters and digits") public @NotNull @Pattern(regexp="[0-9A-Za-z]*",message="must contain only ASCII letters and digits") String conversationIdPrefix()Returns the value of theconversationIdPrefixrecord component.- Returns:
- the value of the
conversationIdPrefixrecord component
-