Class CfnDataSource.DocumentAttributeTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.qbusiness.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeValueOperator
(String attributeValueOperator) build()
Builds the configured instance.Sets the value ofCfnDataSource.DocumentAttributeTargetProperty.getKey()
value
(IResolvable value) Sets the value ofCfnDataSource.DocumentAttributeTargetProperty.getValue()
Sets the value ofCfnDataSource.DocumentAttributeTargetProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnDataSource.DocumentAttributeTargetProperty.getKey()
- Parameters:
key
- 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
-
attributeValueOperator
@Stability(Stable) public CfnDataSource.DocumentAttributeTargetProperty.Builder attributeValueOperator(String attributeValueOperator) - Parameters:
attributeValueOperator
-TRUE
to delete the existing target value for your specified target attribute key. You cannot create a target value and set this toTRUE
.- Returns:
this
-
value
@Stability(Stable) public CfnDataSource.DocumentAttributeTargetProperty.Builder value(IResolvable value) Sets the value ofCfnDataSource.DocumentAttributeTargetProperty.getValue()
- Parameters:
value
- The value of a document attribute. You can only provide one value for a document attribute.- Returns:
this
-
value
@Stability(Stable) public CfnDataSource.DocumentAttributeTargetProperty.Builder value(CfnDataSource.DocumentAttributeValueProperty value) Sets the value ofCfnDataSource.DocumentAttributeTargetProperty.getValue()
- Parameters:
value
- The value of a document attribute. You can only provide one value for a document attribute.- 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
-