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

com.pulumi.azurenative.sql.ManagedDatabaseSensitivityLabelArgs 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.sql;

import com.pulumi.azurenative.sql.enums.SensitivityLabelRank;
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 ManagedDatabaseSensitivityLabelArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagedDatabaseSensitivityLabelArgs Empty = new ManagedDatabaseSensitivityLabelArgs();

    /**
     * The name of the column.
     * 
     */
    @Import(name="columnName", required=true)
    private Output columnName;

    /**
     * @return The name of the column.
     * 
     */
    public Output columnName() {
        return this.columnName;
    }

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

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

    /**
     * The information type.
     * 
     */
    @Import(name="informationType")
    private @Nullable Output informationType;

    /**
     * @return The information type.
     * 
     */
    public Optional> informationType() {
        return Optional.ofNullable(this.informationType);
    }

    /**
     * The information type ID.
     * 
     */
    @Import(name="informationTypeId")
    private @Nullable Output informationTypeId;

    /**
     * @return The information type ID.
     * 
     */
    public Optional> informationTypeId() {
        return Optional.ofNullable(this.informationTypeId);
    }

    /**
     * The label ID.
     * 
     */
    @Import(name="labelId")
    private @Nullable Output labelId;

    /**
     * @return The label ID.
     * 
     */
    public Optional> labelId() {
        return Optional.ofNullable(this.labelId);
    }

    /**
     * The label name.
     * 
     */
    @Import(name="labelName")
    private @Nullable Output labelName;

    /**
     * @return The label name.
     * 
     */
    public Optional> labelName() {
        return Optional.ofNullable(this.labelName);
    }

    /**
     * The name of the managed instance.
     * 
     */
    @Import(name="managedInstanceName", required=true)
    private Output managedInstanceName;

    /**
     * @return The name of the managed instance.
     * 
     */
    public Output managedInstanceName() {
        return this.managedInstanceName;
    }

    @Import(name="rank")
    private @Nullable Output rank;

    public Optional> rank() {
        return Optional.ofNullable(this.rank);
    }

    /**
     * The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the schema.
     * 
     */
    @Import(name="schemaName", required=true)
    private Output schemaName;

    /**
     * @return The name of the schema.
     * 
     */
    public Output schemaName() {
        return this.schemaName;
    }

    /**
     * The source of the sensitivity label.
     * 
     */
    @Import(name="sensitivityLabelSource")
    private @Nullable Output sensitivityLabelSource;

    /**
     * @return The source of the sensitivity label.
     * 
     */
    public Optional> sensitivityLabelSource() {
        return Optional.ofNullable(this.sensitivityLabelSource);
    }

    /**
     * The name of the table.
     * 
     */
    @Import(name="tableName", required=true)
    private Output tableName;

    /**
     * @return The name of the table.
     * 
     */
    public Output tableName() {
        return this.tableName;
    }

    private ManagedDatabaseSensitivityLabelArgs() {}

    private ManagedDatabaseSensitivityLabelArgs(ManagedDatabaseSensitivityLabelArgs $) {
        this.columnName = $.columnName;
        this.databaseName = $.databaseName;
        this.informationType = $.informationType;
        this.informationTypeId = $.informationTypeId;
        this.labelId = $.labelId;
        this.labelName = $.labelName;
        this.managedInstanceName = $.managedInstanceName;
        this.rank = $.rank;
        this.resourceGroupName = $.resourceGroupName;
        this.schemaName = $.schemaName;
        this.sensitivityLabelSource = $.sensitivityLabelSource;
        this.tableName = $.tableName;
    }

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

    public static final class Builder {
        private ManagedDatabaseSensitivityLabelArgs $;

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

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

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

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

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

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

        /**
         * @param informationType The information type.
         * 
         * @return builder
         * 
         */
        public Builder informationType(@Nullable Output informationType) {
            $.informationType = informationType;
            return this;
        }

        /**
         * @param informationType The information type.
         * 
         * @return builder
         * 
         */
        public Builder informationType(String informationType) {
            return informationType(Output.of(informationType));
        }

        /**
         * @param informationTypeId The information type ID.
         * 
         * @return builder
         * 
         */
        public Builder informationTypeId(@Nullable Output informationTypeId) {
            $.informationTypeId = informationTypeId;
            return this;
        }

        /**
         * @param informationTypeId The information type ID.
         * 
         * @return builder
         * 
         */
        public Builder informationTypeId(String informationTypeId) {
            return informationTypeId(Output.of(informationTypeId));
        }

        /**
         * @param labelId The label ID.
         * 
         * @return builder
         * 
         */
        public Builder labelId(@Nullable Output labelId) {
            $.labelId = labelId;
            return this;
        }

        /**
         * @param labelId The label ID.
         * 
         * @return builder
         * 
         */
        public Builder labelId(String labelId) {
            return labelId(Output.of(labelId));
        }

        /**
         * @param labelName The label name.
         * 
         * @return builder
         * 
         */
        public Builder labelName(@Nullable Output labelName) {
            $.labelName = labelName;
            return this;
        }

        /**
         * @param labelName The label name.
         * 
         * @return builder
         * 
         */
        public Builder labelName(String labelName) {
            return labelName(Output.of(labelName));
        }

        /**
         * @param managedInstanceName The name of the managed instance.
         * 
         * @return builder
         * 
         */
        public Builder managedInstanceName(Output managedInstanceName) {
            $.managedInstanceName = managedInstanceName;
            return this;
        }

        /**
         * @param managedInstanceName The name of the managed instance.
         * 
         * @return builder
         * 
         */
        public Builder managedInstanceName(String managedInstanceName) {
            return managedInstanceName(Output.of(managedInstanceName));
        }

        public Builder rank(@Nullable Output rank) {
            $.rank = rank;
            return this;
        }

        public Builder rank(SensitivityLabelRank rank) {
            return rank(Output.of(rank));
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

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

        /**
         * @param sensitivityLabelSource The source of the sensitivity label.
         * 
         * @return builder
         * 
         */
        public Builder sensitivityLabelSource(@Nullable Output sensitivityLabelSource) {
            $.sensitivityLabelSource = sensitivityLabelSource;
            return this;
        }

        /**
         * @param sensitivityLabelSource The source of the sensitivity label.
         * 
         * @return builder
         * 
         */
        public Builder sensitivityLabelSource(String sensitivityLabelSource) {
            return sensitivityLabelSource(Output.of(sensitivityLabelSource));
        }

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

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

        public ManagedDatabaseSensitivityLabelArgs build() {
            if ($.columnName == null) {
                throw new MissingRequiredPropertyException("ManagedDatabaseSensitivityLabelArgs", "columnName");
            }
            if ($.databaseName == null) {
                throw new MissingRequiredPropertyException("ManagedDatabaseSensitivityLabelArgs", "databaseName");
            }
            if ($.managedInstanceName == null) {
                throw new MissingRequiredPropertyException("ManagedDatabaseSensitivityLabelArgs", "managedInstanceName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ManagedDatabaseSensitivityLabelArgs", "resourceGroupName");
            }
            if ($.schemaName == null) {
                throw new MissingRequiredPropertyException("ManagedDatabaseSensitivityLabelArgs", "schemaName");
            }
            if ($.tableName == null) {
                throw new MissingRequiredPropertyException("ManagedDatabaseSensitivityLabelArgs", "tableName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy