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

com.pulumi.azurenative.documentdb.inputs.SpatialSpecArgs 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.inputs;

import com.pulumi.azurenative.documentdb.enums.SpatialType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class SpatialSpecArgs extends com.pulumi.resources.ResourceArgs {

    public static final SpatialSpecArgs Empty = new SpatialSpecArgs();

    /**
     * The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * List of path's spatial type
     * 
     */
    @Import(name="types")
    private @Nullable Output>> types;

    /**
     * @return List of path's spatial type
     * 
     */
    public Optional>>> types() {
        return Optional.ofNullable(this.types);
    }

    private SpatialSpecArgs() {}

    private SpatialSpecArgs(SpatialSpecArgs $) {
        this.path = $.path;
        this.types = $.types;
    }

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

    public static final class Builder {
        private SpatialSpecArgs $;

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

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

        /**
         * @param path The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*)
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param types List of path's spatial type
         * 
         * @return builder
         * 
         */
        public Builder types(@Nullable Output>> types) {
            $.types = types;
            return this;
        }

        /**
         * @param types List of path's spatial type
         * 
         * @return builder
         * 
         */
        public Builder types(List> types) {
            return types(Output.of(types));
        }

        /**
         * @param types List of path's spatial type
         * 
         * @return builder
         * 
         */
        public Builder types(Either... types) {
            return types(List.of(types));
        }

        public SpatialSpecArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy