CosmosUserProperties Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosUserProperties
- com.
public final class CosmosUserProperties
The Cosmos user properties.
Constructor | Description |
---|---|
Cosmos |
Initialize a user object. |
Modifier and Type | Method and Description |
---|---|
String |
get Get the entity tag associated with the resource. |
String |
get Gets the name of the resource. |
Instant |
get Get the last modified timestamp associated with the resource. |
Cosmos |
set Sets the id |
Methods inherited from java.lang.Object
CosmosUserProperties
public CosmosUserProperties()
Initialize a user object.
getETag
public String getETag()
Get the entity tag associated with the resource. This is only relevant when getting response from the server.
Returns:
getId
public String getId()
Gets the name of the resource.
Returns:
getTimestamp
public Instant getTimestamp()
Get the last modified timestamp associated with the resource. This is only relevant when getting response from the server.
Returns:
setId
public CosmosUserProperties setId(String id)
Sets the id
Parameters:
Returns: