Resource 类

定义

Represents the base resource in the Azure Cosmos DB database service.

public class Resource extends JsonSerializable
继承
java.lang.Object
Serializable
Resource

继承成员

构造函数

Resource()

Constructor.

Resource(JSONObject jsonObject)

Constructor.

Resource(String jsonString)

Constructor.

Resource(String jsonString, ObjectMapper objectMapper)

Constructor.

方法

getETag()

Get the entity tag associated with the resource.

getId()

Gets the name of the resource.

getResourceId()

Gets the ID associated with the resource.

getSelfLink()

Get the self-link associated with the resource.

getTimestamp()

Get the last modified timestamp associated with the resource.

setId(String id)

Sets the name of the resource.

setResourceId(String resourceId)

Set the ID associated with the resource.

适用于