forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPermissionInvocation.java
More file actions
39 lines (34 loc) · 1.01 KB
/
PermissionInvocation.java
File metadata and controls
39 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.json;
/**
* Context information for a permission request invocation.
* <p>
* This object provides context about the session where the permission request
* originated.
*
* @see PermissionHandler
*/
public final class PermissionInvocation {
private String sessionId;
/**
* Gets the session ID where the permission was requested.
*
* @return the session ID
*/
public String getSessionId() {
return sessionId;
}
/**
* Sets the session ID.
*
* @param sessionId
* the session ID
* @return this invocation for method chaining
*/
public PermissionInvocation setSessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
}