2828 */
2929@ javax .annotation .Generated (value = "org.openapitools.codegen.languages.JavaClientCodegen" , comments = "Generator version: 7.19.0" )
3030public class Client {
31+ public static final String SERIALIZED_NAME_CREATED_AT = "createdAt" ;
32+ @ SerializedName (SERIALIZED_NAME_CREATED_AT )
33+ @ javax .annotation .Nonnull
34+ private OffsetDateTime createdAt ;
35+
3136 public static final String SERIALIZED_NAME_ELEVATED_UNTIL = "elevatedUntil" ;
3237 @ SerializedName (SERIALIZED_NAME_ELEVATED_UNTIL )
3338 @ javax .annotation .Nullable
3439 private OffsetDateTime elevatedUntil ;
3540
41+ public static final String SERIALIZED_NAME_EXPIRES_AFTER_INACTIVITY_SECONDS = "expiresAfterInactivitySeconds" ;
42+ @ SerializedName (SERIALIZED_NAME_EXPIRES_AFTER_INACTIVITY_SECONDS )
43+ @ javax .annotation .Nullable
44+ private Long expiresAfterInactivitySeconds ;
45+
46+ public static final String SERIALIZED_NAME_EXPIRES_AT = "expiresAt" ;
47+ @ SerializedName (SERIALIZED_NAME_EXPIRES_AT )
48+ @ javax .annotation .Nullable
49+ private OffsetDateTime expiresAt ;
50+
3651 public static final String SERIALIZED_NAME_ID = "id" ;
3752 @ SerializedName (SERIALIZED_NAME_ID )
3853 @ javax .annotation .Nonnull
@@ -50,7 +65,7 @@ public class Client {
5065
5166 public static final String SERIALIZED_NAME_TOKEN = "token" ;
5267 @ SerializedName (SERIALIZED_NAME_TOKEN )
53- @ javax .annotation .Nonnull
68+ @ javax .annotation .Nullable
5469 private String token ;
5570
5671 public Client () {
@@ -60,18 +75,34 @@ public Client() {
6075 */
6176
6277 public Client (
78+ OffsetDateTime createdAt ,
6379 OffsetDateTime elevatedUntil ,
80+ OffsetDateTime expiresAt ,
6481 Long id ,
6582 OffsetDateTime lastUsed ,
6683 String token
6784 ) {
6885 this ();
86+ this .createdAt = createdAt ;
6987 this .elevatedUntil = elevatedUntil ;
88+ this .expiresAt = expiresAt ;
7089 this .id = id ;
7190 this .lastUsed = lastUsed ;
7291 this .token = token ;
7392 }
7493
94+ /**
95+ * The date the client was created.
96+ * @return createdAt
97+ */
98+ @ javax .annotation .Nonnull
99+
100+ public OffsetDateTime getCreatedAt () {
101+ return createdAt ;
102+ }
103+
104+
105+
75106 /**
76107 * The time until which this client's session is elevated.
77108 * @return elevatedUntil
@@ -84,6 +115,39 @@ public OffsetDateTime getElevatedUntil() {
84115
85116
86117
118+ public Client expiresAfterInactivitySeconds (@ javax .annotation .Nullable Long expiresAfterInactivitySeconds ) {
119+
120+ this .expiresAfterInactivitySeconds = expiresAfterInactivitySeconds ;
121+ return this ;
122+ }
123+
124+ /**
125+ * The number of seconds of inactivity after which the client is removed. 0 means the client never expires.
126+ * @return expiresAfterInactivitySeconds
127+ */
128+ @ javax .annotation .Nullable
129+
130+ public Long getExpiresAfterInactivitySeconds () {
131+ return expiresAfterInactivitySeconds ;
132+ }
133+
134+
135+ public void setExpiresAfterInactivitySeconds (@ javax .annotation .Nullable Long expiresAfterInactivitySeconds ) {
136+ this .expiresAfterInactivitySeconds = expiresAfterInactivitySeconds ;
137+ }
138+
139+ /**
140+ * The time at which this client will expire due to inactivity, or null if it never expires.
141+ * @return expiresAt
142+ */
143+ @ javax .annotation .Nullable
144+
145+ public OffsetDateTime getExpiresAt () {
146+ return expiresAt ;
147+ }
148+
149+
150+
87151 /**
88152 * The client id.
89153 * @return id
@@ -133,7 +197,7 @@ public void setName(@javax.annotation.Nonnull String name) {
133197 * The client token. Can be used as `clientToken`. See Authentication.
134198 * @return token
135199 */
136- @ javax .annotation .Nonnull
200+ @ javax .annotation .Nullable
137201
138202 public String getToken () {
139203 return token ;
@@ -150,7 +214,10 @@ public boolean equals(Object o) {
150214 return false ;
151215 }
152216 Client client = (Client ) o ;
153- return Objects .equals (this .elevatedUntil , client .elevatedUntil ) &&
217+ return Objects .equals (this .createdAt , client .createdAt ) &&
218+ Objects .equals (this .elevatedUntil , client .elevatedUntil ) &&
219+ Objects .equals (this .expiresAfterInactivitySeconds , client .expiresAfterInactivitySeconds ) &&
220+ Objects .equals (this .expiresAt , client .expiresAt ) &&
154221 Objects .equals (this .id , client .id ) &&
155222 Objects .equals (this .lastUsed , client .lastUsed ) &&
156223 Objects .equals (this .name , client .name ) &&
@@ -159,14 +226,17 @@ public boolean equals(Object o) {
159226
160227 @ Override
161228 public int hashCode () {
162- return Objects .hash (elevatedUntil , id , lastUsed , name , token );
229+ return Objects .hash (createdAt , elevatedUntil , expiresAfterInactivitySeconds , expiresAt , id , lastUsed , name , token );
163230 }
164231
165232 @ Override
166233 public String toString () {
167234 StringBuilder sb = new StringBuilder ();
168235 sb .append ("class Client {\n " );
236+ sb .append (" createdAt: " ).append (toIndentedString (createdAt )).append ("\n " );
169237 sb .append (" elevatedUntil: " ).append (toIndentedString (elevatedUntil )).append ("\n " );
238+ sb .append (" expiresAfterInactivitySeconds: " ).append (toIndentedString (expiresAfterInactivitySeconds )).append ("\n " );
239+ sb .append (" expiresAt: " ).append (toIndentedString (expiresAt )).append ("\n " );
170240 sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
171241 sb .append (" lastUsed: " ).append (toIndentedString (lastUsed )).append ("\n " );
172242 sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
0 commit comments