Class Content.Builder
java.lang.Object
com.ibm.watson.personality_insights.v3.model.Content.Builder
- Enclosing class:
- Content
public static class Content.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(List<ContentItem> contentItems)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description Content.Builder
addContentItem(ContentItem contentItem)
Adds an contentItem to contentItems.Content
build()
Builds a Content.Content.Builder
contentItems(List<ContentItem> contentItems)
Set the contentItems.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
contentItems
- the contentItems
-
-
Method Details
-
build
Builds a Content.- Returns:
- the new Content instance
-
addContentItem
Adds an contentItem to contentItems.- Parameters:
contentItem
- the new contentItem- Returns:
- the Content builder
-
contentItems
Set the contentItems. Existing contentItems will be replaced.- Parameters:
contentItems
- the contentItems- Returns:
- the Content builder
-