Record Class UsageCheckpointModelCacheState
java.lang.Object
java.lang.Record
com.github.copilot.generated.UsageCheckpointModelCacheState
@Generated("copilot-sdk-codegen")
public record UsageCheckpointModelCacheState(String modelId, OffsetDateTime cacheExpiresAt, Long cacheTtlSeconds)
extends Record
Internal prompt-cache expiration state for one model
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionUsageCheckpointModelCacheState(String modelId, OffsetDateTime cacheExpiresAt, Long cacheTtlSeconds) Creates an instance of aUsageCheckpointModelCacheStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheExpiresAtrecord component.Returns the value of thecacheTtlSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modelId()Returns the value of themodelIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UsageCheckpointModelCacheState
public UsageCheckpointModelCacheState(String modelId, OffsetDateTime cacheExpiresAt, Long cacheTtlSeconds) Creates an instance of aUsageCheckpointModelCacheStaterecord class.- Parameters:
modelId- the value for themodelIdrecord componentcacheExpiresAt- the value for thecacheExpiresAtrecord componentcacheTtlSeconds- the value for thecacheTtlSecondsrecord 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). -
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
cacheExpiresAt
Returns the value of thecacheExpiresAtrecord component.- Returns:
- the value of the
cacheExpiresAtrecord component
-
cacheTtlSeconds
Returns the value of thecacheTtlSecondsrecord component.- Returns:
- the value of the
cacheTtlSecondsrecord component
-