Class ContentItem.Builder
java.lang.Object
com.ibm.watson.personality_insights.v3.model.ContentItem.Builder
- Enclosing class:
- ContentItem
public static class ContentItem.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description ContentItem
build()
Builds a ContentItem.ContentItem.Builder
content(String content)
Set the content.ContentItem.Builder
contenttype(String contenttype)
Set the contenttype.ContentItem.Builder
created(long created)
Set the created.ContentItem.Builder
forward(Boolean forward)
Set the forward.ContentItem.Builder
id(String id)
Set the id.ContentItem.Builder
language(String language)
Set the language.ContentItem.Builder
parentid(String parentid)
Set the parentid.ContentItem.Builder
reply(Boolean reply)
Set the reply.ContentItem.Builder
updated(long updated)
Set the updated.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
content
- the content
-
-
Method Details
-
build
Builds a ContentItem.- Returns:
- the new ContentItem instance
-
content
Set the content.- Parameters:
content
- the content- Returns:
- the ContentItem builder
-
id
Set the id.- Parameters:
id
- the id- Returns:
- the ContentItem builder
-
created
Set the created.- Parameters:
created
- the created- Returns:
- the ContentItem builder
-
updated
Set the updated.- Parameters:
updated
- the updated- Returns:
- the ContentItem builder
-
contenttype
Set the contenttype.- Parameters:
contenttype
- the contenttype- Returns:
- the ContentItem builder
-
language
Set the language.- Parameters:
language
- the language- Returns:
- the ContentItem builder
-
parentid
Set the parentid.- Parameters:
parentid
- the parentid- Returns:
- the ContentItem builder
-
reply
Set the reply.- Parameters:
reply
- the reply- Returns:
- the ContentItem builder
-
forward
Set the forward.- Parameters:
forward
- the forward- Returns:
- the ContentItem builder
-