Record Class McpServiceConfig
java.lang.Object
java.lang.Record
fr.tiogars.chat.domains.mcp.models.McpServiceConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.Returns the value of thedescriptionrecord component.booleanenabled()Returns the value of theenabledrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank Stringid()Returns the value of theidrecord component.@NotBlank Stringname()Returns the value of thenamerecord component.intReturns the value of thetimeoutSecondsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpServiceConfig
public McpServiceConfig(@NotBlank @NotBlank String id, @NotBlank @NotBlank String name, String description, String command, Map<String, String> env, boolean enabled, int timeoutSeconds) Creates an instance of aMcpServiceConfigrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentcommand- the value for thecommandrecord componentenv- the value for theenvrecord componentenabled- the value for theenabledrecord componenttimeoutSeconds- the value for thetimeoutSecondsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
env
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
timeoutSeconds
public int timeoutSeconds()Returns the value of thetimeoutSecondsrecord component.- Returns:
- the value of the
timeoutSecondsrecord component
-