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 Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String content)
      Instantiates a new builder with required properties.
      Parameters:
      content - the content
  • Method Details

    • build

      public ContentItem build()
      Builds a ContentItem.
      Returns:
      the new ContentItem instance
    • content

      public ContentItem.Builder content​(String content)
      Set the content.
      Parameters:
      content - the content
      Returns:
      the ContentItem builder
    • id

      public ContentItem.Builder id​(String id)
      Set the id.
      Parameters:
      id - the id
      Returns:
      the ContentItem builder
    • created

      public ContentItem.Builder created​(long created)
      Set the created.
      Parameters:
      created - the created
      Returns:
      the ContentItem builder
    • updated

      public ContentItem.Builder updated​(long updated)
      Set the updated.
      Parameters:
      updated - the updated
      Returns:
      the ContentItem builder
    • contenttype

      public ContentItem.Builder contenttype​(String contenttype)
      Set the contenttype.
      Parameters:
      contenttype - the contenttype
      Returns:
      the ContentItem builder
    • language

      public ContentItem.Builder language​(String language)
      Set the language.
      Parameters:
      language - the language
      Returns:
      the ContentItem builder
    • parentid

      public ContentItem.Builder parentid​(String parentid)
      Set the parentid.
      Parameters:
      parentid - the parentid
      Returns:
      the ContentItem builder
    • reply

      public ContentItem.Builder reply​(Boolean reply)
      Set the reply.
      Parameters:
      reply - the reply
      Returns:
      the ContentItem builder
    • forward

      public ContentItem.Builder forward​(Boolean forward)
      Set the forward.
      Parameters:
      forward - the forward
      Returns:
      the ContentItem builder