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

com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateArgs 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.inputs;

import com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateRelevanceArgs;
import com.pulumi.aws.kendra.inputs.IndexDocumentMetadataConfigurationUpdateSearchArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class IndexDocumentMetadataConfigurationUpdateArgs extends com.pulumi.resources.ResourceArgs {

    public static final IndexDocumentMetadataConfigurationUpdateArgs Empty = new IndexDocumentMetadataConfigurationUpdateArgs();

    /**
     * The name of the index field. Minimum length of 1. Maximum length of 30.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the index field. Minimum length of 1. Maximum length of 30.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below
     * 
     */
    @Import(name="relevance")
    private @Nullable Output relevance;

    /**
     * @return A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below
     * 
     */
    public Optional> relevance() {
        return Optional.ofNullable(this.relevance);
    }

    /**
     * A block that provides information about how the field is used during a search. Documented below. Detailed below
     * 
     */
    @Import(name="search")
    private @Nullable Output search;

    /**
     * @return A block that provides information about how the field is used during a search. Documented below. Detailed below
     * 
     */
    public Optional> search() {
        return Optional.ofNullable(this.search);
    }

    /**
     * The data type of the index field. Valid values are `STRING_VALUE`, `STRING_LIST_VALUE`, `LONG_VALUE`, `DATE_VALUE`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The data type of the index field. Valid values are `STRING_VALUE`, `STRING_LIST_VALUE`, `LONG_VALUE`, `DATE_VALUE`.
     * 
     */
    public Output type() {
        return this.type;
    }

    private IndexDocumentMetadataConfigurationUpdateArgs() {}

    private IndexDocumentMetadataConfigurationUpdateArgs(IndexDocumentMetadataConfigurationUpdateArgs $) {
        this.name = $.name;
        this.relevance = $.relevance;
        this.search = $.search;
        this.type = $.type;
    }

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

    public static final class Builder {
        private IndexDocumentMetadataConfigurationUpdateArgs $;

        public Builder() {
            $ = new IndexDocumentMetadataConfigurationUpdateArgs();
        }

        public Builder(IndexDocumentMetadataConfigurationUpdateArgs defaults) {
            $ = new IndexDocumentMetadataConfigurationUpdateArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param name The name of the index field. Minimum length of 1. Maximum length of 30.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the index field. Minimum length of 1. Maximum length of 30.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param relevance A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below
         * 
         * @return builder
         * 
         */
        public Builder relevance(@Nullable Output relevance) {
            $.relevance = relevance;
            return this;
        }

        /**
         * @param relevance A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below
         * 
         * @return builder
         * 
         */
        public Builder relevance(IndexDocumentMetadataConfigurationUpdateRelevanceArgs relevance) {
            return relevance(Output.of(relevance));
        }

        /**
         * @param search A block that provides information about how the field is used during a search. Documented below. Detailed below
         * 
         * @return builder
         * 
         */
        public Builder search(@Nullable Output search) {
            $.search = search;
            return this;
        }

        /**
         * @param search A block that provides information about how the field is used during a search. Documented below. Detailed below
         * 
         * @return builder
         * 
         */
        public Builder search(IndexDocumentMetadataConfigurationUpdateSearchArgs search) {
            return search(Output.of(search));
        }

        /**
         * @param type The data type of the index field. Valid values are `STRING_VALUE`, `STRING_LIST_VALUE`, `LONG_VALUE`, `DATE_VALUE`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The data type of the index field. Valid values are `STRING_VALUE`, `STRING_LIST_VALUE`, `LONG_VALUE`, `DATE_VALUE`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public IndexDocumentMetadataConfigurationUpdateArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("IndexDocumentMetadataConfigurationUpdateArgs", "name");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("IndexDocumentMetadataConfigurationUpdateArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy