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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(List<ContentItem> contentItems)
      Instantiates a new builder with required properties.
      Parameters:
      contentItems - the contentItems
  • Method Details

    • build

      public Content build()
      Builds a Content.
      Returns:
      the new Content instance
    • addContentItem

      public Content.Builder addContentItem​(ContentItem contentItem)
      Adds an contentItem to contentItems.
      Parameters:
      contentItem - the new contentItem
      Returns:
      the Content builder
    • contentItems

      public Content.Builder contentItems​(List<ContentItem> contentItems)
      Set the contentItems. Existing contentItems will be replaced.
      Parameters:
      contentItems - the contentItems
      Returns:
      the Content builder