Package com.tnsai.mcp.composio
Record Class ComposioClient.ConnectionStatus
java.lang.Object
java.lang.Record
com.tnsai.mcp.composio.ComposioClient.ConnectionStatus
- Record Components:
appName- the app nameconnected- whether the app is connectedauthMethod- the authentication method used
- Enclosing class:
ComposioClient
public static record ComposioClient.ConnectionStatus(String appName, boolean connected, String authMethod)
extends Record
Represents the connection status for a Composio app.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionStatus(String appName, boolean connected, String authMethod) Creates an instance of aConnectionStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionappName()Returns the value of theappNamerecord component.Returns the value of theauthMethodrecord component.booleanReturns the value of theconnectedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectionStatus
Creates an instance of aConnectionStatusrecord class.- Parameters:
appName- the value for theappNamerecord componentconnected- the value for theconnectedrecord componentauthMethod- the value for theauthMethodrecord component
-
-
Method Details
-
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 '=='. -
appName
Returns the value of theappNamerecord component.- Returns:
- the value of the
appNamerecord component
-
connected
public boolean connected()Returns the value of theconnectedrecord component.- Returns:
- the value of the
connectedrecord component
-
authMethod
Returns the value of theauthMethodrecord component.- Returns:
- the value of the
authMethodrecord component
-