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

com.pulumi.azurenative.documentdb.inputs.UniqueKeyPolicyArgs 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.inputs.UniqueKeyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
 * 
 */
public final class UniqueKeyPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final UniqueKeyPolicyArgs Empty = new UniqueKeyPolicyArgs();

    /**
     * List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
     * 
     */
    @Import(name="uniqueKeys")
    private @Nullable Output> uniqueKeys;

    /**
     * @return List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
     * 
     */
    public Optional>> uniqueKeys() {
        return Optional.ofNullable(this.uniqueKeys);
    }

    private UniqueKeyPolicyArgs() {}

    private UniqueKeyPolicyArgs(UniqueKeyPolicyArgs $) {
        this.uniqueKeys = $.uniqueKeys;
    }

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

    public static final class Builder {
        private UniqueKeyPolicyArgs $;

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

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

        /**
         * @param uniqueKeys List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
         * 
         * @return builder
         * 
         */
        public Builder uniqueKeys(@Nullable Output> uniqueKeys) {
            $.uniqueKeys = uniqueKeys;
            return this;
        }

        /**
         * @param uniqueKeys List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
         * 
         * @return builder
         * 
         */
        public Builder uniqueKeys(List uniqueKeys) {
            return uniqueKeys(Output.of(uniqueKeys));
        }

        /**
         * @param uniqueKeys List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
         * 
         * @return builder
         * 
         */
        public Builder uniqueKeys(UniqueKeyArgs... uniqueKeys) {
            return uniqueKeys(List.of(uniqueKeys));
        }

        public UniqueKeyPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy