// *** 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.DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition;
import com.pulumi.aws.kendra.outputs.DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguration {
    /**
     * @return Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra. See Document Attribute Condition.
     * 
     */
    private @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition condition;
    /**
     * @return `TRUE` to delete content if the condition used for the target attribute is met.
     * 
     */
    private @Nullable Boolean documentContentDeletion;
    /**
     * @return Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value. Detailed below.
     * 
     */
    private @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget target;

    private DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguration() {}
    /**
     * @return Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra. See Document Attribute Condition.
     * 
     */
    public Optional<DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition> condition() {
        return Optional.ofNullable(this.condition);
    }
    /**
     * @return `TRUE` to delete content if the condition used for the target attribute is met.
     * 
     */
    public Optional<Boolean> documentContentDeletion() {
        return Optional.ofNullable(this.documentContentDeletion);
    }
    /**
     * @return Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value. Detailed below.
     * 
     */
    public Optional<DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget> target() {
        return Optional.ofNullable(this.target);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition condition;
        private @Nullable Boolean documentContentDeletion;
        private @Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget target;
        public Builder() {}
        public Builder(DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.condition = defaults.condition;
    	      this.documentContentDeletion = defaults.documentContentDeletion;
    	      this.target = defaults.target;
        }

        @CustomType.Setter
        public Builder condition(@Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationCondition condition) {
            this.condition = condition;
            return this;
        }
        @CustomType.Setter
        public Builder documentContentDeletion(@Nullable Boolean documentContentDeletion) {
            this.documentContentDeletion = documentContentDeletion;
            return this;
        }
        @CustomType.Setter
        public Builder target(@Nullable DataSourceCustomDocumentEnrichmentConfigurationInlineConfigurationTarget target) {
            this.target = target;
            return this;
        }
        public DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguration build() {
            final var o = new DataSourceCustomDocumentEnrichmentConfigurationInlineConfiguration();
            o.condition = condition;
            o.documentContentDeletion = documentContentDeletion;
            o.target = target;
            return o;
        }
    }
}
