public static class SentimentsDocument.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SentimentsDocument |
build() |
SentimentsDocument.Builder |
copy(SentimentsDocument o) |
SentimentsDocument.Builder |
key(String key)
Document Unique Identifier.
|
SentimentsDocument.Builder |
languageCode(String languageCode)
Language code as per ISO 639-1 standard.
|
SentimentsDocument.Builder |
text(String text)
Document text for detect sentiments.
|
public SentimentsDocument.Builder key(String key)
Document Unique Identifier.
key
- the value to setpublic SentimentsDocument.Builder text(String text)
Document text for detect sentiments.
text
- the value to setpublic SentimentsDocument.Builder languageCode(String languageCode)
Language code as per ISO 639-1 standard.
languageCode
- the value to setpublic SentimentsDocument build()
public SentimentsDocument.Builder copy(SentimentsDocument o)
Copyright © 2016–2022. All rights reserved.