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 ContentItembuild()Builds a ContentItem.ContentItem.Buildercontent(String content)Set the content.ContentItem.Buildercontenttype(String contenttype)Set the contenttype.ContentItem.Buildercreated(long created)Set the created.ContentItem.Builderforward(Boolean forward)Set the forward.ContentItem.Builderid(String id)Set the id.ContentItem.Builderlanguage(String language)Set the language.ContentItem.Builderparentid(String parentid)Set the parentid.ContentItem.Builderreply(Boolean reply)Set the reply.ContentItem.Builderupdated(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
-