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

@CustomType
public final class IndexDocumentMetadataConfigurationUpdate {
    /**
     * @return The name of the index field. Minimum length of 1. Maximum length of 30.
     * 
     */
    private String name;
    /**
     * @return A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below
     * 
     */
    private @Nullable IndexDocumentMetadataConfigurationUpdateRelevance relevance;
    /**
     * @return A block that provides information about how the field is used during a search. Documented below. Detailed below
     * 
     */
    private @Nullable IndexDocumentMetadataConfigurationUpdateSearch search;
    /**
     * @return The data type of the index field. Valid values are `STRING_VALUE`, `STRING_LIST_VALUE`, `LONG_VALUE`, `DATE_VALUE`.
     * 
     */
    private String type;

    private IndexDocumentMetadataConfigurationUpdate() {}
    /**
     * @return The name of the index field. Minimum length of 1. Maximum length of 30.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return A block that provides manual tuning parameters to determine how the field affects the search results. Detailed below
     * 
     */
    public Optional<IndexDocumentMetadataConfigurationUpdateRelevance> relevance() {
        return Optional.ofNullable(this.relevance);
    }
    /**
     * @return A block that provides information about how the field is used during a search. Documented below. Detailed below
     * 
     */
    public Optional<IndexDocumentMetadataConfigurationUpdateSearch> search() {
        return Optional.ofNullable(this.search);
    }
    /**
     * @return The data type of the index field. Valid values are `STRING_VALUE`, `STRING_LIST_VALUE`, `LONG_VALUE`, `DATE_VALUE`.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(IndexDocumentMetadataConfigurationUpdate defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private @Nullable IndexDocumentMetadataConfigurationUpdateRelevance relevance;
        private @Nullable IndexDocumentMetadataConfigurationUpdateSearch search;
        private String type;
        public Builder() {}
        public Builder(IndexDocumentMetadataConfigurationUpdate defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.relevance = defaults.relevance;
    	      this.search = defaults.search;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder relevance(@Nullable IndexDocumentMetadataConfigurationUpdateRelevance relevance) {
            this.relevance = relevance;
            return this;
        }
        @CustomType.Setter
        public Builder search(@Nullable IndexDocumentMetadataConfigurationUpdateSearch search) {
            this.search = search;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            this.type = Objects.requireNonNull(type);
            return this;
        }
        public IndexDocumentMetadataConfigurationUpdate build() {
            final var o = new IndexDocumentMetadataConfigurationUpdate();
            o.name = name;
            o.relevance = relevance;
            o.search = search;
            o.type = type;
            return o;
        }
    }
}
