Package com.launchdarkly.api.model
Class UserRecordRep
- java.lang.Object
-
- com.launchdarkly.api.model.UserRecordRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-04-19T22:24:20.163470Z[Etc/UTC]") public class UserRecordRep extends java.lang.ObjectUserRecordRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserRecordRep.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_ENVIRONMENT_IDstatic java.lang.StringSERIALIZED_NAME_LAST_PINGstatic java.lang.StringSERIALIZED_NAME_OWNER_IDstatic java.lang.StringSERIALIZED_NAME_SORT_VALUEstatic java.lang.StringSERIALIZED_NAME_USER
-
Constructor Summary
Constructors Constructor Description UserRecordRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UserRecordRepenvironmentId(java.lang.String environmentId)booleanequals(java.lang.Object o)static UserRecordRepfromJson(java.lang.String jsonString)Create an instance of UserRecordRep given an JSON stringjava.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.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()UserRecordReplastPing(java.time.OffsetDateTime lastPing)UserRecordRepownerId(java.lang.String ownerId)UserRecordRepputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.voidsetEnvironmentId(java.lang.String environmentId)voidsetLastPing(java.time.OffsetDateTime lastPing)voidsetOwnerId(java.lang.String ownerId)voidsetSortValue(java.lang.Object sortValue)voidsetUser(User user)UserRecordRepsortValue(java.lang.Object sortValue)java.lang.StringtoJson()Convert an instance of UserRecordRep to an JSON stringjava.lang.StringtoString()UserRecordRepuser(User user)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object 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
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
lastPing
public UserRecordRep lastPing(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(java.time.OffsetDateTime lastPing)
-
environmentId
public UserRecordRep environmentId(java.lang.String environmentId)
-
getEnvironmentId
@Nullable public java.lang.String getEnvironmentId()
Get environmentId- Returns:
- environmentId
-
setEnvironmentId
public void setEnvironmentId(java.lang.String environmentId)
-
ownerId
public UserRecordRep ownerId(java.lang.String ownerId)
-
getOwnerId
@Nullable public java.lang.String getOwnerId()
Get ownerId- Returns:
- ownerId
-
setOwnerId
public void setOwnerId(java.lang.String ownerId)
-
user
public UserRecordRep user(User user)
-
getUser
@Nullable public User getUser()
Get user- Returns:
- user
-
setUser
public void setUser(User user)
-
sortValue
public UserRecordRep sortValue(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(java.lang.Object sortValue)
-
putAdditionalProperty
public UserRecordRep 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.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
-
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
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
java.io.IOException- if the JSON Object is invalid with respect to UserRecordRep
-
fromJson
public static UserRecordRep fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of UserRecordRep given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UserRecordRep
- Throws:
java.io.IOException- if the JSON string is invalid with respect to UserRecordRep
-
toJson
public java.lang.String toJson()
Convert an instance of UserRecordRep to an JSON string- Returns:
- JSON string
-
-