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

com.pulumi.azurenative.datamigration.inputs.MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs Maven / Gradle / Ivy

The 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Database specific information for offline MySQL to Azure Database for MySQL migration task inputs
 * 
 */
public final class MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs extends com.pulumi.resources.ResourceArgs {

    public static final MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs Empty = new MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs();

    /**
     * Name of the database
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

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

    /**
     * Mapping of source to target tables
     * 
     */
    @Import(name="tableMap")
    private @Nullable Output> tableMap;

    /**
     * @return Mapping of source to target tables
     * 
     */
    public Optional>> tableMap() {
        return Optional.ofNullable(this.tableMap);
    }

    /**
     * Name of target database. Note: Target database will be truncated before starting migration.
     * 
     */
    @Import(name="targetDatabaseName")
    private @Nullable Output targetDatabaseName;

    /**
     * @return Name of target database. Note: Target database will be truncated before starting migration.
     * 
     */
    public Optional> targetDatabaseName() {
        return Optional.ofNullable(this.targetDatabaseName);
    }

    private MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs() {}

    private MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs(MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs $) {
        this.name = $.name;
        this.tableMap = $.tableMap;
        this.targetDatabaseName = $.targetDatabaseName;
    }

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

    public static final class Builder {
        private MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs $;

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

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

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

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

        /**
         * @param tableMap Mapping of source to target tables
         * 
         * @return builder
         * 
         */
        public Builder tableMap(@Nullable Output> tableMap) {
            $.tableMap = tableMap;
            return this;
        }

        /**
         * @param tableMap Mapping of source to target tables
         * 
         * @return builder
         * 
         */
        public Builder tableMap(Map tableMap) {
            return tableMap(Output.of(tableMap));
        }

        /**
         * @param targetDatabaseName Name of target database. Note: Target database will be truncated before starting migration.
         * 
         * @return builder
         * 
         */
        public Builder targetDatabaseName(@Nullable Output targetDatabaseName) {
            $.targetDatabaseName = targetDatabaseName;
            return this;
        }

        /**
         * @param targetDatabaseName Name of target database. Note: Target database will be truncated before starting migration.
         * 
         * @return builder
         * 
         */
        public Builder targetDatabaseName(String targetDatabaseName) {
            return targetDatabaseName(Output.of(targetDatabaseName));
        }

        public MigrateMySqlAzureDbForMySqlOfflineDatabaseInputArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy