2525 UserAttributes .JSON_PROPERTY_EMAIL ,
2626 UserAttributes .JSON_PROPERTY_HANDLE ,
2727 UserAttributes .JSON_PROPERTY_ICON ,
28+ UserAttributes .JSON_PROPERTY_LAST_LOGIN_TIME ,
2829 UserAttributes .JSON_PROPERTY_MFA_ENABLED ,
2930 UserAttributes .JSON_PROPERTY_MODIFIED_AT ,
3031 UserAttributes .JSON_PROPERTY_NAME ,
@@ -52,6 +53,9 @@ public class UserAttributes {
5253 public static final String JSON_PROPERTY_ICON = "icon" ;
5354 private String icon ;
5455
56+ public static final String JSON_PROPERTY_LAST_LOGIN_TIME = "last_login_time" ;
57+ private JsonNullable <OffsetDateTime > lastLoginTime = JsonNullable .<OffsetDateTime >undefined ();
58+
5559 public static final String JSON_PROPERTY_MFA_ENABLED = "mfa_enabled" ;
5660 private Boolean mfaEnabled ;
5761
@@ -178,6 +182,32 @@ public void setIcon(String icon) {
178182 this .icon = icon ;
179183 }
180184
185+ /**
186+ * The last time the user logged in.
187+ *
188+ * @return lastLoginTime
189+ */
190+ @ jakarta .annotation .Nullable
191+ @ JsonIgnore
192+ public OffsetDateTime getLastLoginTime () {
193+
194+ if (lastLoginTime == null ) {
195+ lastLoginTime = JsonNullable .<OffsetDateTime >undefined ();
196+ }
197+ return lastLoginTime .orElse (null );
198+ }
199+
200+ @ JsonProperty (JSON_PROPERTY_LAST_LOGIN_TIME )
201+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
202+ public JsonNullable <OffsetDateTime > getLastLoginTime_JsonNullable () {
203+ return lastLoginTime ;
204+ }
205+
206+ @ JsonProperty (JSON_PROPERTY_LAST_LOGIN_TIME )
207+ private void setLastLoginTime_JsonNullable (JsonNullable <OffsetDateTime > lastLoginTime ) {
208+ this .lastLoginTime = lastLoginTime ;
209+ }
210+
181211 /**
182212 * If user has MFA enabled.
183213 *
@@ -397,6 +427,7 @@ public boolean equals(Object o) {
397427 && Objects .equals (this .email , userAttributes .email )
398428 && Objects .equals (this .handle , userAttributes .handle )
399429 && Objects .equals (this .icon , userAttributes .icon )
430+ && Objects .equals (this .lastLoginTime , userAttributes .lastLoginTime )
400431 && Objects .equals (this .mfaEnabled , userAttributes .mfaEnabled )
401432 && Objects .equals (this .modifiedAt , userAttributes .modifiedAt )
402433 && Objects .equals (this .name , userAttributes .name )
@@ -415,6 +446,7 @@ public int hashCode() {
415446 email ,
416447 handle ,
417448 icon ,
449+ lastLoginTime ,
418450 mfaEnabled ,
419451 modifiedAt ,
420452 name ,
@@ -434,6 +466,7 @@ public String toString() {
434466 sb .append (" email: " ).append (toIndentedString (email )).append ("\n " );
435467 sb .append (" handle: " ).append (toIndentedString (handle )).append ("\n " );
436468 sb .append (" icon: " ).append (toIndentedString (icon )).append ("\n " );
469+ sb .append (" lastLoginTime: " ).append (toIndentedString (lastLoginTime )).append ("\n " );
437470 sb .append (" mfaEnabled: " ).append (toIndentedString (mfaEnabled )).append ("\n " );
438471 sb .append (" modifiedAt: " ).append (toIndentedString (modifiedAt )).append ("\n " );
439472 sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
0 commit comments