public class ContentItem
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
ContentItem.Builder
Builder.
|
static interface |
ContentItem.Contenttype
The MIME type of the content.
|
static interface |
ContentItem.Language
The language identifier (two-letter ISO 639-1 identifier) for the language of the content item.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
content |
protected java.lang.String |
contenttype |
protected java.lang.Long |
created |
protected java.lang.Boolean |
forward |
protected java.lang.String |
id |
protected java.lang.String |
language |
protected java.lang.String |
parentid |
protected java.lang.Boolean |
reply |
protected java.lang.Long |
updated |
Modifier | Constructor and Description |
---|---|
protected |
ContentItem(ContentItem.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
content()
Gets the content.
|
java.lang.String |
contenttype()
Gets the contenttype.
|
java.lang.Long |
created()
Gets the created.
|
java.lang.Boolean |
forward()
Gets the forward.
|
java.lang.String |
id()
Gets the id.
|
java.lang.String |
language()
Gets the language.
|
ContentItem.Builder |
newBuilder()
New builder.
|
java.lang.String |
parentid()
Gets the parentid.
|
java.lang.Boolean |
reply()
Gets the reply.
|
java.lang.Long |
updated()
Gets the updated.
|
protected java.lang.String content
protected java.lang.String id
protected java.lang.Long created
protected java.lang.Long updated
protected java.lang.String contenttype
protected java.lang.String language
protected java.lang.String parentid
protected java.lang.Boolean reply
protected java.lang.Boolean forward
protected ContentItem(ContentItem.Builder builder)
public ContentItem.Builder newBuilder()
public java.lang.String content()
The content that is to be analyzed. The service supports up to 20 MB of content for all `ContentItem` objects combined.
public java.lang.String id()
A unique identifier for this content item.
public java.lang.Long created()
A timestamp that identifies when this content was created. Specify a value in milliseconds since the UNIX Epoch (January 1, 1970, at 0:00 UTC). Required only for results that include temporal behavior data.
public java.lang.Long updated()
A timestamp that identifies when this content was last updated. Specify a value in milliseconds since the UNIX Epoch (January 1, 1970, at 0:00 UTC). Required only for results that include temporal behavior data.
public java.lang.String contenttype()
The MIME type of the content. The default is plain text. The tags are stripped from HTML content before it is analyzed; plain text is processed as submitted.
public java.lang.String language()
The language identifier (two-letter ISO 639-1 identifier) for the language of the content item. The default is `en` (English). Regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`. A language specified with the **Content-Type** parameter overrides the value of this parameter; any content items that specify a different language are ignored. Omit the **Content-Type** parameter to base the language on the most prevalent specification among the content items; again, content items that specify a different language are ignored. You can specify any combination of languages for the input and response content.
public java.lang.String parentid()
The unique ID of the parent content item for this item. Used to identify hierarchical relationships between posts/replies, messages/replies, and so on.
public java.lang.Boolean reply()
Indicates whether this content item is a reply to another content item.
public java.lang.Boolean forward()
Indicates whether this content item is a forwarded/copied version of another content item.