public static class TrainingExample.Builder
extends java.lang.Object
Constructor and Description |
---|
TrainingExample.Builder()
Instantiates a new builder.
|
TrainingExample.Builder(java.lang.String documentId,
java.lang.String collectionId,
java.lang.Long relevance)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
TrainingExample |
build()
Builds a TrainingExample.
|
TrainingExample.Builder |
collectionId(java.lang.String collectionId)
Set the collectionId.
|
TrainingExample.Builder |
created(java.util.Date created)
Set the created.
|
TrainingExample.Builder |
documentId(java.lang.String documentId)
Set the documentId.
|
TrainingExample.Builder |
relevance(long relevance)
Set the relevance.
|
TrainingExample.Builder |
updated(java.util.Date updated)
Set the updated.
|
public TrainingExample.Builder()
public TrainingExample.Builder(java.lang.String documentId, java.lang.String collectionId, java.lang.Long relevance)
documentId
- the documentIdcollectionId
- the collectionIdrelevance
- the relevancepublic TrainingExample build()
public TrainingExample.Builder documentId(java.lang.String documentId)
documentId
- the documentIdpublic TrainingExample.Builder collectionId(java.lang.String collectionId)
collectionId
- the collectionIdpublic TrainingExample.Builder relevance(long relevance)
relevance
- the relevancepublic TrainingExample.Builder created(java.util.Date created)
created
- the createdpublic TrainingExample.Builder updated(java.util.Date updated)
updated
- the updated