Record Class McpActionRequest
java.lang.Object
java.lang.Record
fr.tiogars.chat.domains.mcp.models.McpActionRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotBlank Stringaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparametersrecord component.@NotBlank StringReturns the value of theserviceIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpActionRequest
public McpActionRequest(@NotBlank @NotBlank String serviceId, @NotBlank @NotBlank String action, Map<String, Object> parameters) Creates an instance of aMcpActionRequestrecord class.- Parameters:
serviceId- the value for theserviceIdrecord componentaction- the value for theactionrecord componentparameters- the value for theparametersrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
serviceId
Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
parameters
-