Record Class NewMessageContractDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.messagecontract.web.api.dto.NewMessageContractDto
public record NewMessageContractDto(@NotBlank String messageType, @NotBlank String messageTypeVersion, @NotBlank String topic, @NotNull MessageContractRole role, @NotNull String registryUrl, String commitHash, String branch, @NotNull CompatibilityMode compatibilityMode, String encryptionKeyId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNewMessageContractDto(@NotBlank String messageType, @NotBlank String messageTypeVersion, @NotBlank String topic, @NotNull MessageContractRole role, @NotNull String registryUrl, String commitHash, String branch, @NotNull CompatibilityMode compatibilityMode, String encryptionKeyId) Creates an instance of aNewMessageContractDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.Returns the value of thecommitHashrecord component.@NotNull CompatibilityModeReturns the value of thecompatibilityModerecord component.Returns the value of theencryptionKeyIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank StringReturns the value of themessageTyperecord component.@NotBlank StringReturns the value of themessageTypeVersionrecord component.@NotNull StringReturns the value of theregistryUrlrecord component.@NotNull MessageContractRolerole()Returns the value of therolerecord component.toNewDomainObject(String appName, String appVersion, String transactionId) @NotBlank Stringtopic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NewMessageContractDto
public NewMessageContractDto(@NotBlank @NotBlank String messageType, @NotBlank @NotBlank String messageTypeVersion, @NotBlank @NotBlank String topic, @NotNull @NotNull MessageContractRole role, @NotNull @NotNull String registryUrl, String commitHash, String branch, @NotNull @NotNull CompatibilityMode compatibilityMode, String encryptionKeyId) Creates an instance of aNewMessageContractDtorecord class.- Parameters:
messageType- 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
-
toNewDomainObject
-
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
-
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
-