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

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

import com.pulumi.azurenative.datamigration.outputs.AzureActiveDirectoryAppResponse;
import com.pulumi.azurenative.datamigration.outputs.FileShareResponse;
import com.pulumi.azurenative.datamigration.outputs.MiSqlConnectionInfoResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateSqlServerSqlMIDatabaseInputResponse;
import com.pulumi.azurenative.datamigration.outputs.SqlConnectionInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse {
    /**
     * @return Azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage Account
     * 
     */
    private AzureActiveDirectoryAppResponse azureApp;
    /**
     * @return Backup file share information for all selected databases.
     * 
     */
    private @Nullable FileShareResponse backupFileShare;
    /**
     * @return Databases to migrate
     * 
     */
    private List selectedDatabases;
    /**
     * @return Connection information for source SQL Server
     * 
     */
    private SqlConnectionInfoResponse sourceConnectionInfo;
    /**
     * @return Fully qualified resourceId of storage
     * 
     */
    private String storageResourceId;
    /**
     * @return Connection information for Azure SQL Database Managed Instance
     * 
     */
    private MiSqlConnectionInfoResponse targetConnectionInfo;

    private ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse() {}
    /**
     * @return Azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage Account
     * 
     */
    public AzureActiveDirectoryAppResponse azureApp() {
        return this.azureApp;
    }
    /**
     * @return Backup file share information for all selected databases.
     * 
     */
    public Optional backupFileShare() {
        return Optional.ofNullable(this.backupFileShare);
    }
    /**
     * @return Databases to migrate
     * 
     */
    public List selectedDatabases() {
        return this.selectedDatabases;
    }
    /**
     * @return Connection information for source SQL Server
     * 
     */
    public SqlConnectionInfoResponse sourceConnectionInfo() {
        return this.sourceConnectionInfo;
    }
    /**
     * @return Fully qualified resourceId of storage
     * 
     */
    public String storageResourceId() {
        return this.storageResourceId;
    }
    /**
     * @return Connection information for Azure SQL Database Managed Instance
     * 
     */
    public MiSqlConnectionInfoResponse targetConnectionInfo() {
        return this.targetConnectionInfo;
    }

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

    public static Builder builder(ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private AzureActiveDirectoryAppResponse azureApp;
        private @Nullable FileShareResponse backupFileShare;
        private List selectedDatabases;
        private SqlConnectionInfoResponse sourceConnectionInfo;
        private String storageResourceId;
        private MiSqlConnectionInfoResponse targetConnectionInfo;
        public Builder() {}
        public Builder(ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.azureApp = defaults.azureApp;
    	      this.backupFileShare = defaults.backupFileShare;
    	      this.selectedDatabases = defaults.selectedDatabases;
    	      this.sourceConnectionInfo = defaults.sourceConnectionInfo;
    	      this.storageResourceId = defaults.storageResourceId;
    	      this.targetConnectionInfo = defaults.targetConnectionInfo;
        }

        @CustomType.Setter
        public Builder azureApp(AzureActiveDirectoryAppResponse azureApp) {
            if (azureApp == null) {
              throw new MissingRequiredPropertyException("ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse", "azureApp");
            }
            this.azureApp = azureApp;
            return this;
        }
        @CustomType.Setter
        public Builder backupFileShare(@Nullable FileShareResponse backupFileShare) {

            this.backupFileShare = backupFileShare;
            return this;
        }
        @CustomType.Setter
        public Builder selectedDatabases(List selectedDatabases) {
            if (selectedDatabases == null) {
              throw new MissingRequiredPropertyException("ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse", "selectedDatabases");
            }
            this.selectedDatabases = selectedDatabases;
            return this;
        }
        public Builder selectedDatabases(MigrateSqlServerSqlMIDatabaseInputResponse... selectedDatabases) {
            return selectedDatabases(List.of(selectedDatabases));
        }
        @CustomType.Setter
        public Builder sourceConnectionInfo(SqlConnectionInfoResponse sourceConnectionInfo) {
            if (sourceConnectionInfo == null) {
              throw new MissingRequiredPropertyException("ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse", "sourceConnectionInfo");
            }
            this.sourceConnectionInfo = sourceConnectionInfo;
            return this;
        }
        @CustomType.Setter
        public Builder storageResourceId(String storageResourceId) {
            if (storageResourceId == null) {
              throw new MissingRequiredPropertyException("ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse", "storageResourceId");
            }
            this.storageResourceId = storageResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder targetConnectionInfo(MiSqlConnectionInfoResponse targetConnectionInfo) {
            if (targetConnectionInfo == null) {
              throw new MissingRequiredPropertyException("ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse", "targetConnectionInfo");
            }
            this.targetConnectionInfo = targetConnectionInfo;
            return this;
        }
        public ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse build() {
            final var _resultValue = new ValidateMigrationInputSqlServerSqlMISyncTaskInputResponse();
            _resultValue.azureApp = azureApp;
            _resultValue.backupFileShare = backupFileShare;
            _resultValue.selectedDatabases = selectedDatabases;
            _resultValue.sourceConnectionInfo = sourceConnectionInfo;
            _resultValue.storageResourceId = storageResourceId;
            _resultValue.targetConnectionInfo = targetConnectionInfo;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy