Resource Class
- java.
lang. Object - JsonSerializable
- com.
microsoft. azure. cosmosdb. Resource
- com.
public class Resource extends JsonSerializable
Represents the base resource in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
Resource() |
Constructor. |
Resource(Resource resource) |
Copy constructor. |
Resource(String jsonString) |
Constructor. |
Resource(String jsonString, ObjectMapper objectMapper) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getETag()
Get the entity tag associated with the resource. |
String |
getId()
Gets the name of the resource. |
String |
getResourceId()
Gets the ID associated with the resource. |
String |
getSelfLink()
Get the self-link associated with the resource. |
Date |
getTimestamp()
Get the last modified timestamp associated with the resource. |
void |
setId(String id)
Sets the name of the resource. |
void |
setResourceId(String resourceId)
Set the ID associated with the resource. |
Inherited Members
Constructor Details
Resource
protected Resource()
Constructor.
Resource
protected Resource(Resource resource)
Copy constructor.
Parameters:
Resource
protected Resource(String jsonString)
Constructor.
Parameters:
Resource
protected Resource(String jsonString, ObjectMapper objectMapper)
Constructor.
Parameters:
Method Details
getETag
public String getETag()
Get the entity tag associated with the resource.
Returns:
getId
public String getId()
Gets the name of the resource.
Returns:
getResourceId
public String getResourceId()
Gets the ID associated with the resource.
Returns:
getSelfLink
public String getSelfLink()
Get the self-link associated with the resource.
Returns:
getTimestamp
public Date getTimestamp()
Get the last modified timestamp associated with the resource.
Returns:
setId
public void setId(String id)
Sets the name of the resource.
Parameters:
setResourceId
public void setResourceId(String resourceId)
Set the ID associated with the resource.
Parameters: