Class CfnIndex.SearchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnIndex.SearchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndex.SearchProperty>
- Enclosing interface:
CfnIndex.SearchProperty
@Stability(Stable)
public static final class CfnIndex.SearchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndex.SearchProperty>
A builder for
CfnIndex.SearchProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.displayable
(Boolean displayable) Sets the value ofCfnIndex.SearchProperty.getDisplayable()
displayable
(IResolvable displayable) Sets the value ofCfnIndex.SearchProperty.getDisplayable()
Sets the value ofCfnIndex.SearchProperty.getFacetable()
facetable
(IResolvable facetable) Sets the value ofCfnIndex.SearchProperty.getFacetable()
searchable
(Boolean searchable) Sets the value ofCfnIndex.SearchProperty.getSearchable()
searchable
(IResolvable searchable) Sets the value ofCfnIndex.SearchProperty.getSearchable()
Sets the value ofCfnIndex.SearchProperty.getSortable()
sortable
(IResolvable sortable) Sets the value ofCfnIndex.SearchProperty.getSortable()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
displayable
Sets the value ofCfnIndex.SearchProperty.getDisplayable()
- Parameters:
displayable
- Determines whether the field is returned in the query response. The default istrue
.- Returns:
this
-
displayable
Sets the value ofCfnIndex.SearchProperty.getDisplayable()
- Parameters:
displayable
- Determines whether the field is returned in the query response. The default istrue
.- Returns:
this
-
facetable
Sets the value ofCfnIndex.SearchProperty.getFacetable()
- Parameters:
facetable
- Indicates that the field can be used to create search facets, a count of results for each value in the field. The default isfalse
.- Returns:
this
-
facetable
Sets the value ofCfnIndex.SearchProperty.getFacetable()
- Parameters:
facetable
- Indicates that the field can be used to create search facets, a count of results for each value in the field. The default isfalse
.- Returns:
this
-
searchable
Sets the value ofCfnIndex.SearchProperty.getSearchable()
- Parameters:
searchable
- Determines whether the field is used in the search. If theSearchable
field istrue
, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default istrue
for string fields andfalse
for number and date fields.- Returns:
this
-
searchable
Sets the value ofCfnIndex.SearchProperty.getSearchable()
- Parameters:
searchable
- Determines whether the field is used in the search. If theSearchable
field istrue
, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default istrue
for string fields andfalse
for number and date fields.- Returns:
this
-
sortable
Sets the value ofCfnIndex.SearchProperty.getSortable()
- Parameters:
sortable
- Determines whether the field can be used to sort the results of a query. The default isfalse
.- Returns:
this
-
sortable
Sets the value ofCfnIndex.SearchProperty.getSortable()
- Parameters:
sortable
- Determines whether the field can be used to sort the results of a query. The default isfalse
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIndex.SearchProperty>
- Returns:
- a new instance of
CfnIndex.SearchProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-