Class DefaultQueryParamsPassages.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.DefaultQueryParamsPassages.Builder
- Enclosing class:
- DefaultQueryParamsPassages
public static class DefaultQueryParamsPassages.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description DefaultQueryParamsPassages.Builder
addFields(String fields)
Adds an fields to fields.DefaultQueryParamsPassages
build()
Builds a DefaultQueryParamsPassages.DefaultQueryParamsPassages.Builder
characters(long characters)
Set the characters.DefaultQueryParamsPassages.Builder
count(long count)
Set the count.DefaultQueryParamsPassages.Builder
enabled(Boolean enabled)
Set the enabled.DefaultQueryParamsPassages.Builder
fields(List<String> fields)
Set the fields.DefaultQueryParamsPassages.Builder
maxPerDocument(long maxPerDocument)
Set the maxPerDocument.DefaultQueryParamsPassages.Builder
perDocument(Boolean perDocument)
Set the perDocument.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a DefaultQueryParamsPassages.- Returns:
- the new DefaultQueryParamsPassages instance
-
addFields
Adds an fields to fields.- Parameters:
fields
- the new fields- Returns:
- the DefaultQueryParamsPassages builder
-
enabled
Set the enabled.- Parameters:
enabled
- the enabled- Returns:
- the DefaultQueryParamsPassages builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the DefaultQueryParamsPassages builder
-
fields
Set the fields. Existing fields will be replaced.- Parameters:
fields
- the fields- Returns:
- the DefaultQueryParamsPassages builder
-
characters
Set the characters.- Parameters:
characters
- the characters- Returns:
- the DefaultQueryParamsPassages builder
-
perDocument
Set the perDocument.- Parameters:
perDocument
- the perDocument- Returns:
- the DefaultQueryParamsPassages builder
-
maxPerDocument
Set the maxPerDocument.- Parameters:
maxPerDocument
- the maxPerDocument- Returns:
- the DefaultQueryParamsPassages builder
-