public static class ProfileOptions.Builder extends Object
| Constructor and Description |
|---|
Builder()
Instantiates a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
ProfileOptions.Builder |
acceptLanguage(AcceptLanguage acceptLanguage)
Accept language.
|
ProfileOptions.Builder |
addContentItem(ContentItem contentItem)
Adds a content items.
|
ProfileOptions |
build()
Builds the profile options.
|
ProfileOptions.Builder |
contentItems(List<ContentItem> contentItems)
Content items.
|
ProfileOptions.Builder |
html(String html)
Html.
|
ProfileOptions.Builder |
includeRaw(boolean includeRaw)
Include raw.
|
ProfileOptions.Builder |
language(Language language)
Language.
|
ProfileOptions.Builder |
text(String text)
Text.
|
public ProfileOptions.Builder acceptLanguage(AcceptLanguage acceptLanguage)
acceptLanguage - the accept languagepublic ProfileOptions.Builder addContentItem(ContentItem contentItem)
contentItem - the content itempublic ProfileOptions build()
public ProfileOptions.Builder contentItems(List<ContentItem> contentItems)
contentItems - the content itemspublic ProfileOptions.Builder html(String html)
html - the htmlpublic ProfileOptions.Builder includeRaw(boolean includeRaw)
includeRaw - the include rawpublic ProfileOptions.Builder language(Language language)
language - the languagepublic ProfileOptions.Builder text(String text)
text - the textCopyright © 2015–2016 IBM Watson. All rights reserved.