Record Class SessionMcpResourcesListTemplatesResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMcpResourcesListTemplatesResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionMcpResourcesListTemplatesResult(List<McpResourceTemplate> resourceTemplates, String nextCursor)
extends Record
One page of resource templates advertised by the named MCP server.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMcpResourcesListTemplatesResult(List<McpResourceTemplate> resourceTemplates, String nextCursor) Creates an instance of aSessionMcpResourcesListTemplatesResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenextCursorrecord component.Returns the value of theresourceTemplatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionMcpResourcesListTemplatesResult
public SessionMcpResourcesListTemplatesResult(List<McpResourceTemplate> resourceTemplates, String nextCursor) Creates an instance of aSessionMcpResourcesListTemplatesResultrecord class.- Parameters:
resourceTemplates- the value for theresourceTemplatesrecord componentnextCursor- the value for thenextCursorrecord 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). -
resourceTemplates
Returns the value of theresourceTemplatesrecord component.- Returns:
- the value of the
resourceTemplatesrecord component
-
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-