Record Class SessionModeSetResult

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

@CopilotExperimental @Generated("copilot-sdk-codegen") public record SessionModeSetResult(String status, Boolean modelChanged, Boolean modeApplied, ModelSwitchConfirmation confirmation, String warning, String message, List<String> deprecationWarnings, Boolean deferImplementation, Boolean armInteractiveContinuation) extends Record
Outcome of a session mode change, including any model switch it triggered and follow-up the host must perform.
Since:
1.0.0
  • Constructor Details

    • SessionModeSetResult

      public SessionModeSetResult(String status, Boolean modelChanged, Boolean modeApplied, ModelSwitchConfirmation confirmation, String warning, String message, List<String> deprecationWarnings, Boolean deferImplementation, Boolean armInteractiveContinuation)
      Creates an instance of a SessionModeSetResult record class.
      Parameters:
      status - the value for the status record component
      modelChanged - the value for the modelChanged record component
      modeApplied - the value for the modeApplied record component
      confirmation - the value for the confirmation record component
      warning - the value for the warning record component
      message - the value for the message record component
      deprecationWarnings - the value for the deprecationWarnings record component
      deferImplementation - the value for the deferImplementation record component
      armInteractiveContinuation - the value for the armInteractiveContinuation 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.
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • modelChanged

      public Boolean modelChanged()
      Returns the value of the modelChanged record component.
      Returns:
      the value of the modelChanged record component
    • modeApplied

      public Boolean modeApplied()
      Returns the value of the modeApplied record component.
      Returns:
      the value of the modeApplied record component
    • confirmation

      public ModelSwitchConfirmation confirmation()
      Returns the value of the confirmation record component.
      Returns:
      the value of the confirmation record component
    • warning

      public String warning()
      Returns the value of the warning record component.
      Returns:
      the value of the warning record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • deprecationWarnings

      public List<String> deprecationWarnings()
      Returns the value of the deprecationWarnings record component.
      Returns:
      the value of the deprecationWarnings record component
    • deferImplementation

      public Boolean deferImplementation()
      Returns the value of the deferImplementation record component.
      Returns:
      the value of the deferImplementation record component
    • armInteractiveContinuation

      public Boolean armInteractiveContinuation()
      Returns the value of the armInteractiveContinuation record component.
      Returns:
      the value of the armInteractiveContinuation record component