Package com.launchdarkly.api.model
Class UserRecord
- java.lang.Object
-
- com.launchdarkly.api.model.UserRecord
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class UserRecord extends java.lang.ObjectUserRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserRecord.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_ACCESSstatic java.lang.StringSERIALIZED_NAME_ENVIRONMENT_IDstatic java.lang.StringSERIALIZED_NAME_LAST_PINGstatic java.lang.StringSERIALIZED_NAME_LINKSstatic java.lang.StringSERIALIZED_NAME_OWNER_IDstatic java.lang.StringSERIALIZED_NAME_SORT_VALUEstatic java.lang.StringSERIALIZED_NAME_USER
-
Constructor Summary
Constructors Constructor Description UserRecord()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserRecordaccess(Access access)UserRecordenvironmentId(java.lang.String environmentId)booleanequals(java.lang.Object o)static UserRecordfromJson(java.lang.String jsonString)Create an instance of UserRecord given an JSON stringAccessgetAccess()Get accessjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.StringgetEnvironmentId()Get environmentIdjava.time.OffsetDateTimegetLastPing()Timestamp of the last time this user was seenjava.util.Map<java.lang.String,Link>getLinks()The location and content type of related resourcesjava.lang.StringgetOwnerId()Get ownerIdjava.lang.ObjectgetSortValue()If this record is returned as part of a list, the value used to sort the list.UsergetUser()Get userinthashCode()UserRecordlastPing(java.time.OffsetDateTime lastPing)UserRecordlinks(java.util.Map<java.lang.String,Link> links)UserRecordownerId(java.lang.String ownerId)UserRecordputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.UserRecordputLinksItem(java.lang.String key, Link linksItem)voidsetAccess(Access access)voidsetEnvironmentId(java.lang.String environmentId)voidsetLastPing(java.time.OffsetDateTime lastPing)voidsetLinks(java.util.Map<java.lang.String,Link> links)voidsetOwnerId(java.lang.String ownerId)voidsetSortValue(java.lang.Object sortValue)voidsetUser(User user)UserRecordsortValue(java.lang.Object sortValue)java.lang.StringtoJson()Convert an instance of UserRecord to an JSON stringjava.lang.StringtoString()UserRecorduser(User user)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LAST_PING
public static final java.lang.String SERIALIZED_NAME_LAST_PING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENVIRONMENT_ID
public static final java.lang.String SERIALIZED_NAME_ENVIRONMENT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OWNER_ID
public static final java.lang.String SERIALIZED_NAME_OWNER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER
public static final java.lang.String SERIALIZED_NAME_USER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SORT_VALUE
public static final java.lang.String SERIALIZED_NAME_SORT_VALUE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final java.lang.String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCESS
public static final java.lang.String SERIALIZED_NAME_ACCESS
- See Also:
- Constant Field Values
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
lastPing
public UserRecord lastPing(@Nullable java.time.OffsetDateTime lastPing)
-
getLastPing
@Nullable public java.time.OffsetDateTime getLastPing()
Timestamp of the last time this user was seen- Returns:
- lastPing
-
setLastPing
public void setLastPing(@Nullable java.time.OffsetDateTime lastPing)
-
environmentId
public UserRecord environmentId(@Nullable java.lang.String environmentId)
-
getEnvironmentId
@Nullable public java.lang.String getEnvironmentId()
Get environmentId- Returns:
- environmentId
-
setEnvironmentId
public void setEnvironmentId(@Nullable java.lang.String environmentId)
-
ownerId
public UserRecord ownerId(@Nullable java.lang.String ownerId)
-
getOwnerId
@Nullable public java.lang.String getOwnerId()
Get ownerId- Returns:
- ownerId
-
setOwnerId
public void setOwnerId(@Nullable java.lang.String ownerId)
-
user
public UserRecord user(@Nullable User user)
-
getUser
@Nullable public User getUser()
Get user- Returns:
- user
-
setUser
public void setUser(@Nullable User user)
-
sortValue
public UserRecord sortValue(@Nullable java.lang.Object sortValue)
-
getSortValue
@Nullable public java.lang.Object getSortValue()
If this record is returned as part of a list, the value used to sort the list. This is only included when the <code>sort</code> query parameter is specified. It is a time, in Unix milliseconds, if the sort is by <code>lastSeen</code>. It is a user key if the sort is by <code>userKey</code>.- Returns:
- sortValue
-
setSortValue
public void setSortValue(@Nullable java.lang.Object sortValue)
-
links
public UserRecord links(@Nullable java.util.Map<java.lang.String,Link> links)
-
putLinksItem
public UserRecord putLinksItem(java.lang.String key, Link linksItem)
-
getLinks
@Nullable public java.util.Map<java.lang.String,Link> getLinks()
The location and content type of related resources- Returns:
- links
-
setLinks
public void setLinks(@Nullable java.util.Map<java.lang.String,Link> links)
-
access
public UserRecord access(@Nullable Access access)
-
getAccess
@Nullable public Access getAccess()
Get access- Returns:
- access
-
setAccess
public void setAccess(@Nullable Access access)
-
putAdditionalProperty
public UserRecord putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the UserRecord instance itself
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws java.io.IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
java.io.IOException- if the JSON Element is invalid with respect to UserRecord
-
fromJson
public static UserRecord fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of UserRecord given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UserRecord
- Throws:
java.io.IOException- if the JSON string is invalid with respect to UserRecord
-
toJson
public java.lang.String toJson()
Convert an instance of UserRecord to an JSON string- Returns:
- JSON string
-
-