Package com.azure.data.cosmos
Class CosmosItemProperties
- java.lang.Object
-
- com.azure.data.cosmos.JsonSerializable
-
- com.azure.data.cosmos.Resource
-
- com.azure.data.cosmos.CosmosItemProperties
-
public class CosmosItemProperties extends Resource
-
-
Constructor Summary
Constructors Constructor Description CosmosItemProperties()
Initialize an empty CosmosItemProperties object.CosmosItemProperties(String jsonString)
Initialize a CosmosItemProperties object from json string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getObject(Class<?> klass)
CosmosItemProperties
id(String id)
Sets the id-
Methods inherited from class com.azure.data.cosmos.Resource
etag, id, resourceId, resourceId, selfLink, timestamp
-
Methods inherited from class com.azure.data.cosmos.JsonSerializable
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
-
-
-
-
Constructor Detail
-
CosmosItemProperties
public CosmosItemProperties()
Initialize an empty CosmosItemProperties object.
-
CosmosItemProperties
public CosmosItemProperties(String jsonString)
Initialize a CosmosItemProperties object from json string.- Parameters:
jsonString
- the json string that represents the document object.
-
-
Method Detail
-
id
public CosmosItemProperties id(String id)
Sets the id
-
getObject
public <T> T getObject(Class<?> klass) throws IOException
- Throws:
IOException
-
-