public class Resource extends JsonSerializable
Modifier | Constructor and Description |
---|---|
protected |
Resource()
Constructor.
|
protected |
Resource(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
Constructor.
|
protected |
Resource(Resource resource)
Copy constructor.
|
protected |
Resource(String jsonString)
Constructor.
|
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.
|
OffsetDateTime |
getTimestamp()
Get the last modified timestamp associated with the resource.
|
Resource |
setId(String id)
Sets the name of the resource.
|
Resource |
setResourceId(String resourceId)
Set the ID associated with the resource.
|
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
protected Resource(Resource resource)
resource
- resource to by copied.protected Resource()
protected Resource(com.fasterxml.jackson.databind.node.ObjectNode objectNode)
objectNode
- the ObjectNode
that represent the
JsonSerializable
protected Resource(String jsonString)
jsonString
- the json string that represents the resource.public String getId()
public Resource setId(String id)
id
- the name of the resource.public String getResourceId()
public Resource setResourceId(String resourceId)
resourceId
- the ID associated with the resource.public String getSelfLink()
public OffsetDateTime getTimestamp()
public String getETag()
Copyright © 2020 Microsoft Corporation. All rights reserved.