Package ai.pipestream.api.events
Record Class ModuleRegistrationResponseEvent
java.lang.Object
java.lang.Record
ai.pipestream.api.events.ModuleRegistrationResponseEvent
public record ModuleRegistrationResponseEvent(String requestId, boolean success, String message, String moduleId, String moduleName, String error)
extends Record
Event fired when a module registration request has been processed.
This is the response to a ModuleRegistrationRequestEvent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.moduleId()Returns the value of themoduleIdrecord component.Returns the value of themoduleNamerecord component.Returns the value of therequestIdrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleRegistrationResponseEvent
public ModuleRegistrationResponseEvent(String requestId, boolean success, String message, String moduleId, String moduleName, String error) Creates an instance of aModuleRegistrationResponseEventrecord class.- Parameters:
requestId- the value for therequestIdrecord componentsuccess- the value for thesuccessrecord componentmessage- the value for themessagerecord componentmoduleId- the value for themoduleIdrecord componentmoduleName- the value for themoduleNamerecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
success
public static ModuleRegistrationResponseEvent success(String requestId, String moduleId, String moduleName, String message) -
failure
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
moduleId
Returns the value of themoduleIdrecord component.- Returns:
- the value of the
moduleIdrecord component
-
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-