@Generated(value="org.jsonschema2pojo") public class Consume extends Activity
Indicates that the actor has consumed the object. The specific meaning is dependent largely on the object's type. For instance, an actor may "consume" an audio object, indicating that the actor has listened to it; or an actor may "consume" a book, indicating that the book has been read. As such, the "consume" verb is a more generic form of other more specific verbs such as "read" and "play".
Constructor and Description |
---|
Consume() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Map<String,Object> |
getAdditionalProperties() |
String |
getTitle()
Natural-language title or headline for the activity encoded as a single JSON String containing HTML markup.
|
String |
getVerb()
verb
|
int |
hashCode() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setTitle(String title)
Natural-language title or headline for the activity encoded as a single JSON String containing HTML markup.
|
void |
setVerb(String verb)
verb
|
String |
toString() |
Consume |
withAdditionalProperty(String name,
Object value) |
Consume |
withTitle(String title) |
Consume |
withVerb(String verb) |
getActor, getContent, getGenerator, getIcon, getId, getLinks, getObject, getProvider, getPublished, getTarget, getUpdated, getUrl, setActor, setContent, setGenerator, setIcon, setId, setLinks, setObject, setProvider, setPublished, setTarget, setUpdated, setUrl, withActor, withContent, withGenerator, withIcon, withId, withLinks, withObject, withProvider, withPublished, withTarget, withUpdated, withUrl
@BeanProperty(value="verb") public String getVerb()
Activity
Identifies the action that the activity describes. An activity MUST contain a verb property whose value is a JSON String that is non-empty and matches either the "isegment-nz-nc" or the "IRI" production in [RFC3987]. Note that the use of a relative reference other than a simple name is not allowed. (Required)
@BeanProperty(value="verb") public void setVerb(String verb)
Activity
Identifies the action that the activity describes. An activity MUST contain a verb property whose value is a JSON String that is non-empty and matches either the "isegment-nz-nc" or the "IRI" production in [RFC3987]. Note that the use of a relative reference other than a simple name is not allowed. (Required)
@BeanProperty(value="title") public String getTitle()
Activity
@BeanProperty(value="title") public void setTitle(String title)
Activity
@BeanProperty(name="*") public Map<String,Object> getAdditionalProperties()
getAdditionalProperties
in class Activity
@BeanProperty(name="*") public void setAdditionalProperty(String name, Object value)
setAdditionalProperty
in class Activity
public Consume withAdditionalProperty(String name, Object value)
withAdditionalProperty
in class Activity
Copyright © 2018 The Apache Software Foundation. All rights reserved.