Record Class TaskClientOwner

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

@Generated("copilot-sdk-codegen") public record TaskClientOwner(String participantId, String joinId, TaskClientOwnerKind kind, String displayName, String source, TaskClientOwnerPresence presence, OffsetDateTime disconnectedAt) extends Record
Public owner attribution for a client-owned task. Identifiers are opaque and never authorize requests.
Since:
1.0.0
  • Constructor Details

    • TaskClientOwner

      public TaskClientOwner(String participantId, String joinId, TaskClientOwnerKind kind, String displayName, String source, TaskClientOwnerPresence presence, OffsetDateTime disconnectedAt)
      Creates an instance of a TaskClientOwner record class.
      Parameters:
      participantId - the value for the participantId record component
      joinId - the value for the joinId record component
      kind - the value for the kind record component
      displayName - the value for the displayName record component
      source - the value for the source record component
      presence - the value for the presence record component
      disconnectedAt - the value for the disconnectedAt 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.
    • participantId

      public String participantId()
      Returns the value of the participantId record component.
      Returns:
      the value of the participantId record component
    • joinId

      public String joinId()
      Returns the value of the joinId record component.
      Returns:
      the value of the joinId record component
    • kind

      public TaskClientOwnerKind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • presence

      public TaskClientOwnerPresence presence()
      Returns the value of the presence record component.
      Returns:
      the value of the presence record component
    • disconnectedAt

      public OffsetDateTime disconnectedAt()
      Returns the value of the disconnectedAt record component.
      Returns:
      the value of the disconnectedAt record component