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

com.pulumi.azurenative.documentdb.outputs.IndexingPolicyResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.documentdb.outputs;

import com.pulumi.azurenative.documentdb.outputs.CompositePathResponse;
import com.pulumi.azurenative.documentdb.outputs.ExcludedPathResponse;
import com.pulumi.azurenative.documentdb.outputs.IncludedPathResponse;
import com.pulumi.azurenative.documentdb.outputs.SpatialSpecResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class IndexingPolicyResponse {
    /**
     * @return Indicates if the indexing policy is automatic
     * 
     */
    private @Nullable Boolean automatic;
    /**
     * @return List of composite path list
     * 
     */
    private @Nullable List> compositeIndexes;
    /**
     * @return List of paths to exclude from indexing
     * 
     */
    private @Nullable List excludedPaths;
    /**
     * @return List of paths to include in the indexing
     * 
     */
    private @Nullable List includedPaths;
    /**
     * @return Indicates the indexing mode.
     * 
     */
    private @Nullable String indexingMode;
    /**
     * @return List of spatial specifics
     * 
     */
    private @Nullable List spatialIndexes;

    private IndexingPolicyResponse() {}
    /**
     * @return Indicates if the indexing policy is automatic
     * 
     */
    public Optional automatic() {
        return Optional.ofNullable(this.automatic);
    }
    /**
     * @return List of composite path list
     * 
     */
    public List> compositeIndexes() {
        return this.compositeIndexes == null ? List.of() : this.compositeIndexes;
    }
    /**
     * @return List of paths to exclude from indexing
     * 
     */
    public List excludedPaths() {
        return this.excludedPaths == null ? List.of() : this.excludedPaths;
    }
    /**
     * @return List of paths to include in the indexing
     * 
     */
    public List includedPaths() {
        return this.includedPaths == null ? List.of() : this.includedPaths;
    }
    /**
     * @return Indicates the indexing mode.
     * 
     */
    public Optional indexingMode() {
        return Optional.ofNullable(this.indexingMode);
    }
    /**
     * @return List of spatial specifics
     * 
     */
    public List spatialIndexes() {
        return this.spatialIndexes == null ? List.of() : this.spatialIndexes;
    }

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

    public static Builder builder(IndexingPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean automatic;
        private @Nullable List> compositeIndexes;
        private @Nullable List excludedPaths;
        private @Nullable List includedPaths;
        private @Nullable String indexingMode;
        private @Nullable List spatialIndexes;
        public Builder() {}
        public Builder(IndexingPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.automatic = defaults.automatic;
    	      this.compositeIndexes = defaults.compositeIndexes;
    	      this.excludedPaths = defaults.excludedPaths;
    	      this.includedPaths = defaults.includedPaths;
    	      this.indexingMode = defaults.indexingMode;
    	      this.spatialIndexes = defaults.spatialIndexes;
        }

        @CustomType.Setter
        public Builder automatic(@Nullable Boolean automatic) {

            this.automatic = automatic;
            return this;
        }
        @CustomType.Setter
        public Builder compositeIndexes(@Nullable List> compositeIndexes) {

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

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

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

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

            this.spatialIndexes = spatialIndexes;
            return this;
        }
        public Builder spatialIndexes(SpatialSpecResponse... spatialIndexes) {
            return spatialIndexes(List.of(spatialIndexes));
        }
        public IndexingPolicyResponse build() {
            final var _resultValue = new IndexingPolicyResponse();
            _resultValue.automatic = automatic;
            _resultValue.compositeIndexes = compositeIndexes;
            _resultValue.excludedPaths = excludedPaths;
            _resultValue.includedPaths = includedPaths;
            _resultValue.indexingMode = indexingMode;
            _resultValue.spatialIndexes = spatialIndexes;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy