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

com.pulumi.azurenative.datamigration.DatabaseMigrationsSqlDbArgs 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.datamigration;

import com.pulumi.azurenative.datamigration.inputs.DatabaseMigrationPropertiesSqlDbArgs;
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 DatabaseMigrationsSqlDbArgs extends com.pulumi.resources.ResourceArgs {

    public static final DatabaseMigrationsSqlDbArgs Empty = new DatabaseMigrationsSqlDbArgs();

    /**
     * Database Migration Resource properties for SQL database.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Database Migration Resource properties for SQL database.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

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

    @Import(name="sqlDbInstanceName", required=true)
    private Output sqlDbInstanceName;

    public Output sqlDbInstanceName() {
        return this.sqlDbInstanceName;
    }

    /**
     * The name of the target database.
     * 
     */
    @Import(name="targetDbName")
    private @Nullable Output targetDbName;

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

    private DatabaseMigrationsSqlDbArgs() {}

    private DatabaseMigrationsSqlDbArgs(DatabaseMigrationsSqlDbArgs $) {
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.sqlDbInstanceName = $.sqlDbInstanceName;
        this.targetDbName = $.targetDbName;
    }

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

    public static final class Builder {
        private DatabaseMigrationsSqlDbArgs $;

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

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

        /**
         * @param properties Database Migration Resource properties for SQL database.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Database Migration Resource properties for SQL database.
         * 
         * @return builder
         * 
         */
        public Builder properties(DatabaseMigrationPropertiesSqlDbArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param resourceGroupName 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 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));
        }

        public Builder sqlDbInstanceName(Output sqlDbInstanceName) {
            $.sqlDbInstanceName = sqlDbInstanceName;
            return this;
        }

        public Builder sqlDbInstanceName(String sqlDbInstanceName) {
            return sqlDbInstanceName(Output.of(sqlDbInstanceName));
        }

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

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

        public DatabaseMigrationsSqlDbArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DatabaseMigrationsSqlDbArgs", "resourceGroupName");
            }
            if ($.sqlDbInstanceName == null) {
                throw new MissingRequiredPropertyException("DatabaseMigrationsSqlDbArgs", "sqlDbInstanceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy