Record Class CMRequestStatus
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.models.CMRequestStatus
public record CMRequestStatus(NotificationMessageType messageType, String conversationId, @Nullable String cmRequestId, List<ConsentData> consentData)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCMRequestStatus(NotificationMessageType messageType, String conversationId, String message) CMRequestStatus(NotificationMessageType messageType, String conversationId, String cmRequestId, List<ConsentData> consentData) Creates an instance of aCMRequestStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecmRequestIdrecord component.Returns the value of theconsentDatarecord component.Returns the value of theconversationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessageTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CMRequestStatus
-
CMRequestStatus
public CMRequestStatus(NotificationMessageType messageType, String conversationId, @Nullable String cmRequestId, List<ConsentData> consentData) Creates an instance of aCMRequestStatusrecord class.- Parameters:
messageType- the value for themessageTyperecord componentconversationId- the value for theconversationIdrecord componentcmRequestId- the value for thecmRequestIdrecord componentconsentData- the value for theconsentDatarecord component
-
-
Method Details
-
message
-
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). -
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
conversationId
Returns the value of theconversationIdrecord component.- Returns:
- the value of the
conversationIdrecord component
-
cmRequestId
Returns the value of thecmRequestIdrecord component.- Returns:
- the value of the
cmRequestIdrecord component
-
consentData
Returns the value of theconsentDatarecord component.- Returns:
- the value of the
consentDatarecord component
-