Record Class AccountStatus
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.AccountStatus
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record AccountStatus(String host, String login, AccountKind kind, String derivedFrom, Boolean active, String selectionId)
extends Record
One signed-in account in the roster forest.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAccountStatus(String host, String login, AccountKind kind, String derivedFrom, Boolean active, String selectionId) Creates an instance of aAccountStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactive()Returns the value of theactiverecord component.Returns the value of thederivedFromrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.kind()Returns the value of thekindrecord component.login()Returns the value of theloginrecord component.Returns the value of theselectionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountStatus
public AccountStatus(String host, String login, AccountKind kind, String derivedFrom, Boolean active, String selectionId) Creates an instance of aAccountStatusrecord class.- Parameters:
host- the value for thehostrecord componentlogin- the value for theloginrecord componentkind- the value for thekindrecord componentderivedFrom- the value for thederivedFromrecord componentactive- the value for theactiverecord componentselectionId- the value for theselectionIdrecord 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). -
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
login
Returns the value of theloginrecord component.- Returns:
- the value of the
loginrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
derivedFrom
Returns the value of thederivedFromrecord component.- Returns:
- the value of the
derivedFromrecord component
-
active
Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-
selectionId
Returns the value of theselectionIdrecord component.- Returns:
- the value of the
selectionIdrecord component
-