Record Class ConnectorStatus

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ConnectorStatus

@CopilotExperimental @Generated("copilot-sdk-codegen") public record ConnectorStatus(Long apiVersion, ConnectorAvailability availability, String accountId, ConnectorCatalogResult catalog, ConnectorAuthorizationRequirement authorizationRequirement, List<ConnectorRuntimeStatus> runtimeServers, Long pendingConnections) extends Record
Authoritative session connector state. Account IDs are opaque routing identifiers and credentials are never included.
Since:
1.0.0
  • Constructor Details

    • ConnectorStatus

      public ConnectorStatus(Long apiVersion, ConnectorAvailability availability, String accountId, ConnectorCatalogResult catalog, ConnectorAuthorizationRequirement authorizationRequirement, List<ConnectorRuntimeStatus> runtimeServers, Long pendingConnections)
      Creates an instance of a ConnectorStatus record class.
      Parameters:
      apiVersion - the value for the apiVersion record component
      availability - the value for the availability record component
      accountId - the value for the accountId record component
      catalog - the value for the catalog record component
      authorizationRequirement - the value for the authorizationRequirement record component
      runtimeServers - the value for the runtimeServers record component
      pendingConnections - the value for the pendingConnections record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • apiVersion

      public Long apiVersion()
      Returns the value of the apiVersion record component.
      Returns:
      the value of the apiVersion record component
    • availability

      public ConnectorAvailability availability()
      Returns the value of the availability record component.
      Returns:
      the value of the availability record component
    • accountId

      public String accountId()
      Returns the value of the accountId record component.
      Returns:
      the value of the accountId record component
    • catalog

      public ConnectorCatalogResult catalog()
      Returns the value of the catalog record component.
      Returns:
      the value of the catalog record component
    • authorizationRequirement

      public ConnectorAuthorizationRequirement authorizationRequirement()
      Returns the value of the authorizationRequirement record component.
      Returns:
      the value of the authorizationRequirement record component
    • runtimeServers

      public List<ConnectorRuntimeStatus> runtimeServers()
      Returns the value of the runtimeServers record component.
      Returns:
      the value of the runtimeServers record component
    • pendingConnections

      public Long pendingConnections()
      Returns the value of the pendingConnections record component.
      Returns:
      the value of the pendingConnections record component