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 Summary
ConstructorsConstructorDescriptionSessionModeSetResult(String status, Boolean modelChanged, Boolean modeApplied, ModelSwitchConfirmation confirmation, String warning, String message, List<String> deprecationWarnings, Boolean deferImplementation, Boolean armInteractiveContinuation) Creates an instance of aSessionModeSetResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearmInteractiveContinuationrecord component.Returns the value of theconfirmationrecord component.Returns the value of thedeferImplementationrecord component.Returns the value of thedeprecationWarningsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of themodeAppliedrecord component.Returns the value of themodelChangedrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.warning()Returns the value of thewarningrecord component.
-
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 aSessionModeSetResultrecord class.- Parameters:
status- the value for thestatusrecord componentmodelChanged- the value for themodelChangedrecord componentmodeApplied- the value for themodeAppliedrecord componentconfirmation- the value for theconfirmationrecord componentwarning- the value for thewarningrecord componentmessage- the value for themessagerecord componentdeprecationWarnings- the value for thedeprecationWarningsrecord componentdeferImplementation- the value for thedeferImplementationrecord componentarmInteractiveContinuation- the value for thearmInteractiveContinuationrecord 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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
modelChanged
Returns the value of themodelChangedrecord component.- Returns:
- the value of the
modelChangedrecord component
-
modeApplied
Returns the value of themodeAppliedrecord component.- Returns:
- the value of the
modeAppliedrecord component
-
confirmation
Returns the value of theconfirmationrecord component.- Returns:
- the value of the
confirmationrecord component
-
warning
Returns the value of thewarningrecord component.- Returns:
- the value of the
warningrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
deprecationWarnings
-
deferImplementation
Returns the value of thedeferImplementationrecord component.- Returns:
- the value of the
deferImplementationrecord component
-
armInteractiveContinuation
Returns the value of thearmInteractiveContinuationrecord component.- Returns:
- the value of the
armInteractiveContinuationrecord component
-