Record Class ModelSwitchToResult

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

@Generated("copilot-sdk-codegen") public record ModelSwitchToResult(String queueId, String modelId, Boolean deferred, String status, ModelSwitchConfirmation confirmation, String persistenceError, String message, String warning, List<String> deprecationWarnings, CurrentModel modelState) extends Record
The model identifier active on the session after the switch.
Since:
1.0.0
  • Constructor Details

    • ModelSwitchToResult

      public ModelSwitchToResult(String queueId, String modelId, Boolean deferred, String status, ModelSwitchConfirmation confirmation, String persistenceError, String message, String warning, List<String> deprecationWarnings, CurrentModel modelState)
      Creates an instance of a ModelSwitchToResult record class.
      Parameters:
      queueId - the value for the queueId record component
      modelId - the value for the modelId record component
      deferred - the value for the deferred record component
      status - the value for the status record component
      confirmation - the value for the confirmation record component
      persistenceError - the value for the persistenceError record component
      message - the value for the message record component
      warning - the value for the warning record component
      deprecationWarnings - the value for the deprecationWarnings record component
      modelState - the value for the modelState 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.
    • queueId

      public String queueId()
      Returns the value of the queueId record component.
      Returns:
      the value of the queueId record component
    • modelId

      public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • deferred

      public Boolean deferred()
      Returns the value of the deferred record component.
      Returns:
      the value of the deferred record component
    • status

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

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

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

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

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

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

      public CurrentModel modelState()
      Returns the value of the modelState record component.
      Returns:
      the value of the modelState record component