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