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

com.pulumi.azurenative.documentdb.inputs.CompositePathArgs 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.CompositePathSortOrder;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CompositePathArgs Empty = new CompositePathArgs();

    /**
     * Sort order for composite paths.
     * 
     */
    @Import(name="order")
    private @Nullable Output> order;

    /**
     * @return Sort order for composite paths.
     * 
     */
    public Optional>> order() {
        return Optional.ofNullable(this.order);
    }

    /**
     * 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);
    }

    private CompositePathArgs() {}

    private CompositePathArgs(CompositePathArgs $) {
        this.order = $.order;
        this.path = $.path;
    }

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

    public static final class Builder {
        private CompositePathArgs $;

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

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

        /**
         * @param order Sort order for composite paths.
         * 
         * @return builder
         * 
         */
        public Builder order(@Nullable Output> order) {
            $.order = order;
            return this;
        }

        /**
         * @param order Sort order for composite paths.
         * 
         * @return builder
         * 
         */
        public Builder order(Either order) {
            return order(Output.of(order));
        }

        /**
         * @param order Sort order for composite paths.
         * 
         * @return builder
         * 
         */
        public Builder order(String order) {
            return order(Either.ofLeft(order));
        }

        /**
         * @param order Sort order for composite paths.
         * 
         * @return builder
         * 
         */
        public Builder order(CompositePathSortOrder order) {
            return order(Either.ofRight(order));
        }

        /**
         * @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));
        }

        public CompositePathArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy