Record Class ModelSwitchConfirmation
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelSwitchConfirmation
@Generated("copilot-sdk-codegen")
public record ModelSwitchConfirmation(String targetModelDisplayName, Double currentTokens, Double targetLimit)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionModelSwitchConfirmation(String targetModelDisplayName, Double currentTokens, Double targetLimit) Creates an instance of aModelSwitchConfirmationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentTokensrecord 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 thetargetLimitrecord component.Returns the value of thetargetModelDisplayNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelSwitchConfirmation
public ModelSwitchConfirmation(String targetModelDisplayName, Double currentTokens, Double targetLimit) Creates an instance of aModelSwitchConfirmationrecord class.- Parameters:
targetModelDisplayName- the value for thetargetModelDisplayNamerecord componentcurrentTokens- the value for thecurrentTokensrecord componenttargetLimit- the value for thetargetLimitrecord 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). -
targetModelDisplayName
Returns the value of thetargetModelDisplayNamerecord component.- Returns:
- the value of the
targetModelDisplayNamerecord component
-
currentTokens
Returns the value of thecurrentTokensrecord component.- Returns:
- the value of the
currentTokensrecord component
-
targetLimit
Returns the value of thetargetLimitrecord component.- Returns:
- the value of the
targetLimitrecord component
-