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 Summary
-
Method Summary
Modifier and Type Method Description EventData
build()
Builds a EventData.EventData.Builder
clientTimestamp(Date clientTimestamp)
Set the clientTimestamp.EventData.Builder
collectionId(String collectionId)
Set the collectionId.EventData.Builder
displayRank(long displayRank)
Set the displayRank.EventData.Builder
documentId(String documentId)
Set the documentId.EventData.Builder
environmentId(String environmentId)
Set the environmentId.EventData.Builder
sessionToken(String sessionToken)
Set the sessionToken.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdsessionToken
- the sessionTokencollectionId
- the collectionIddocumentId
- the documentId
-
-
Method Details
-
build
Builds a EventData.- Returns:
- the new EventData instance
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the EventData builder
-
sessionToken
Set the sessionToken.- Parameters:
sessionToken
- the sessionToken- Returns:
- the EventData builder
-
clientTimestamp
Set the clientTimestamp.- Parameters:
clientTimestamp
- the clientTimestamp- Returns:
- the EventData builder
-
displayRank
Set the displayRank.- Parameters:
displayRank
- the displayRank- Returns:
- the EventData builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the EventData builder
-
documentId
Set the documentId.- Parameters:
documentId
- the documentId- Returns:
- the EventData builder
-