17
17
18
18
package com .strongdm .api ;
19
19
20
+ import java .time .Duration ;
20
21
import java .util .Date ;
21
22
22
23
/** AccessRequests are requests for access to a resource that may match a Workflow. */
@@ -32,11 +33,13 @@ public void setAccountId(String in) {
32
33
}
33
34
34
35
private long duration ;
35
- /** Duration of the access request. */
36
+ /** Duration of the access request. Deprecated: use requested/result duration instead */
37
+ @ Deprecated
36
38
public long getDuration () {
37
39
return this .duration ;
38
40
}
39
- /** Duration of the access request. */
41
+ /** Duration of the access request. Deprecated: use requested/result duration instead */
42
+ @ Deprecated
40
43
public void setDuration (long in ) {
41
44
this .duration = in ;
42
45
}
@@ -71,6 +74,16 @@ public void setReason(String in) {
71
74
this .reason = in ;
72
75
}
73
76
77
+ private Duration requestedDuration ;
78
+ /** The duration that access was requested for, if any. */
79
+ public Duration getRequestedDuration () {
80
+ return this .requestedDuration ;
81
+ }
82
+ /** The duration that access was requested for, if any. */
83
+ public void setRequestedDuration (Duration in ) {
84
+ this .requestedDuration = in ;
85
+ }
86
+
74
87
private String resourceId ;
75
88
/** The resource id. */
76
89
public String getResourceId () {
@@ -81,6 +94,16 @@ public void setResourceId(String in) {
81
94
this .resourceId = in ;
82
95
}
83
96
97
+ private Duration resultDuration ;
98
+ /** The duration that results from an approved request. */
99
+ public Duration getResultDuration () {
100
+ return this .resultDuration ;
101
+ }
102
+ /** The duration that results from an approved request. */
103
+ public void setResultDuration (Duration in ) {
104
+ this .resultDuration = in ;
105
+ }
106
+
84
107
private Date startFrom ;
85
108
/**
86
109
* The timestamp when the requested access will be granted. If this field is not specified it will
0 commit comments