Class CfnIndexProps.Builder
java.lang.Object
software.amazon.awscdk.services.qbusiness.CfnIndexProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndexProps>
- Enclosing interface:
CfnIndexProps
@Stability(Stable)
public static final class CfnIndexProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndexProps>
A builder for
CfnIndexProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) Sets the value ofCfnIndexProps.getApplicationId()
build()
Builds the configured instance.capacityConfiguration
(IResolvable capacityConfiguration) Sets the value ofCfnIndexProps.getCapacityConfiguration()
capacityConfiguration
(CfnIndex.IndexCapacityConfigurationProperty capacityConfiguration) Sets the value ofCfnIndexProps.getCapacityConfiguration()
description
(String description) Sets the value ofCfnIndexProps.getDescription()
displayName
(String displayName) Sets the value ofCfnIndexProps.getDisplayName()
documentAttributeConfigurations
(List<? extends Object> documentAttributeConfigurations) Sets the value ofCfnIndexProps.getDocumentAttributeConfigurations()
documentAttributeConfigurations
(IResolvable documentAttributeConfigurations) Sets the value ofCfnIndexProps.getDocumentAttributeConfigurations()
Sets the value ofCfnIndexProps.getTags()
Sets the value ofCfnIndexProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
Sets the value ofCfnIndexProps.getApplicationId()
- Parameters:
applicationId
- The identifier of the Amazon Q Business application using the index. This parameter is required.- Returns:
this
-
displayName
Sets the value ofCfnIndexProps.getDisplayName()
- Parameters:
displayName
- The name of the index. This parameter is required.- Returns:
this
-
capacityConfiguration
@Stability(Stable) public CfnIndexProps.Builder capacityConfiguration(IResolvable capacityConfiguration) Sets the value ofCfnIndexProps.getCapacityConfiguration()
- Parameters:
capacityConfiguration
- The capacity units you want to provision for your index. You can add and remove capacity to fit your usage needs.- Returns:
this
-
capacityConfiguration
@Stability(Stable) public CfnIndexProps.Builder capacityConfiguration(CfnIndex.IndexCapacityConfigurationProperty capacityConfiguration) Sets the value ofCfnIndexProps.getCapacityConfiguration()
- Parameters:
capacityConfiguration
- The capacity units you want to provision for your index. You can add and remove capacity to fit your usage needs.- Returns:
this
-
description
Sets the value ofCfnIndexProps.getDescription()
- Parameters:
description
- A description for the Amazon Q Business index.- Returns:
this
-
documentAttributeConfigurations
@Stability(Stable) public CfnIndexProps.Builder documentAttributeConfigurations(IResolvable documentAttributeConfigurations) Sets the value ofCfnIndexProps.getDocumentAttributeConfigurations()
- Parameters:
documentAttributeConfigurations
- Configuration information for document attributes. Document attributes are metadata or fields associated with your documents. For example, the company department name associated with each document.For more information, see Understanding document attributes .
- Returns:
this
-
documentAttributeConfigurations
@Stability(Stable) public CfnIndexProps.Builder documentAttributeConfigurations(List<? extends Object> documentAttributeConfigurations) Sets the value ofCfnIndexProps.getDocumentAttributeConfigurations()
- Parameters:
documentAttributeConfigurations
- Configuration information for document attributes. Document attributes are metadata or fields associated with your documents. For example, the company department name associated with each document.For more information, see Understanding document attributes .
- Returns:
this
-
tags
Sets the value ofCfnIndexProps.getTags()
- Parameters:
tags
- A list of key-value pairs that identify or categorize the index. You can also use tags to help control access to the index. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + -- Returns:
this
-
type
Sets the value ofCfnIndexProps.getType()
- Parameters:
type
- The index type that's suitable for your needs. For more information on what's included in each type of index, see Amazon Q Business tiers .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIndexProps>
- Returns:
- a new instance of
CfnIndexProps
- Throws:
NullPointerException
- if any required attribute was not provided
-