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

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

import com.pulumi.azurenative.datamigration.enums.MySqlTargetPlatformType;
import com.pulumi.azurenative.datamigration.enums.ServerLevelPermissionsGroup;
import com.pulumi.azurenative.datamigration.inputs.MySqlConnectionInfoArgs;
import com.pulumi.core.Either;
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.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Input for the task that validates MySQL database connection
 * 
 */
public final class ConnectToSourceMySqlTaskInputArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectToSourceMySqlTaskInputArgs Empty = new ConnectToSourceMySqlTaskInputArgs();

    /**
     * Permission group for validations
     * 
     */
    @Import(name="checkPermissionsGroup")
    private @Nullable Output> checkPermissionsGroup;

    /**
     * @return Permission group for validations
     * 
     */
    public Optional>> checkPermissionsGroup() {
        return Optional.ofNullable(this.checkPermissionsGroup);
    }

    /**
     * Flag for whether or not the migration is offline
     * 
     */
    @Import(name="isOfflineMigration")
    private @Nullable Output isOfflineMigration;

    /**
     * @return Flag for whether or not the migration is offline
     * 
     */
    public Optional> isOfflineMigration() {
        return Optional.ofNullable(this.isOfflineMigration);
    }

    /**
     * Information for connecting to MySQL source
     * 
     */
    @Import(name="sourceConnectionInfo", required=true)
    private Output sourceConnectionInfo;

    /**
     * @return Information for connecting to MySQL source
     * 
     */
    public Output sourceConnectionInfo() {
        return this.sourceConnectionInfo;
    }

    /**
     * Target Platform for the migration
     * 
     */
    @Import(name="targetPlatform")
    private @Nullable Output> targetPlatform;

    /**
     * @return Target Platform for the migration
     * 
     */
    public Optional>> targetPlatform() {
        return Optional.ofNullable(this.targetPlatform);
    }

    private ConnectToSourceMySqlTaskInputArgs() {}

    private ConnectToSourceMySqlTaskInputArgs(ConnectToSourceMySqlTaskInputArgs $) {
        this.checkPermissionsGroup = $.checkPermissionsGroup;
        this.isOfflineMigration = $.isOfflineMigration;
        this.sourceConnectionInfo = $.sourceConnectionInfo;
        this.targetPlatform = $.targetPlatform;
    }

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

    public static final class Builder {
        private ConnectToSourceMySqlTaskInputArgs $;

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

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

        /**
         * @param checkPermissionsGroup Permission group for validations
         * 
         * @return builder
         * 
         */
        public Builder checkPermissionsGroup(@Nullable Output> checkPermissionsGroup) {
            $.checkPermissionsGroup = checkPermissionsGroup;
            return this;
        }

        /**
         * @param checkPermissionsGroup Permission group for validations
         * 
         * @return builder
         * 
         */
        public Builder checkPermissionsGroup(Either checkPermissionsGroup) {
            return checkPermissionsGroup(Output.of(checkPermissionsGroup));
        }

        /**
         * @param checkPermissionsGroup Permission group for validations
         * 
         * @return builder
         * 
         */
        public Builder checkPermissionsGroup(String checkPermissionsGroup) {
            return checkPermissionsGroup(Either.ofLeft(checkPermissionsGroup));
        }

        /**
         * @param checkPermissionsGroup Permission group for validations
         * 
         * @return builder
         * 
         */
        public Builder checkPermissionsGroup(ServerLevelPermissionsGroup checkPermissionsGroup) {
            return checkPermissionsGroup(Either.ofRight(checkPermissionsGroup));
        }

        /**
         * @param isOfflineMigration Flag for whether or not the migration is offline
         * 
         * @return builder
         * 
         */
        public Builder isOfflineMigration(@Nullable Output isOfflineMigration) {
            $.isOfflineMigration = isOfflineMigration;
            return this;
        }

        /**
         * @param isOfflineMigration Flag for whether or not the migration is offline
         * 
         * @return builder
         * 
         */
        public Builder isOfflineMigration(Boolean isOfflineMigration) {
            return isOfflineMigration(Output.of(isOfflineMigration));
        }

        /**
         * @param sourceConnectionInfo Information for connecting to MySQL source
         * 
         * @return builder
         * 
         */
        public Builder sourceConnectionInfo(Output sourceConnectionInfo) {
            $.sourceConnectionInfo = sourceConnectionInfo;
            return this;
        }

        /**
         * @param sourceConnectionInfo Information for connecting to MySQL source
         * 
         * @return builder
         * 
         */
        public Builder sourceConnectionInfo(MySqlConnectionInfoArgs sourceConnectionInfo) {
            return sourceConnectionInfo(Output.of(sourceConnectionInfo));
        }

        /**
         * @param targetPlatform Target Platform for the migration
         * 
         * @return builder
         * 
         */
        public Builder targetPlatform(@Nullable Output> targetPlatform) {
            $.targetPlatform = targetPlatform;
            return this;
        }

        /**
         * @param targetPlatform Target Platform for the migration
         * 
         * @return builder
         * 
         */
        public Builder targetPlatform(Either targetPlatform) {
            return targetPlatform(Output.of(targetPlatform));
        }

        /**
         * @param targetPlatform Target Platform for the migration
         * 
         * @return builder
         * 
         */
        public Builder targetPlatform(String targetPlatform) {
            return targetPlatform(Either.ofLeft(targetPlatform));
        }

        /**
         * @param targetPlatform Target Platform for the migration
         * 
         * @return builder
         * 
         */
        public Builder targetPlatform(MySqlTargetPlatformType targetPlatform) {
            return targetPlatform(Either.ofRight(targetPlatform));
        }

        public ConnectToSourceMySqlTaskInputArgs build() {
            $.isOfflineMigration = Codegen.booleanProp("isOfflineMigration").output().arg($.isOfflineMigration).def(false).getNullable();
            if ($.sourceConnectionInfo == null) {
                throw new MissingRequiredPropertyException("ConnectToSourceMySqlTaskInputArgs", "sourceConnectionInfo");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy