Record Class MessageContractDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.messagecontract.web.api.dto.MessageContractDto
-
Constructor Summary
ConstructorsConstructorDescriptionMessageContractDto(String appName, String appVersion, String messageType, String messageTypeVersion, String topic, MessageContractRole role, String registryUrl, String commitHash, String branch, CompatibilityMode compatibilityMode, String encryptionKeyId) Creates an instance of aMessageContractDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionappName()Returns the value of theappNamerecord component.Returns the value of theappVersionrecord component.branch()Returns the value of thebranchrecord component.Returns the value of thecommitHashrecord component.Returns the value of thecompatibilityModerecord component.Returns the value of theencryptionKeyIdrecord component.final booleanIndicates whether some other object is "equal to" this one.static MessageContractDtofromDomainObject(MessageContractInfo contractInfo) final inthashCode()Returns a hash code value for this object.Returns the value of themessageTyperecord component.Returns the value of themessageTypeVersionrecord component.Returns the value of theregistryUrlrecord component.role()Returns the value of therolerecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageContractDto
public MessageContractDto(String appName, String appVersion, String messageType, String messageTypeVersion, String topic, MessageContractRole role, String registryUrl, String commitHash, String branch, CompatibilityMode compatibilityMode, String encryptionKeyId) Creates an instance of aMessageContractDtorecord class.- Parameters:
appName- the value for theappNamerecord componentappVersion- the value for theappVersionrecord componentmessageType- the value for themessageTyperecord componentmessageTypeVersion- the value for themessageTypeVersionrecord componenttopic- the value for thetopicrecord componentrole- the value for therolerecord componentregistryUrl- the value for theregistryUrlrecord componentcommitHash- the value for thecommitHashrecord componentbranch- the value for thebranchrecord componentcompatibilityMode- the value for thecompatibilityModerecord componentencryptionKeyId- the value for theencryptionKeyIdrecord component
-
-
Method Details
-
fromDomainObject
-
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). -
appName
Returns the value of theappNamerecord component.- Returns:
- the value of the
appNamerecord component
-
appVersion
Returns the value of theappVersionrecord component.- Returns:
- the value of the
appVersionrecord component
-
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
messageTypeVersion
Returns the value of themessageTypeVersionrecord component.- Returns:
- the value of the
messageTypeVersionrecord component
-
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
registryUrl
Returns the value of theregistryUrlrecord component.- Returns:
- the value of the
registryUrlrecord component
-
commitHash
Returns the value of thecommitHashrecord component.- Returns:
- the value of the
commitHashrecord component
-
branch
Returns the value of thebranchrecord component.- Returns:
- the value of the
branchrecord component
-
compatibilityMode
Returns the value of thecompatibilityModerecord component.- Returns:
- the value of the
compatibilityModerecord component
-
encryptionKeyId
Returns the value of theencryptionKeyIdrecord component.- Returns:
- the value of the
encryptionKeyIdrecord component
-