Record Class SessionPermissionsSetModeParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionPermissionsSetModeParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionPermissionsSetModeParams(String sessionId, PermissionMode mode, String assistedApprovalModel, PermissionModeSource source)
extends Record
Permission mode to apply for the session.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionPermissionsSetModeParams(String sessionId, PermissionMode mode, String assistedApprovalModel, PermissionModeSource source) Creates an instance of aSessionPermissionsSetModeParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassistedApprovalModelrecord component.final 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 thesessionIdrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionPermissionsSetModeParams
public SessionPermissionsSetModeParams(String sessionId, PermissionMode mode, String assistedApprovalModel, PermissionModeSource source) Creates an instance of aSessionPermissionsSetModeParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentmode- the value for themoderecord componentassistedApprovalModel- the value for theassistedApprovalModelrecord componentsource- the value for thesourcerecord 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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
assistedApprovalModel
Returns the value of theassistedApprovalModelrecord component.- Returns:
- the value of the
assistedApprovalModelrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-