Class CfnDataSource.DocumentAttributeTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.DocumentAttributeTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.DocumentAttributeTargetProperty>
- Enclosing interface:
CfnDataSource.DocumentAttributeTargetProperty
@Stability(Stable)
public static final class CfnDataSource.DocumentAttributeTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.DocumentAttributeTargetProperty>
A builder for
CfnDataSource.DocumentAttributeTargetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.targetDocumentAttributeKey
(String targetDocumentAttributeKey) targetDocumentAttributeValue
(IResolvable targetDocumentAttributeValue) targetDocumentAttributeValue
(CfnDataSource.DocumentAttributeValueProperty targetDocumentAttributeValue) targetDocumentAttributeValueDeletion
(Boolean targetDocumentAttributeValueDeletion) targetDocumentAttributeValueDeletion
(IResolvable targetDocumentAttributeValueDeletion)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetDocumentAttributeKey
@Stability(Stable) public CfnDataSource.DocumentAttributeTargetProperty.Builder targetDocumentAttributeKey(String targetDocumentAttributeKey) - Parameters:
targetDocumentAttributeKey
- The identifier of the target document attribute or metadata field. This parameter is required. 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 CfnDataSource.DocumentAttributeTargetProperty.Builder targetDocumentAttributeValue(IResolvable targetDocumentAttributeValue) - 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 CfnDataSource.DocumentAttributeTargetProperty.Builder targetDocumentAttributeValue(CfnDataSource.DocumentAttributeValueProperty targetDocumentAttributeValue) - 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 CfnDataSource.DocumentAttributeTargetProperty.Builder targetDocumentAttributeValueDeletion(Boolean targetDocumentAttributeValueDeletion) Sets the value ofCfnDataSource.DocumentAttributeTargetProperty.getTargetDocumentAttributeValueDeletion()
- Parameters:
targetDocumentAttributeValueDeletion
-TRUE
to 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 CfnDataSource.DocumentAttributeTargetProperty.Builder targetDocumentAttributeValueDeletion(IResolvable targetDocumentAttributeValueDeletion) Sets the value ofCfnDataSource.DocumentAttributeTargetProperty.getTargetDocumentAttributeValueDeletion()
- Parameters:
targetDocumentAttributeValueDeletion
-TRUE
to 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.DocumentAttributeTargetProperty>
- Returns:
- a new instance of
CfnDataSource.DocumentAttributeTargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-