Record Class SessionModelSwitchAutoTierResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionModelSwitchAutoTierResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionModelSwitchAutoTierResult(ModelSwitchAutoTierStatus status, AutoTier effectiveAutoTier, AutoTier pendingAutoTier, AutoTier activatingAutoTier, AutoTier supersededAutoTier)
extends Record
Immediate acknowledgement and Auto preference snapshot after a switch request. This result never implies that a pending preference committed.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionModelSwitchAutoTierResult(ModelSwitchAutoTierStatus status, AutoTier effectiveAutoTier, AutoTier pendingAutoTier, AutoTier activatingAutoTier, AutoTier supersededAutoTier) Creates an instance of aSessionModelSwitchAutoTierResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivatingAutoTierrecord component.Returns the value of theeffectiveAutoTierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thependingAutoTierrecord component.status()Returns the value of thestatusrecord component.Returns the value of thesupersededAutoTierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionModelSwitchAutoTierResult
public SessionModelSwitchAutoTierResult(ModelSwitchAutoTierStatus status, AutoTier effectiveAutoTier, AutoTier pendingAutoTier, AutoTier activatingAutoTier, AutoTier supersededAutoTier) Creates an instance of aSessionModelSwitchAutoTierResultrecord class.- Parameters:
status- the value for thestatusrecord componenteffectiveAutoTier- the value for theeffectiveAutoTierrecord componentpendingAutoTier- the value for thependingAutoTierrecord componentactivatingAutoTier- the value for theactivatingAutoTierrecord componentsupersededAutoTier- the value for thesupersededAutoTierrecord 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
-
effectiveAutoTier
Returns the value of theeffectiveAutoTierrecord component.- Returns:
- the value of the
effectiveAutoTierrecord component
-
pendingAutoTier
Returns the value of thependingAutoTierrecord component.- Returns:
- the value of the
pendingAutoTierrecord component
-
activatingAutoTier
Returns the value of theactivatingAutoTierrecord component.- Returns:
- the value of the
activatingAutoTierrecord component
-
supersededAutoTier
Returns the value of thesupersededAutoTierrecord component.- Returns:
- the value of the
supersededAutoTierrecord component
-