Record Class ModelProviderAutomaticDiscoveryPolicy
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelProviderAutomaticDiscoveryPolicy
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ModelProviderAutomaticDiscoveryPolicy(ModelProviderAutomaticDiscoveryMode mode, ModelProviderDiscoveryNetworkScope networkScope, Boolean requiresInput, Boolean requiresTrust)
extends Record
Adapter-declared policy that tells clients whether discovery may run automatically.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelProviderAutomaticDiscoveryPolicy(ModelProviderAutomaticDiscoveryMode mode, ModelProviderDiscoveryNetworkScope networkScope, Boolean requiresInput, Boolean requiresTrust) Creates an instance of aModelProviderAutomaticDiscoveryPolicyrecord 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.mode()Returns the value of themoderecord component.Returns the value of thenetworkScoperecord component.Returns the value of therequiresInputrecord component.Returns the value of therequiresTrustrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelProviderAutomaticDiscoveryPolicy
public ModelProviderAutomaticDiscoveryPolicy(ModelProviderAutomaticDiscoveryMode mode, ModelProviderDiscoveryNetworkScope networkScope, Boolean requiresInput, Boolean requiresTrust) Creates an instance of aModelProviderAutomaticDiscoveryPolicyrecord class.- Parameters:
mode- the value for themoderecord componentnetworkScope- the value for thenetworkScoperecord componentrequiresInput- the value for therequiresInputrecord componentrequiresTrust- the value for therequiresTrustrecord 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). -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
networkScope
Returns the value of thenetworkScoperecord component.- Returns:
- the value of the
networkScoperecord component
-
requiresInput
Returns the value of therequiresInputrecord component.- Returns:
- the value of the
requiresInputrecord component
-
requiresTrust
Returns the value of therequiresTrustrecord component.- Returns:
- the value of the
requiresTrustrecord component
-