Record Class ShutdownModelMetric
java.lang.Object
java.lang.Record
com.github.copilot.generated.ShutdownModelMetric
@Generated("copilot-sdk-codegen")
public record ShutdownModelMetric(ShutdownModelMetricRequests requests, ShutdownModelMetricUsage usage, Double totalNanoAiu, Map<String, ShutdownModelMetricTokenDetail> tokenDetails)
extends Record
Schema for the `ShutdownModelMetric` type.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionShutdownModelMetric(ShutdownModelMetricRequests requests, ShutdownModelMetricUsage usage, Double totalNanoAiu, Map<String, ShutdownModelMetricTokenDetail> tokenDetails) Creates an instance of aShutdownModelMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.requests()Returns the value of therequestsrecord component.Returns the value of thetokenDetailsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalNanoAiurecord component.usage()Returns the value of theusagerecord component.
-
Constructor Details
-
ShutdownModelMetric
public ShutdownModelMetric(ShutdownModelMetricRequests requests, ShutdownModelMetricUsage usage, Double totalNanoAiu, Map<String, ShutdownModelMetricTokenDetail> tokenDetails) Creates an instance of aShutdownModelMetricrecord class.- Parameters:
requests- the value for therequestsrecord componentusage- the value for theusagerecord componenttotalNanoAiu- the value for thetotalNanoAiurecord componenttokenDetails- the value for thetokenDetailsrecord 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). -
requests
Returns the value of therequestsrecord component.- Returns:
- the value of the
requestsrecord component
-
usage
Returns the value of theusagerecord component.- Returns:
- the value of the
usagerecord component
-
totalNanoAiu
Returns the value of thetotalNanoAiurecord component.- Returns:
- the value of the
totalNanoAiurecord component
-
tokenDetails
Returns the value of thetokenDetailsrecord component.- Returns:
- the value of the
tokenDetailsrecord component
-