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

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

// *** 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.azurenative.kusto.enums.DefaultPrincipalsModificationKind;
import com.pulumi.azurenative.kusto.inputs.TableLevelSharingPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AttachedDatabaseConfigurationArgs Empty = new AttachedDatabaseConfigurationArgs();

    /**
     * The name of the attached database configuration.
     * 
     */
    @Import(name="attachedDatabaseConfigurationName")
    private @Nullable Output attachedDatabaseConfigurationName;

    /**
     * @return The name of the attached database configuration.
     * 
     */
    public Optional> attachedDatabaseConfigurationName() {
        return Optional.ofNullable(this.attachedDatabaseConfigurationName);
    }

    /**
     * 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 cluster where the databases you would like to attach reside.
     * 
     */
    @Import(name="clusterResourceId", required=true)
    private Output clusterResourceId;

    /**
     * @return The resource id of the cluster where the databases you would like to attach reside.
     * 
     */
    public Output clusterResourceId() {
        return this.clusterResourceId;
    }

    /**
     * The name of the database which you would like to attach, use * if you want to follow all current and future databases.
     * 
     */
    @Import(name="databaseName", required=true)
    private Output databaseName;

    /**
     * @return The name of the database which you would like to attach, use * if you want to follow all current and future databases.
     * 
     */
    public Output databaseName() {
        return this.databaseName;
    }

    /**
     * Overrides the original database name. Relevant only when attaching to a specific database.
     * 
     */
    @Import(name="databaseNameOverride")
    private @Nullable Output databaseNameOverride;

    /**
     * @return Overrides the original database name. Relevant only when attaching to a specific database.
     * 
     */
    public Optional> databaseNameOverride() {
        return Optional.ofNullable(this.databaseNameOverride);
    }

    /**
     * Adds a prefix to the attached databases name. When following an entire cluster, that prefix would be added to all of the databases original names from leader cluster.
     * 
     */
    @Import(name="databaseNamePrefix")
    private @Nullable Output databaseNamePrefix;

    /**
     * @return Adds a prefix to the attached databases name. When following an entire cluster, that prefix would be added to all of the databases original names from leader cluster.
     * 
     */
    public Optional> databaseNamePrefix() {
        return Optional.ofNullable(this.databaseNamePrefix);
    }

    /**
     * The default principals modification kind
     * 
     */
    @Import(name="defaultPrincipalsModificationKind", required=true)
    private Output> defaultPrincipalsModificationKind;

    /**
     * @return The default principals modification kind
     * 
     */
    public Output> defaultPrincipalsModificationKind() {
        return this.defaultPrincipalsModificationKind;
    }

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

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

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

    /**
     * Table level sharing specifications
     * 
     */
    @Import(name="tableLevelSharingProperties")
    private @Nullable Output tableLevelSharingProperties;

    /**
     * @return Table level sharing specifications
     * 
     */
    public Optional> tableLevelSharingProperties() {
        return Optional.ofNullable(this.tableLevelSharingProperties);
    }

    private AttachedDatabaseConfigurationArgs() {}

    private AttachedDatabaseConfigurationArgs(AttachedDatabaseConfigurationArgs $) {
        this.attachedDatabaseConfigurationName = $.attachedDatabaseConfigurationName;
        this.clusterName = $.clusterName;
        this.clusterResourceId = $.clusterResourceId;
        this.databaseName = $.databaseName;
        this.databaseNameOverride = $.databaseNameOverride;
        this.databaseNamePrefix = $.databaseNamePrefix;
        this.defaultPrincipalsModificationKind = $.defaultPrincipalsModificationKind;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.tableLevelSharingProperties = $.tableLevelSharingProperties;
    }

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

    public static final class Builder {
        private AttachedDatabaseConfigurationArgs $;

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

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

        /**
         * @param attachedDatabaseConfigurationName The name of the attached database configuration.
         * 
         * @return builder
         * 
         */
        public Builder attachedDatabaseConfigurationName(@Nullable Output attachedDatabaseConfigurationName) {
            $.attachedDatabaseConfigurationName = attachedDatabaseConfigurationName;
            return this;
        }

        /**
         * @param attachedDatabaseConfigurationName The name of the attached database configuration.
         * 
         * @return builder
         * 
         */
        public Builder attachedDatabaseConfigurationName(String attachedDatabaseConfigurationName) {
            return attachedDatabaseConfigurationName(Output.of(attachedDatabaseConfigurationName));
        }

        /**
         * @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 clusterResourceId The resource id of the cluster where the databases you would like to attach reside.
         * 
         * @return builder
         * 
         */
        public Builder clusterResourceId(Output clusterResourceId) {
            $.clusterResourceId = clusterResourceId;
            return this;
        }

        /**
         * @param clusterResourceId The resource id of the cluster where the databases you would like to attach reside.
         * 
         * @return builder
         * 
         */
        public Builder clusterResourceId(String clusterResourceId) {
            return clusterResourceId(Output.of(clusterResourceId));
        }

        /**
         * @param databaseName The name of the database which you would like to attach, use * if you want to follow all current and future databases.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(Output databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName The name of the database which you would like to attach, use * if you want to follow all current and future databases.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        /**
         * @param databaseNameOverride Overrides the original database name. Relevant only when attaching to a specific database.
         * 
         * @return builder
         * 
         */
        public Builder databaseNameOverride(@Nullable Output databaseNameOverride) {
            $.databaseNameOverride = databaseNameOverride;
            return this;
        }

        /**
         * @param databaseNameOverride Overrides the original database name. Relevant only when attaching to a specific database.
         * 
         * @return builder
         * 
         */
        public Builder databaseNameOverride(String databaseNameOverride) {
            return databaseNameOverride(Output.of(databaseNameOverride));
        }

        /**
         * @param databaseNamePrefix Adds a prefix to the attached databases name. When following an entire cluster, that prefix would be added to all of the databases original names from leader cluster.
         * 
         * @return builder
         * 
         */
        public Builder databaseNamePrefix(@Nullable Output databaseNamePrefix) {
            $.databaseNamePrefix = databaseNamePrefix;
            return this;
        }

        /**
         * @param databaseNamePrefix Adds a prefix to the attached databases name. When following an entire cluster, that prefix would be added to all of the databases original names from leader cluster.
         * 
         * @return builder
         * 
         */
        public Builder databaseNamePrefix(String databaseNamePrefix) {
            return databaseNamePrefix(Output.of(databaseNamePrefix));
        }

        /**
         * @param defaultPrincipalsModificationKind The default principals modification kind
         * 
         * @return builder
         * 
         */
        public Builder defaultPrincipalsModificationKind(Output> defaultPrincipalsModificationKind) {
            $.defaultPrincipalsModificationKind = defaultPrincipalsModificationKind;
            return this;
        }

        /**
         * @param defaultPrincipalsModificationKind The default principals modification kind
         * 
         * @return builder
         * 
         */
        public Builder defaultPrincipalsModificationKind(Either defaultPrincipalsModificationKind) {
            return defaultPrincipalsModificationKind(Output.of(defaultPrincipalsModificationKind));
        }

        /**
         * @param defaultPrincipalsModificationKind The default principals modification kind
         * 
         * @return builder
         * 
         */
        public Builder defaultPrincipalsModificationKind(String defaultPrincipalsModificationKind) {
            return defaultPrincipalsModificationKind(Either.ofLeft(defaultPrincipalsModificationKind));
        }

        /**
         * @param defaultPrincipalsModificationKind The default principals modification kind
         * 
         * @return builder
         * 
         */
        public Builder defaultPrincipalsModificationKind(DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) {
            return defaultPrincipalsModificationKind(Either.ofRight(defaultPrincipalsModificationKind));
        }

        /**
         * @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 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 tableLevelSharingProperties Table level sharing specifications
         * 
         * @return builder
         * 
         */
        public Builder tableLevelSharingProperties(@Nullable Output tableLevelSharingProperties) {
            $.tableLevelSharingProperties = tableLevelSharingProperties;
            return this;
        }

        /**
         * @param tableLevelSharingProperties Table level sharing specifications
         * 
         * @return builder
         * 
         */
        public Builder tableLevelSharingProperties(TableLevelSharingPropertiesArgs tableLevelSharingProperties) {
            return tableLevelSharingProperties(Output.of(tableLevelSharingProperties));
        }

        public AttachedDatabaseConfigurationArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("AttachedDatabaseConfigurationArgs", "clusterName");
            }
            if ($.clusterResourceId == null) {
                throw new MissingRequiredPropertyException("AttachedDatabaseConfigurationArgs", "clusterResourceId");
            }
            if ($.databaseName == null) {
                throw new MissingRequiredPropertyException("AttachedDatabaseConfigurationArgs", "databaseName");
            }
            if ($.defaultPrincipalsModificationKind == null) {
                throw new MissingRequiredPropertyException("AttachedDatabaseConfigurationArgs", "defaultPrincipalsModificationKind");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AttachedDatabaseConfigurationArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy