com.pulumi.aws.kendra.outputs.DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.kendra.outputs;
import com.pulumi.aws.kendra.outputs.DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition {
/**
* @return The identifier of the document attribute used for the condition. For example, `_source_uri` could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support `_document_body` as an attribute key used for the condition.
*
*/
private String conditionDocumentAttributeKey;
/**
* @return The value used by the operator. For example, you can specify the value 'financial' for strings in the `_source_uri` field that partially match or contain this value. See condition_on_value.
*
*/
private @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue conditionOnValue;
/**
* @return The condition operator. For example, you can use `Contains` to partially match a string. Valid Values: `GreaterThan` | `GreaterThanOrEquals` | `LessThan` | `LessThanOrEquals` | `Equals` | `NotEquals` | `Contains` | `NotContains` | `Exists` | `NotExists` | `BeginsWith`.
*
*/
private String operator;
private DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition() {}
/**
* @return The identifier of the document attribute used for the condition. For example, `_source_uri` could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Kendra currently does not support `_document_body` as an attribute key used for the condition.
*
*/
public String conditionDocumentAttributeKey() {
return this.conditionDocumentAttributeKey;
}
/**
* @return The value used by the operator. For example, you can specify the value 'financial' for strings in the `_source_uri` field that partially match or contain this value. See condition_on_value.
*
*/
public Optional conditionOnValue() {
return Optional.ofNullable(this.conditionOnValue);
}
/**
* @return The condition operator. For example, you can use `Contains` to partially match a string. Valid Values: `GreaterThan` | `GreaterThanOrEquals` | `LessThan` | `LessThanOrEquals` | `Equals` | `NotEquals` | `Contains` | `NotContains` | `Exists` | `NotExists` | `BeginsWith`.
*
*/
public String operator() {
return this.operator;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String conditionDocumentAttributeKey;
private @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue conditionOnValue;
private String operator;
public Builder() {}
public Builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition defaults) {
Objects.requireNonNull(defaults);
this.conditionDocumentAttributeKey = defaults.conditionDocumentAttributeKey;
this.conditionOnValue = defaults.conditionOnValue;
this.operator = defaults.operator;
}
@CustomType.Setter
public Builder conditionDocumentAttributeKey(String conditionDocumentAttributeKey) {
if (conditionDocumentAttributeKey == null) {
throw new MissingRequiredPropertyException("DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition", "conditionDocumentAttributeKey");
}
this.conditionDocumentAttributeKey = conditionDocumentAttributeKey;
return this;
}
@CustomType.Setter
public Builder conditionOnValue(@Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationConditionConditionOnValue conditionOnValue) {
this.conditionOnValue = conditionOnValue;
return this;
}
@CustomType.Setter
public Builder operator(String operator) {
if (operator == null) {
throw new MissingRequiredPropertyException("DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition", "operator");
}
this.operator = operator;
return this;
}
public DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition build() {
final var _resultValue = new DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition();
_resultValue.conditionDocumentAttributeKey = conditionDocumentAttributeKey;
_resultValue.conditionOnValue = conditionOnValue;
_resultValue.operator = operator;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy