All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.kendra.outputs.IndexIndexStatistic 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.IndexIndexStatisticFaqStatistic;
import com.pulumi.aws.kendra.outputs.IndexIndexStatisticTextDocumentStatistic;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class IndexIndexStatistic {
    /**
     * @return A block that specifies the number of question and answer topics in the index. Detailed below.
     * 
     */
    private @Nullable List faqStatistics;
    /**
     * @return A block that specifies the number of text documents indexed. Detailed below.
     * 
     */
    private @Nullable List textDocumentStatistics;

    private IndexIndexStatistic() {}
    /**
     * @return A block that specifies the number of question and answer topics in the index. Detailed below.
     * 
     */
    public List faqStatistics() {
        return this.faqStatistics == null ? List.of() : this.faqStatistics;
    }
    /**
     * @return A block that specifies the number of text documents indexed. Detailed below.
     * 
     */
    public List textDocumentStatistics() {
        return this.textDocumentStatistics == null ? List.of() : this.textDocumentStatistics;
    }

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

    public static Builder builder(IndexIndexStatistic defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List faqStatistics;
        private @Nullable List textDocumentStatistics;
        public Builder() {}
        public Builder(IndexIndexStatistic defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.faqStatistics = defaults.faqStatistics;
    	      this.textDocumentStatistics = defaults.textDocumentStatistics;
        }

        @CustomType.Setter
        public Builder faqStatistics(@Nullable List faqStatistics) {

            this.faqStatistics = faqStatistics;
            return this;
        }
        public Builder faqStatistics(IndexIndexStatisticFaqStatistic... faqStatistics) {
            return faqStatistics(List.of(faqStatistics));
        }
        @CustomType.Setter
        public Builder textDocumentStatistics(@Nullable List textDocumentStatistics) {

            this.textDocumentStatistics = textDocumentStatistics;
            return this;
        }
        public Builder textDocumentStatistics(IndexIndexStatisticTextDocumentStatistic... textDocumentStatistics) {
            return textDocumentStatistics(List.of(textDocumentStatistics));
        }
        public IndexIndexStatistic build() {
            final var _resultValue = new IndexIndexStatistic();
            _resultValue.faqStatistics = faqStatistics;
            _resultValue.textDocumentStatistics = textDocumentStatistics;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy