Record Class SessionModelSetAllowedModelsResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionModelSetAllowedModelsResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionModelSetAllowedModelsResult(List<String> allowedModels, List<String> effectiveAllowedModels, String fallbackModel, String modelId)
extends Record
The applied host allowlist and effective session model policy after intersection.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedModelsrecord component.Returns the value of theeffectiveAllowedModelsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackModelrecord component.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
-
SessionModelSetAllowedModelsResult
public SessionModelSetAllowedModelsResult(List<String> allowedModels, List<String> effectiveAllowedModels, String fallbackModel, String modelId) Creates an instance of aSessionModelSetAllowedModelsResultrecord class.- Parameters:
allowedModels- the value for theallowedModelsrecord componenteffectiveAllowedModels- the value for theeffectiveAllowedModelsrecord componentfallbackModel- the value for thefallbackModelrecord componentmodelId- the value for themodelIdrecord 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). -
allowedModels
-
effectiveAllowedModels
-
fallbackModel
Returns the value of thefallbackModelrecord component.- Returns:
- the value of the
fallbackModelrecord component
-
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-