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

com.pulumi.aws.kendra.outputs.GetIndexDocumentMetadataConfigurationUpdateSearch 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;

@CustomType
public final class GetIndexDocumentMetadataConfigurationUpdateSearch {
    /**
     * @return Determines whether the field is returned in the query response. The default is `true`.
     * 
     */
    private Boolean displayable;
    /**
     * @return Whether the field can be used to create search facets, a count of results for each value in the field. The default is `false`.
     * 
     */
    private Boolean facetable;
    /**
     * @return Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is `true` for `string` fields and `false` for `number` and `date` fields.
     * 
     */
    private Boolean searchable;
    /**
     * @return Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is `false`.
     * 
     */
    private Boolean sortable;

    private GetIndexDocumentMetadataConfigurationUpdateSearch() {}
    /**
     * @return Determines whether the field is returned in the query response. The default is `true`.
     * 
     */
    public Boolean displayable() {
        return this.displayable;
    }
    /**
     * @return Whether the field can be used to create search facets, a count of results for each value in the field. The default is `false`.
     * 
     */
    public Boolean facetable() {
        return this.facetable;
    }
    /**
     * @return Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is `true` for `string` fields and `false` for `number` and `date` fields.
     * 
     */
    public Boolean searchable() {
        return this.searchable;
    }
    /**
     * @return Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is `false`.
     * 
     */
    public Boolean sortable() {
        return this.sortable;
    }

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

    public static Builder builder(GetIndexDocumentMetadataConfigurationUpdateSearch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean displayable;
        private Boolean facetable;
        private Boolean searchable;
        private Boolean sortable;
        public Builder() {}
        public Builder(GetIndexDocumentMetadataConfigurationUpdateSearch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.displayable = defaults.displayable;
    	      this.facetable = defaults.facetable;
    	      this.searchable = defaults.searchable;
    	      this.sortable = defaults.sortable;
        }

        @CustomType.Setter
        public Builder displayable(Boolean displayable) {
            if (displayable == null) {
              throw new MissingRequiredPropertyException("GetIndexDocumentMetadataConfigurationUpdateSearch", "displayable");
            }
            this.displayable = displayable;
            return this;
        }
        @CustomType.Setter
        public Builder facetable(Boolean facetable) {
            if (facetable == null) {
              throw new MissingRequiredPropertyException("GetIndexDocumentMetadataConfigurationUpdateSearch", "facetable");
            }
            this.facetable = facetable;
            return this;
        }
        @CustomType.Setter
        public Builder searchable(Boolean searchable) {
            if (searchable == null) {
              throw new MissingRequiredPropertyException("GetIndexDocumentMetadataConfigurationUpdateSearch", "searchable");
            }
            this.searchable = searchable;
            return this;
        }
        @CustomType.Setter
        public Builder sortable(Boolean sortable) {
            if (sortable == null) {
              throw new MissingRequiredPropertyException("GetIndexDocumentMetadataConfigurationUpdateSearch", "sortable");
            }
            this.sortable = sortable;
            return this;
        }
        public GetIndexDocumentMetadataConfigurationUpdateSearch build() {
            final var _resultValue = new GetIndexDocumentMetadataConfigurationUpdateSearch();
            _resultValue.displayable = displayable;
            _resultValue.facetable = facetable;
            _resultValue.searchable = searchable;
            _resultValue.sortable = sortable;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy