Record Class ConsentData
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.at.eda.models.ConsentData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecmConsentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.static ConsentDatafromResponseData(ResponseData responseData) final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of themeteringPointrecord component.Returns the value of theresponseCodesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsentData
public ConsentData(List<Integer> responseCodes, String message, Optional<String> cmConsentId, Optional<String> meteringPoint) Creates an instance of aConsentDatarecord class.- Parameters:
responseCodes- the value for theresponseCodesrecord componentmessage- the value for themessagerecord componentcmConsentId- the value for thecmConsentIdrecord componentmeteringPoint- the value for themeteringPointrecord component
-
-
Method Details
-
fromResponseData
-
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). -
responseCodes
Returns the value of theresponseCodesrecord component.- Returns:
- the value of the
responseCodesrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
cmConsentId
Returns the value of thecmConsentIdrecord component.- Returns:
- the value of the
cmConsentIdrecord component
-
meteringPoint
Returns the value of themeteringPointrecord component.- Returns:
- the value of the
meteringPointrecord component
-