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

com.pulumi.azure.cosmosdb.outputs.SqlContainerIndexingPolicy Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show 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.azure.cosmosdb.outputs;

import com.pulumi.azure.cosmosdb.outputs.SqlContainerIndexingPolicyCompositeIndex;
import com.pulumi.azure.cosmosdb.outputs.SqlContainerIndexingPolicyExcludedPath;
import com.pulumi.azure.cosmosdb.outputs.SqlContainerIndexingPolicyIncludedPath;
import com.pulumi.azure.cosmosdb.outputs.SqlContainerIndexingPolicySpatialIndex;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SqlContainerIndexingPolicy {
    /**
     * @return One or more `composite_index` blocks as defined below.
     * 
     */
    private @Nullable List compositeIndices;
    /**
     * @return One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * 
     */
    private @Nullable List excludedPaths;
    /**
     * @return One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * 
     */
    private @Nullable List includedPaths;
    /**
     * @return Indicates the indexing mode. Possible values include: `consistent` and `none`. Defaults to `consistent`.
     * 
     */
    private @Nullable String indexingMode;
    /**
     * @return One or more `spatial_index` blocks as defined below.
     * 
     */
    private @Nullable List spatialIndices;

    private SqlContainerIndexingPolicy() {}
    /**
     * @return One or more `composite_index` blocks as defined below.
     * 
     */
    public List compositeIndices() {
        return this.compositeIndices == null ? List.of() : this.compositeIndices;
    }
    /**
     * @return One or more `excluded_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * 
     */
    public List excludedPaths() {
        return this.excludedPaths == null ? List.of() : this.excludedPaths;
    }
    /**
     * @return One or more `included_path` blocks as defined below. Either `included_path` or `excluded_path` must contain the `path` `/*`
     * 
     */
    public List includedPaths() {
        return this.includedPaths == null ? List.of() : this.includedPaths;
    }
    /**
     * @return Indicates the indexing mode. Possible values include: `consistent` and `none`. Defaults to `consistent`.
     * 
     */
    public Optional indexingMode() {
        return Optional.ofNullable(this.indexingMode);
    }
    /**
     * @return One or more `spatial_index` blocks as defined below.
     * 
     */
    public List spatialIndices() {
        return this.spatialIndices == null ? List.of() : this.spatialIndices;
    }

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

    public static Builder builder(SqlContainerIndexingPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List compositeIndices;
        private @Nullable List excludedPaths;
        private @Nullable List includedPaths;
        private @Nullable String indexingMode;
        private @Nullable List spatialIndices;
        public Builder() {}
        public Builder(SqlContainerIndexingPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.compositeIndices = defaults.compositeIndices;
    	      this.excludedPaths = defaults.excludedPaths;
    	      this.includedPaths = defaults.includedPaths;
    	      this.indexingMode = defaults.indexingMode;
    	      this.spatialIndices = defaults.spatialIndices;
        }

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

            this.compositeIndices = compositeIndices;
            return this;
        }
        public Builder compositeIndices(SqlContainerIndexingPolicyCompositeIndex... compositeIndices) {
            return compositeIndices(List.of(compositeIndices));
        }
        @CustomType.Setter
        public Builder excludedPaths(@Nullable List excludedPaths) {

            this.excludedPaths = excludedPaths;
            return this;
        }
        public Builder excludedPaths(SqlContainerIndexingPolicyExcludedPath... excludedPaths) {
            return excludedPaths(List.of(excludedPaths));
        }
        @CustomType.Setter
        public Builder includedPaths(@Nullable List includedPaths) {

            this.includedPaths = includedPaths;
            return this;
        }
        public Builder includedPaths(SqlContainerIndexingPolicyIncludedPath... includedPaths) {
            return includedPaths(List.of(includedPaths));
        }
        @CustomType.Setter
        public Builder indexingMode(@Nullable String indexingMode) {

            this.indexingMode = indexingMode;
            return this;
        }
        @CustomType.Setter
        public Builder spatialIndices(@Nullable List spatialIndices) {

            this.spatialIndices = spatialIndices;
            return this;
        }
        public Builder spatialIndices(SqlContainerIndexingPolicySpatialIndex... spatialIndices) {
            return spatialIndices(List.of(spatialIndices));
        }
        public SqlContainerIndexingPolicy build() {
            final var _resultValue = new SqlContainerIndexingPolicy();
            _resultValue.compositeIndices = compositeIndices;
            _resultValue.excludedPaths = excludedPaths;
            _resultValue.includedPaths = includedPaths;
            _resultValue.indexingMode = indexingMode;
            _resultValue.spatialIndices = spatialIndices;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy