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

com.pulumi.azurenative.datashare.SqlDBTableDataSetMappingArgs 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.datashare;

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 SqlDBTableDataSetMappingArgs extends com.pulumi.resources.ResourceArgs {

    public static final SqlDBTableDataSetMappingArgs Empty = new SqlDBTableDataSetMappingArgs();

    /**
     * The name of the share account.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the share account.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The id of the source data set.
     * 
     */
    @Import(name="dataSetId", required=true)
    private Output dataSetId;

    /**
     * @return The id of the source data set.
     * 
     */
    public Output dataSetId() {
        return this.dataSetId;
    }

    /**
     * The name of the data set mapping to be created.
     * 
     */
    @Import(name="dataSetMappingName")
    private @Nullable Output dataSetMappingName;

    /**
     * @return The name of the data set mapping to be created.
     * 
     */
    public Optional> dataSetMappingName() {
        return Optional.ofNullable(this.dataSetMappingName);
    }

    /**
     * DatabaseName name of the sink data set
     * 
     */
    @Import(name="databaseName", required=true)
    private Output databaseName;

    /**
     * @return DatabaseName name of the sink data set
     * 
     */
    public Output databaseName() {
        return this.databaseName;
    }

    /**
     * Kind of data set mapping.
     * Expected value is 'SqlDBTable'.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return Kind of data set mapping.
     * Expected value is 'SqlDBTable'.
     * 
     */
    public Output kind() {
        return this.kind;
    }

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

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Schema of the table. Default value is dbo.
     * 
     */
    @Import(name="schemaName", required=true)
    private Output schemaName;

    /**
     * @return Schema of the table. Default value is dbo.
     * 
     */
    public Output schemaName() {
        return this.schemaName;
    }

    /**
     * The name of the share subscription which will hold the data set sink.
     * 
     */
    @Import(name="shareSubscriptionName", required=true)
    private Output shareSubscriptionName;

    /**
     * @return The name of the share subscription which will hold the data set sink.
     * 
     */
    public Output shareSubscriptionName() {
        return this.shareSubscriptionName;
    }

    /**
     * Resource id of SQL server
     * 
     */
    @Import(name="sqlServerResourceId", required=true)
    private Output sqlServerResourceId;

    /**
     * @return Resource id of SQL server
     * 
     */
    public Output sqlServerResourceId() {
        return this.sqlServerResourceId;
    }

    /**
     * SQL DB table name.
     * 
     */
    @Import(name="tableName", required=true)
    private Output tableName;

    /**
     * @return SQL DB table name.
     * 
     */
    public Output tableName() {
        return this.tableName;
    }

    private SqlDBTableDataSetMappingArgs() {}

    private SqlDBTableDataSetMappingArgs(SqlDBTableDataSetMappingArgs $) {
        this.accountName = $.accountName;
        this.dataSetId = $.dataSetId;
        this.dataSetMappingName = $.dataSetMappingName;
        this.databaseName = $.databaseName;
        this.kind = $.kind;
        this.resourceGroupName = $.resourceGroupName;
        this.schemaName = $.schemaName;
        this.shareSubscriptionName = $.shareSubscriptionName;
        this.sqlServerResourceId = $.sqlServerResourceId;
        this.tableName = $.tableName;
    }

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

    public static final class Builder {
        private SqlDBTableDataSetMappingArgs $;

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

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

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

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

        /**
         * @param dataSetId The id of the source data set.
         * 
         * @return builder
         * 
         */
        public Builder dataSetId(Output dataSetId) {
            $.dataSetId = dataSetId;
            return this;
        }

        /**
         * @param dataSetId The id of the source data set.
         * 
         * @return builder
         * 
         */
        public Builder dataSetId(String dataSetId) {
            return dataSetId(Output.of(dataSetId));
        }

        /**
         * @param dataSetMappingName The name of the data set mapping to be created.
         * 
         * @return builder
         * 
         */
        public Builder dataSetMappingName(@Nullable Output dataSetMappingName) {
            $.dataSetMappingName = dataSetMappingName;
            return this;
        }

        /**
         * @param dataSetMappingName The name of the data set mapping to be created.
         * 
         * @return builder
         * 
         */
        public Builder dataSetMappingName(String dataSetMappingName) {
            return dataSetMappingName(Output.of(dataSetMappingName));
        }

        /**
         * @param databaseName DatabaseName name of the sink data set
         * 
         * @return builder
         * 
         */
        public Builder databaseName(Output databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName DatabaseName name of the sink data set
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        /**
         * @param kind Kind of data set mapping.
         * Expected value is 'SqlDBTable'.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of data set mapping.
         * Expected value is 'SqlDBTable'.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

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

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

        /**
         * @param schemaName Schema of the table. Default value is dbo.
         * 
         * @return builder
         * 
         */
        public Builder schemaName(Output schemaName) {
            $.schemaName = schemaName;
            return this;
        }

        /**
         * @param schemaName Schema of the table. Default value is dbo.
         * 
         * @return builder
         * 
         */
        public Builder schemaName(String schemaName) {
            return schemaName(Output.of(schemaName));
        }

        /**
         * @param shareSubscriptionName The name of the share subscription which will hold the data set sink.
         * 
         * @return builder
         * 
         */
        public Builder shareSubscriptionName(Output shareSubscriptionName) {
            $.shareSubscriptionName = shareSubscriptionName;
            return this;
        }

        /**
         * @param shareSubscriptionName The name of the share subscription which will hold the data set sink.
         * 
         * @return builder
         * 
         */
        public Builder shareSubscriptionName(String shareSubscriptionName) {
            return shareSubscriptionName(Output.of(shareSubscriptionName));
        }

        /**
         * @param sqlServerResourceId Resource id of SQL server
         * 
         * @return builder
         * 
         */
        public Builder sqlServerResourceId(Output sqlServerResourceId) {
            $.sqlServerResourceId = sqlServerResourceId;
            return this;
        }

        /**
         * @param sqlServerResourceId Resource id of SQL server
         * 
         * @return builder
         * 
         */
        public Builder sqlServerResourceId(String sqlServerResourceId) {
            return sqlServerResourceId(Output.of(sqlServerResourceId));
        }

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

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

        public SqlDBTableDataSetMappingArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("SqlDBTableDataSetMappingArgs", "accountName");
            }
            if ($.dataSetId == null) {
                throw new MissingRequiredPropertyException("SqlDBTableDataSetMappingArgs", "dataSetId");
            }
            if ($.databaseName == null) {
                throw new MissingRequiredPropertyException("SqlDBTableDataSetMappingArgs", "databaseName");
            }
            $.kind = Codegen.stringProp("kind").output().arg($.kind).require();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SqlDBTableDataSetMappingArgs", "resourceGroupName");
            }
            if ($.schemaName == null) {
                throw new MissingRequiredPropertyException("SqlDBTableDataSetMappingArgs", "schemaName");
            }
            if ($.shareSubscriptionName == null) {
                throw new MissingRequiredPropertyException("SqlDBTableDataSetMappingArgs", "shareSubscriptionName");
            }
            if ($.sqlServerResourceId == null) {
                throw new MissingRequiredPropertyException("SqlDBTableDataSetMappingArgs", "sqlServerResourceId");
            }
            if ($.tableName == null) {
                throw new MissingRequiredPropertyException("SqlDBTableDataSetMappingArgs", "tableName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy