public class Resource extends JsonSerializable
Modifier | Constructor and Description |
---|---|
protected |
Resource()
Constructor.
|
protected |
Resource(Resource resource)
Copy constructor.
|
protected |
Resource(String jsonString)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
etag()
Get the entity tag associated with the resource.
|
String |
id()
Gets the name of the resource.
|
Resource |
id(String id)
Sets the name of the resource.
|
String |
resourceId()
Gets the ID associated with the resource.
|
Resource |
resourceId(String resourceId)
Set the ID associated with the resource.
|
String |
selfLink()
Get the self-link associated with the resource.
|
OffsetDateTime |
timestamp()
Get the last modified timestamp 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(String jsonString)
jsonString
- the json string that represents the resource.public String id()
public Resource id(String id)
id
- the name of the resource.public String resourceId()
public Resource resourceId(String resourceId)
resourceId
- the ID associated with the resource.public String selfLink()
public OffsetDateTime timestamp()
public String etag()
Copyright © 2019. All rights reserved.