Class EventData.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.EventData.Builder
Enclosing class:
EventData

public static class EventData.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String environmentId, String sessionToken, String collectionId, String documentId)
      Instantiates a new builder with required properties.
      Parameters:
      environmentId - the environmentId
      sessionToken - the sessionToken
      collectionId - the collectionId
      documentId - the documentId
  • Method Details

    • build

      public EventData build()
      Builds a EventData.
      Returns:
      the new EventData instance
    • environmentId

      public EventData.Builder environmentId​(String environmentId)
      Set the environmentId.
      Parameters:
      environmentId - the environmentId
      Returns:
      the EventData builder
    • sessionToken

      public EventData.Builder sessionToken​(String sessionToken)
      Set the sessionToken.
      Parameters:
      sessionToken - the sessionToken
      Returns:
      the EventData builder
    • clientTimestamp

      public EventData.Builder clientTimestamp​(Date clientTimestamp)
      Set the clientTimestamp.
      Parameters:
      clientTimestamp - the clientTimestamp
      Returns:
      the EventData builder
    • displayRank

      public EventData.Builder displayRank​(long displayRank)
      Set the displayRank.
      Parameters:
      displayRank - the displayRank
      Returns:
      the EventData builder
    • collectionId

      public EventData.Builder collectionId​(String collectionId)
      Set the collectionId.
      Parameters:
      collectionId - the collectionId
      Returns:
      the EventData builder
    • documentId

      public EventData.Builder documentId​(String documentId)
      Set the documentId.
      Parameters:
      documentId - the documentId
      Returns:
      the EventData builder