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

com.pulumi.azurenative.kusto.CosmosDbDataConnectionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.kusto;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CosmosDbDataConnectionArgs Empty = new CosmosDbDataConnectionArgs();

    /**
     * The name of the Kusto cluster.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the Kusto cluster.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * The resource ID of the Cosmos DB account used to create the data connection.
     * 
     */
    @Import(name="cosmosDbAccountResourceId", required=true)
    private Output cosmosDbAccountResourceId;

    /**
     * @return The resource ID of the Cosmos DB account used to create the data connection.
     * 
     */
    public Output cosmosDbAccountResourceId() {
        return this.cosmosDbAccountResourceId;
    }

    /**
     * The name of an existing container in the Cosmos DB database.
     * 
     */
    @Import(name="cosmosDbContainer", required=true)
    private Output cosmosDbContainer;

    /**
     * @return The name of an existing container in the Cosmos DB database.
     * 
     */
    public Output cosmosDbContainer() {
        return this.cosmosDbContainer;
    }

    /**
     * The name of an existing database in the Cosmos DB account.
     * 
     */
    @Import(name="cosmosDbDatabase", required=true)
    private Output cosmosDbDatabase;

    /**
     * @return The name of an existing database in the Cosmos DB account.
     * 
     */
    public Output cosmosDbDatabase() {
        return this.cosmosDbDatabase;
    }

    /**
     * The name of the data connection.
     * 
     */
    @Import(name="dataConnectionName")
    private @Nullable Output dataConnectionName;

    /**
     * @return The name of the data connection.
     * 
     */
    public Optional> dataConnectionName() {
        return Optional.ofNullable(this.dataConnectionName);
    }

    /**
     * The name of the database in the Kusto cluster.
     * 
     */
    @Import(name="databaseName", required=true)
    private Output databaseName;

    /**
     * @return The name of the database in the Kusto cluster.
     * 
     */
    public Output databaseName() {
        return this.databaseName;
    }

    /**
     * Kind of the endpoint for the data connection
     * Expected value is 'CosmosDb'.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return Kind of the endpoint for the data connection
     * Expected value is 'CosmosDb'.
     * 
     */
    public Output kind() {
        return this.kind;
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The resource ID of a managed system or user-assigned identity. The identity is used to authenticate with Cosmos DB.
     * 
     */
    @Import(name="managedIdentityResourceId", required=true)
    private Output managedIdentityResourceId;

    /**
     * @return The resource ID of a managed system or user-assigned identity. The identity is used to authenticate with Cosmos DB.
     * 
     */
    public Output managedIdentityResourceId() {
        return this.managedIdentityResourceId;
    }

    /**
     * The name of an existing mapping rule to use when ingesting the retrieved data.
     * 
     */
    @Import(name="mappingRuleName")
    private @Nullable Output mappingRuleName;

    /**
     * @return The name of an existing mapping rule to use when ingesting the retrieved data.
     * 
     */
    public Optional> mappingRuleName() {
        return Optional.ofNullable(this.mappingRuleName);
    }

    /**
     * The name of the resource group containing the Kusto cluster.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group containing the Kusto cluster.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Optional. If defined, the data connection retrieves Cosmos DB documents created or updated after the specified retrieval start date.
     * 
     */
    @Import(name="retrievalStartDate")
    private @Nullable Output retrievalStartDate;

    /**
     * @return Optional. If defined, the data connection retrieves Cosmos DB documents created or updated after the specified retrieval start date.
     * 
     */
    public Optional> retrievalStartDate() {
        return Optional.ofNullable(this.retrievalStartDate);
    }

    /**
     * The case-sensitive name of the existing target table in your cluster. Retrieved data is ingested into this table.
     * 
     */
    @Import(name="tableName", required=true)
    private Output tableName;

    /**
     * @return The case-sensitive name of the existing target table in your cluster. Retrieved data is ingested into this table.
     * 
     */
    public Output tableName() {
        return this.tableName;
    }

    private CosmosDbDataConnectionArgs() {}

    private CosmosDbDataConnectionArgs(CosmosDbDataConnectionArgs $) {
        this.clusterName = $.clusterName;
        this.cosmosDbAccountResourceId = $.cosmosDbAccountResourceId;
        this.cosmosDbContainer = $.cosmosDbContainer;
        this.cosmosDbDatabase = $.cosmosDbDatabase;
        this.dataConnectionName = $.dataConnectionName;
        this.databaseName = $.databaseName;
        this.kind = $.kind;
        this.location = $.location;
        this.managedIdentityResourceId = $.managedIdentityResourceId;
        this.mappingRuleName = $.mappingRuleName;
        this.resourceGroupName = $.resourceGroupName;
        this.retrievalStartDate = $.retrievalStartDate;
        this.tableName = $.tableName;
    }

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

    public static final class Builder {
        private CosmosDbDataConnectionArgs $;

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

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

        /**
         * @param clusterName The name of the Kusto cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the Kusto cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param cosmosDbAccountResourceId The resource ID of the Cosmos DB account used to create the data connection.
         * 
         * @return builder
         * 
         */
        public Builder cosmosDbAccountResourceId(Output cosmosDbAccountResourceId) {
            $.cosmosDbAccountResourceId = cosmosDbAccountResourceId;
            return this;
        }

        /**
         * @param cosmosDbAccountResourceId The resource ID of the Cosmos DB account used to create the data connection.
         * 
         * @return builder
         * 
         */
        public Builder cosmosDbAccountResourceId(String cosmosDbAccountResourceId) {
            return cosmosDbAccountResourceId(Output.of(cosmosDbAccountResourceId));
        }

        /**
         * @param cosmosDbContainer The name of an existing container in the Cosmos DB database.
         * 
         * @return builder
         * 
         */
        public Builder cosmosDbContainer(Output cosmosDbContainer) {
            $.cosmosDbContainer = cosmosDbContainer;
            return this;
        }

        /**
         * @param cosmosDbContainer The name of an existing container in the Cosmos DB database.
         * 
         * @return builder
         * 
         */
        public Builder cosmosDbContainer(String cosmosDbContainer) {
            return cosmosDbContainer(Output.of(cosmosDbContainer));
        }

        /**
         * @param cosmosDbDatabase The name of an existing database in the Cosmos DB account.
         * 
         * @return builder
         * 
         */
        public Builder cosmosDbDatabase(Output cosmosDbDatabase) {
            $.cosmosDbDatabase = cosmosDbDatabase;
            return this;
        }

        /**
         * @param cosmosDbDatabase The name of an existing database in the Cosmos DB account.
         * 
         * @return builder
         * 
         */
        public Builder cosmosDbDatabase(String cosmosDbDatabase) {
            return cosmosDbDatabase(Output.of(cosmosDbDatabase));
        }

        /**
         * @param dataConnectionName The name of the data connection.
         * 
         * @return builder
         * 
         */
        public Builder dataConnectionName(@Nullable Output dataConnectionName) {
            $.dataConnectionName = dataConnectionName;
            return this;
        }

        /**
         * @param dataConnectionName The name of the data connection.
         * 
         * @return builder
         * 
         */
        public Builder dataConnectionName(String dataConnectionName) {
            return dataConnectionName(Output.of(dataConnectionName));
        }

        /**
         * @param databaseName The name of the database in the Kusto cluster.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(Output databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName The name of the database in the Kusto cluster.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        /**
         * @param kind Kind of the endpoint for the data connection
         * Expected value is 'CosmosDb'.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of the endpoint for the data connection
         * Expected value is 'CosmosDb'.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param managedIdentityResourceId The resource ID of a managed system or user-assigned identity. The identity is used to authenticate with Cosmos DB.
         * 
         * @return builder
         * 
         */
        public Builder managedIdentityResourceId(Output managedIdentityResourceId) {
            $.managedIdentityResourceId = managedIdentityResourceId;
            return this;
        }

        /**
         * @param managedIdentityResourceId The resource ID of a managed system or user-assigned identity. The identity is used to authenticate with Cosmos DB.
         * 
         * @return builder
         * 
         */
        public Builder managedIdentityResourceId(String managedIdentityResourceId) {
            return managedIdentityResourceId(Output.of(managedIdentityResourceId));
        }

        /**
         * @param mappingRuleName The name of an existing mapping rule to use when ingesting the retrieved data.
         * 
         * @return builder
         * 
         */
        public Builder mappingRuleName(@Nullable Output mappingRuleName) {
            $.mappingRuleName = mappingRuleName;
            return this;
        }

        /**
         * @param mappingRuleName The name of an existing mapping rule to use when ingesting the retrieved data.
         * 
         * @return builder
         * 
         */
        public Builder mappingRuleName(String mappingRuleName) {
            return mappingRuleName(Output.of(mappingRuleName));
        }

        /**
         * @param resourceGroupName The name of the resource group containing the Kusto cluster.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group containing the Kusto cluster.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param retrievalStartDate Optional. If defined, the data connection retrieves Cosmos DB documents created or updated after the specified retrieval start date.
         * 
         * @return builder
         * 
         */
        public Builder retrievalStartDate(@Nullable Output retrievalStartDate) {
            $.retrievalStartDate = retrievalStartDate;
            return this;
        }

        /**
         * @param retrievalStartDate Optional. If defined, the data connection retrieves Cosmos DB documents created or updated after the specified retrieval start date.
         * 
         * @return builder
         * 
         */
        public Builder retrievalStartDate(String retrievalStartDate) {
            return retrievalStartDate(Output.of(retrievalStartDate));
        }

        /**
         * @param tableName The case-sensitive name of the existing target table in your cluster. Retrieved data is ingested into this table.
         * 
         * @return builder
         * 
         */
        public Builder tableName(Output tableName) {
            $.tableName = tableName;
            return this;
        }

        /**
         * @param tableName The case-sensitive name of the existing target table in your cluster. Retrieved data is ingested into this table.
         * 
         * @return builder
         * 
         */
        public Builder tableName(String tableName) {
            return tableName(Output.of(tableName));
        }

        public CosmosDbDataConnectionArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("CosmosDbDataConnectionArgs", "clusterName");
            }
            if ($.cosmosDbAccountResourceId == null) {
                throw new MissingRequiredPropertyException("CosmosDbDataConnectionArgs", "cosmosDbAccountResourceId");
            }
            if ($.cosmosDbContainer == null) {
                throw new MissingRequiredPropertyException("CosmosDbDataConnectionArgs", "cosmosDbContainer");
            }
            if ($.cosmosDbDatabase == null) {
                throw new MissingRequiredPropertyException("CosmosDbDataConnectionArgs", "cosmosDbDatabase");
            }
            if ($.databaseName == null) {
                throw new MissingRequiredPropertyException("CosmosDbDataConnectionArgs", "databaseName");
            }
            $.kind = Codegen.stringProp("kind").output().arg($.kind).require();
            if ($.managedIdentityResourceId == null) {
                throw new MissingRequiredPropertyException("CosmosDbDataConnectionArgs", "managedIdentityResourceId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CosmosDbDataConnectionArgs", "resourceGroupName");
            }
            if ($.tableName == null) {
                throw new MissingRequiredPropertyException("CosmosDbDataConnectionArgs", "tableName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy