Class CfnDataSourcePropsMixin.DocumentAttributeTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnDataSourcePropsMixin.DocumentAttributeTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.DocumentAttributeTargetProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.DocumentAttributeTargetProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.DocumentAttributeTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.DocumentAttributeTargetProperty>
A builder for
CfnDataSourcePropsMixin.DocumentAttributeTargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetDocumentAttributeKey(String targetDocumentAttributeKey) targetDocumentAttributeValue(CfnDataSourcePropsMixin.DocumentAttributeValueProperty targetDocumentAttributeValue) targetDocumentAttributeValue(IResolvable targetDocumentAttributeValue) targetDocumentAttributeValueDeletion(Boolean targetDocumentAttributeValueDeletion) targetDocumentAttributeValueDeletion(IResolvable targetDocumentAttributeValueDeletion)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetDocumentAttributeKey
@Stability(Stable) public CfnDataSourcePropsMixin.DocumentAttributeTargetProperty.Builder targetDocumentAttributeKey(String targetDocumentAttributeKey) Sets the value ofCfnDataSourcePropsMixin.DocumentAttributeTargetProperty.getTargetDocumentAttributeKey()- Parameters:
targetDocumentAttributeKey- The identifier of the target document attribute or metadata field. For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.- Returns:
this
-
targetDocumentAttributeValue
@Stability(Stable) public CfnDataSourcePropsMixin.DocumentAttributeTargetProperty.Builder targetDocumentAttributeValue(IResolvable targetDocumentAttributeValue) Sets the value ofCfnDataSourcePropsMixin.DocumentAttributeTargetProperty.getTargetDocumentAttributeValue()- Parameters:
targetDocumentAttributeValue- The target value you want to create for the target attribute. For example, 'Finance' could be the target value for the target attribute key 'Department'.- Returns:
this
-
targetDocumentAttributeValue
@Stability(Stable) public CfnDataSourcePropsMixin.DocumentAttributeTargetProperty.Builder targetDocumentAttributeValue(CfnDataSourcePropsMixin.DocumentAttributeValueProperty targetDocumentAttributeValue) Sets the value ofCfnDataSourcePropsMixin.DocumentAttributeTargetProperty.getTargetDocumentAttributeValue()- Parameters:
targetDocumentAttributeValue- The target value you want to create for the target attribute. For example, 'Finance' could be the target value for the target attribute key 'Department'.- Returns:
this
-
targetDocumentAttributeValueDeletion
@Stability(Stable) public CfnDataSourcePropsMixin.DocumentAttributeTargetProperty.Builder targetDocumentAttributeValueDeletion(Boolean targetDocumentAttributeValueDeletion) Sets the value ofCfnDataSourcePropsMixin.DocumentAttributeTargetProperty.getTargetDocumentAttributeValueDeletion()- Parameters:
targetDocumentAttributeValueDeletion-TRUEto delete the existing target value for your specified target attribute key. You cannot create a target value and set this toTRUE. To create a target value (TargetDocumentAttributeValue), set this toFALSE.- Returns:
this
-
targetDocumentAttributeValueDeletion
@Stability(Stable) public CfnDataSourcePropsMixin.DocumentAttributeTargetProperty.Builder targetDocumentAttributeValueDeletion(IResolvable targetDocumentAttributeValueDeletion) Sets the value ofCfnDataSourcePropsMixin.DocumentAttributeTargetProperty.getTargetDocumentAttributeValueDeletion()- Parameters:
targetDocumentAttributeValueDeletion-TRUEto delete the existing target value for your specified target attribute key. You cannot create a target value and set this toTRUE. To create a target value (TargetDocumentAttributeValue), set this toFALSE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.DocumentAttributeTargetProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.DocumentAttributeTargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-