Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class SessionPermissionsConfigureParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionPermissionsConfigureParams
@Generated("copilot-sdk-codegen")
public record SessionPermissionsConfigureParams(String sessionId, Boolean approveAllToolPermissionRequests, Boolean approveAllReadPermissionRequests, PermissionRulesSet rules, PermissionPathsConfig paths, PermissionUrlsConfig urls, List<PermissionsConfigureAdditionalContentExclusionPolicy> additionalContentExclusionPolicies)
extends Record
Patch of permission policy fields to apply (omit a field to leave it unchanged).
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionPermissionsConfigureParams(String sessionId, Boolean approveAllToolPermissionRequests, Boolean approveAllReadPermissionRequests, PermissionRulesSet rules, PermissionPathsConfig paths, PermissionUrlsConfig urls, List<PermissionsConfigureAdditionalContentExclusionPolicy> additionalContentExclusionPolicies) Creates an instance of aSessionPermissionsConfigureParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalContentExclusionPoliciesrecord component.Returns the value of theapproveAllReadPermissionRequestsrecord component.Returns the value of theapproveAllToolPermissionRequestsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.paths()Returns the value of thepathsrecord component.rules()Returns the value of therulesrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.urls()Returns the value of theurlsrecord component.
-
Constructor Details
-
SessionPermissionsConfigureParams
public SessionPermissionsConfigureParams(String sessionId, Boolean approveAllToolPermissionRequests, Boolean approveAllReadPermissionRequests, PermissionRulesSet rules, PermissionPathsConfig paths, PermissionUrlsConfig urls, List<PermissionsConfigureAdditionalContentExclusionPolicy> additionalContentExclusionPolicies) Creates an instance of aSessionPermissionsConfigureParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentapproveAllToolPermissionRequests- the value for theapproveAllToolPermissionRequestsrecord componentapproveAllReadPermissionRequests- the value for theapproveAllReadPermissionRequestsrecord componentrules- the value for therulesrecord componentpaths- the value for thepathsrecord componenturls- the value for theurlsrecord componentadditionalContentExclusionPolicies- the value for theadditionalContentExclusionPoliciesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
approveAllToolPermissionRequests
Returns the value of theapproveAllToolPermissionRequestsrecord component.- Returns:
- the value of the
approveAllToolPermissionRequestsrecord component
-
approveAllReadPermissionRequests
Returns the value of theapproveAllReadPermissionRequestsrecord component.- Returns:
- the value of the
approveAllReadPermissionRequestsrecord component
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
paths
Returns the value of thepathsrecord component.- Returns:
- the value of the
pathsrecord component
-
urls
Returns the value of theurlsrecord component.- Returns:
- the value of the
urlsrecord component
-
additionalContentExclusionPolicies
public List<PermissionsConfigureAdditionalContentExclusionPolicy> additionalContentExclusionPolicies()Returns the value of theadditionalContentExclusionPoliciesrecord component.- Returns:
- the value of the
additionalContentExclusionPoliciesrecord component
-