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

com.pulumi.azurenative.documentdb.inputs.IndexingPolicyArgs Maven / Gradle / Ivy

The newest version!
// *** 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.azurenative.documentdb.inputs;

import com.pulumi.azurenative.documentdb.enums.IndexingMode;
import com.pulumi.azurenative.documentdb.inputs.CompositePathArgs;
import com.pulumi.azurenative.documentdb.inputs.ExcludedPathArgs;
import com.pulumi.azurenative.documentdb.inputs.IncludedPathArgs;
import com.pulumi.azurenative.documentdb.inputs.SpatialSpecArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Cosmos DB indexing policy
 * 
 */
public final class IndexingPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final IndexingPolicyArgs Empty = new IndexingPolicyArgs();

    /**
     * Indicates if the indexing policy is automatic
     * 
     */
    @Import(name="automatic")
    private @Nullable Output automatic;

    /**
     * @return Indicates if the indexing policy is automatic
     * 
     */
    public Optional> automatic() {
        return Optional.ofNullable(this.automatic);
    }

    /**
     * List of composite path list
     * 
     */
    @Import(name="compositeIndexes")
    private @Nullable Output>> compositeIndexes;

    /**
     * @return List of composite path list
     * 
     */
    public Optional>>> compositeIndexes() {
        return Optional.ofNullable(this.compositeIndexes);
    }

    /**
     * List of paths to exclude from indexing
     * 
     */
    @Import(name="excludedPaths")
    private @Nullable Output> excludedPaths;

    /**
     * @return List of paths to exclude from indexing
     * 
     */
    public Optional>> excludedPaths() {
        return Optional.ofNullable(this.excludedPaths);
    }

    /**
     * List of paths to include in the indexing
     * 
     */
    @Import(name="includedPaths")
    private @Nullable Output> includedPaths;

    /**
     * @return List of paths to include in the indexing
     * 
     */
    public Optional>> includedPaths() {
        return Optional.ofNullable(this.includedPaths);
    }

    /**
     * Indicates the indexing mode.
     * 
     */
    @Import(name="indexingMode")
    private @Nullable Output> indexingMode;

    /**
     * @return Indicates the indexing mode.
     * 
     */
    public Optional>> indexingMode() {
        return Optional.ofNullable(this.indexingMode);
    }

    /**
     * List of spatial specifics
     * 
     */
    @Import(name="spatialIndexes")
    private @Nullable Output> spatialIndexes;

    /**
     * @return List of spatial specifics
     * 
     */
    public Optional>> spatialIndexes() {
        return Optional.ofNullable(this.spatialIndexes);
    }

    private IndexingPolicyArgs() {}

    private IndexingPolicyArgs(IndexingPolicyArgs $) {
        this.automatic = $.automatic;
        this.compositeIndexes = $.compositeIndexes;
        this.excludedPaths = $.excludedPaths;
        this.includedPaths = $.includedPaths;
        this.indexingMode = $.indexingMode;
        this.spatialIndexes = $.spatialIndexes;
    }

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

    public static final class Builder {
        private IndexingPolicyArgs $;

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

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

        /**
         * @param automatic Indicates if the indexing policy is automatic
         * 
         * @return builder
         * 
         */
        public Builder automatic(@Nullable Output automatic) {
            $.automatic = automatic;
            return this;
        }

        /**
         * @param automatic Indicates if the indexing policy is automatic
         * 
         * @return builder
         * 
         */
        public Builder automatic(Boolean automatic) {
            return automatic(Output.of(automatic));
        }

        /**
         * @param compositeIndexes List of composite path list
         * 
         * @return builder
         * 
         */
        public Builder compositeIndexes(@Nullable Output>> compositeIndexes) {
            $.compositeIndexes = compositeIndexes;
            return this;
        }

        /**
         * @param compositeIndexes List of composite path list
         * 
         * @return builder
         * 
         */
        public Builder compositeIndexes(List> compositeIndexes) {
            return compositeIndexes(Output.of(compositeIndexes));
        }

        /**
         * @param compositeIndexes List of composite path list
         * 
         * @return builder
         * 
         */
        public Builder compositeIndexes(List... compositeIndexes) {
            return compositeIndexes(List.of(compositeIndexes));
        }

        /**
         * @param excludedPaths List of paths to exclude from indexing
         * 
         * @return builder
         * 
         */
        public Builder excludedPaths(@Nullable Output> excludedPaths) {
            $.excludedPaths = excludedPaths;
            return this;
        }

        /**
         * @param excludedPaths List of paths to exclude from indexing
         * 
         * @return builder
         * 
         */
        public Builder excludedPaths(List excludedPaths) {
            return excludedPaths(Output.of(excludedPaths));
        }

        /**
         * @param excludedPaths List of paths to exclude from indexing
         * 
         * @return builder
         * 
         */
        public Builder excludedPaths(ExcludedPathArgs... excludedPaths) {
            return excludedPaths(List.of(excludedPaths));
        }

        /**
         * @param includedPaths List of paths to include in the indexing
         * 
         * @return builder
         * 
         */
        public Builder includedPaths(@Nullable Output> includedPaths) {
            $.includedPaths = includedPaths;
            return this;
        }

        /**
         * @param includedPaths List of paths to include in the indexing
         * 
         * @return builder
         * 
         */
        public Builder includedPaths(List includedPaths) {
            return includedPaths(Output.of(includedPaths));
        }

        /**
         * @param includedPaths List of paths to include in the indexing
         * 
         * @return builder
         * 
         */
        public Builder includedPaths(IncludedPathArgs... includedPaths) {
            return includedPaths(List.of(includedPaths));
        }

        /**
         * @param indexingMode Indicates the indexing mode.
         * 
         * @return builder
         * 
         */
        public Builder indexingMode(@Nullable Output> indexingMode) {
            $.indexingMode = indexingMode;
            return this;
        }

        /**
         * @param indexingMode Indicates the indexing mode.
         * 
         * @return builder
         * 
         */
        public Builder indexingMode(Either indexingMode) {
            return indexingMode(Output.of(indexingMode));
        }

        /**
         * @param indexingMode Indicates the indexing mode.
         * 
         * @return builder
         * 
         */
        public Builder indexingMode(String indexingMode) {
            return indexingMode(Either.ofLeft(indexingMode));
        }

        /**
         * @param indexingMode Indicates the indexing mode.
         * 
         * @return builder
         * 
         */
        public Builder indexingMode(IndexingMode indexingMode) {
            return indexingMode(Either.ofRight(indexingMode));
        }

        /**
         * @param spatialIndexes List of spatial specifics
         * 
         * @return builder
         * 
         */
        public Builder spatialIndexes(@Nullable Output> spatialIndexes) {
            $.spatialIndexes = spatialIndexes;
            return this;
        }

        /**
         * @param spatialIndexes List of spatial specifics
         * 
         * @return builder
         * 
         */
        public Builder spatialIndexes(List spatialIndexes) {
            return spatialIndexes(Output.of(spatialIndexes));
        }

        /**
         * @param spatialIndexes List of spatial specifics
         * 
         * @return builder
         * 
         */
        public Builder spatialIndexes(SpatialSpecArgs... spatialIndexes) {
            return spatialIndexes(List.of(spatialIndexes));
        }

        public IndexingPolicyArgs build() {
            $.indexingMode = Codegen.stringProp("indexingMode").left(IndexingMode.class).output().arg($.indexingMode).def("consistent").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy