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

com.pulumi.azurenative.documentdb.inputs.SqlContainerResourceArgs 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.ClientEncryptionPolicyArgs;
import com.pulumi.azurenative.documentdb.inputs.ConflictResolutionPolicyArgs;
import com.pulumi.azurenative.documentdb.inputs.ContainerPartitionKeyArgs;
import com.pulumi.azurenative.documentdb.inputs.IndexingPolicyArgs;
import com.pulumi.azurenative.documentdb.inputs.UniqueKeyPolicyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Cosmos DB SQL container resource object
 * 
 */
public final class SqlContainerResourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final SqlContainerResourceArgs Empty = new SqlContainerResourceArgs();

    /**
     * Analytical TTL.
     * 
     */
    @Import(name="analyticalStorageTtl")
    private @Nullable Output analyticalStorageTtl;

    /**
     * @return Analytical TTL.
     * 
     */
    public Optional> analyticalStorageTtl() {
        return Optional.ofNullable(this.analyticalStorageTtl);
    }

    /**
     * The client encryption policy for the container.
     * 
     */
    @Import(name="clientEncryptionPolicy")
    private @Nullable Output clientEncryptionPolicy;

    /**
     * @return The client encryption policy for the container.
     * 
     */
    public Optional> clientEncryptionPolicy() {
        return Optional.ofNullable(this.clientEncryptionPolicy);
    }

    /**
     * The conflict resolution policy for the container.
     * 
     */
    @Import(name="conflictResolutionPolicy")
    private @Nullable Output conflictResolutionPolicy;

    /**
     * @return The conflict resolution policy for the container.
     * 
     */
    public Optional> conflictResolutionPolicy() {
        return Optional.ofNullable(this.conflictResolutionPolicy);
    }

    /**
     * Default time to live
     * 
     */
    @Import(name="defaultTtl")
    private @Nullable Output defaultTtl;

    /**
     * @return Default time to live
     * 
     */
    public Optional> defaultTtl() {
        return Optional.ofNullable(this.defaultTtl);
    }

    /**
     * Name of the Cosmos DB SQL container
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return Name of the Cosmos DB SQL container
     * 
     */
    public Output id() {
        return this.id;
    }

    /**
     * The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
     * 
     */
    @Import(name="indexingPolicy")
    private @Nullable Output indexingPolicy;

    /**
     * @return The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
     * 
     */
    public Optional> indexingPolicy() {
        return Optional.ofNullable(this.indexingPolicy);
    }

    /**
     * The configuration of the partition key to be used for partitioning data into multiple partitions
     * 
     */
    @Import(name="partitionKey")
    private @Nullable Output partitionKey;

    /**
     * @return The configuration of the partition key to be used for partitioning data into multiple partitions
     * 
     */
    public Optional> partitionKey() {
        return Optional.ofNullable(this.partitionKey);
    }

    /**
     * The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
     * 
     */
    @Import(name="uniqueKeyPolicy")
    private @Nullable Output uniqueKeyPolicy;

    /**
     * @return The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
     * 
     */
    public Optional> uniqueKeyPolicy() {
        return Optional.ofNullable(this.uniqueKeyPolicy);
    }

    private SqlContainerResourceArgs() {}

    private SqlContainerResourceArgs(SqlContainerResourceArgs $) {
        this.analyticalStorageTtl = $.analyticalStorageTtl;
        this.clientEncryptionPolicy = $.clientEncryptionPolicy;
        this.conflictResolutionPolicy = $.conflictResolutionPolicy;
        this.defaultTtl = $.defaultTtl;
        this.id = $.id;
        this.indexingPolicy = $.indexingPolicy;
        this.partitionKey = $.partitionKey;
        this.uniqueKeyPolicy = $.uniqueKeyPolicy;
    }

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

    public static final class Builder {
        private SqlContainerResourceArgs $;

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

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

        /**
         * @param analyticalStorageTtl Analytical TTL.
         * 
         * @return builder
         * 
         */
        public Builder analyticalStorageTtl(@Nullable Output analyticalStorageTtl) {
            $.analyticalStorageTtl = analyticalStorageTtl;
            return this;
        }

        /**
         * @param analyticalStorageTtl Analytical TTL.
         * 
         * @return builder
         * 
         */
        public Builder analyticalStorageTtl(Double analyticalStorageTtl) {
            return analyticalStorageTtl(Output.of(analyticalStorageTtl));
        }

        /**
         * @param clientEncryptionPolicy The client encryption policy for the container.
         * 
         * @return builder
         * 
         */
        public Builder clientEncryptionPolicy(@Nullable Output clientEncryptionPolicy) {
            $.clientEncryptionPolicy = clientEncryptionPolicy;
            return this;
        }

        /**
         * @param clientEncryptionPolicy The client encryption policy for the container.
         * 
         * @return builder
         * 
         */
        public Builder clientEncryptionPolicy(ClientEncryptionPolicyArgs clientEncryptionPolicy) {
            return clientEncryptionPolicy(Output.of(clientEncryptionPolicy));
        }

        /**
         * @param conflictResolutionPolicy The conflict resolution policy for the container.
         * 
         * @return builder
         * 
         */
        public Builder conflictResolutionPolicy(@Nullable Output conflictResolutionPolicy) {
            $.conflictResolutionPolicy = conflictResolutionPolicy;
            return this;
        }

        /**
         * @param conflictResolutionPolicy The conflict resolution policy for the container.
         * 
         * @return builder
         * 
         */
        public Builder conflictResolutionPolicy(ConflictResolutionPolicyArgs conflictResolutionPolicy) {
            return conflictResolutionPolicy(Output.of(conflictResolutionPolicy));
        }

        /**
         * @param defaultTtl Default time to live
         * 
         * @return builder
         * 
         */
        public Builder defaultTtl(@Nullable Output defaultTtl) {
            $.defaultTtl = defaultTtl;
            return this;
        }

        /**
         * @param defaultTtl Default time to live
         * 
         * @return builder
         * 
         */
        public Builder defaultTtl(Integer defaultTtl) {
            return defaultTtl(Output.of(defaultTtl));
        }

        /**
         * @param id Name of the Cosmos DB SQL container
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Name of the Cosmos DB SQL container
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param indexingPolicy The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
         * 
         * @return builder
         * 
         */
        public Builder indexingPolicy(@Nullable Output indexingPolicy) {
            $.indexingPolicy = indexingPolicy;
            return this;
        }

        /**
         * @param indexingPolicy The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container
         * 
         * @return builder
         * 
         */
        public Builder indexingPolicy(IndexingPolicyArgs indexingPolicy) {
            return indexingPolicy(Output.of(indexingPolicy));
        }

        /**
         * @param partitionKey The configuration of the partition key to be used for partitioning data into multiple partitions
         * 
         * @return builder
         * 
         */
        public Builder partitionKey(@Nullable Output partitionKey) {
            $.partitionKey = partitionKey;
            return this;
        }

        /**
         * @param partitionKey The configuration of the partition key to be used for partitioning data into multiple partitions
         * 
         * @return builder
         * 
         */
        public Builder partitionKey(ContainerPartitionKeyArgs partitionKey) {
            return partitionKey(Output.of(partitionKey));
        }

        /**
         * @param uniqueKeyPolicy The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
         * 
         * @return builder
         * 
         */
        public Builder uniqueKeyPolicy(@Nullable Output uniqueKeyPolicy) {
            $.uniqueKeyPolicy = uniqueKeyPolicy;
            return this;
        }

        /**
         * @param uniqueKeyPolicy The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
         * 
         * @return builder
         * 
         */
        public Builder uniqueKeyPolicy(UniqueKeyPolicyArgs uniqueKeyPolicy) {
            return uniqueKeyPolicy(Output.of(uniqueKeyPolicy));
        }

        public SqlContainerResourceArgs build() {
            if ($.id == null) {
                throw new MissingRequiredPropertyException("SqlContainerResourceArgs", "id");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy