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

com.pulumi.azurenative.datamigration.outputs.DatabaseMigrationPropertiesSqlDbResponse Maven / Gradle / Ivy

// *** 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.ErrorInfoResponse;
import com.pulumi.azurenative.datamigration.outputs.SqlConnectionInformationResponse;
import com.pulumi.azurenative.datamigration.outputs.SqlDbMigrationStatusDetailsResponse;
import com.pulumi.azurenative.datamigration.outputs.SqlDbOfflineConfigurationResponse;
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 DatabaseMigrationPropertiesSqlDbResponse {
    /**
     * @return Database migration end time.
     * 
     */
    private String endedOn;
    /**
     * @return
     * Expected value is 'SqlDb'.
     * 
     */
    private String kind;
    /**
     * @return Error details in case of migration failure.
     * 
     */
    private ErrorInfoResponse migrationFailureError;
    /**
     * @return ID tracking current migration operation.
     * 
     */
    private @Nullable String migrationOperationId;
    /**
     * @return Resource Id of the Migration Service.
     * 
     */
    private @Nullable String migrationService;
    /**
     * @return Migration status.
     * 
     */
    private String migrationStatus;
    /**
     * @return Detailed migration status. Not included by default.
     * 
     */
    private SqlDbMigrationStatusDetailsResponse migrationStatusDetails;
    /**
     * @return Offline configuration.
     * 
     */
    private SqlDbOfflineConfigurationResponse offlineConfiguration;
    /**
     * @return Error message for migration provisioning failure, if any.
     * 
     */
    private @Nullable String provisioningError;
    /**
     * @return Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
     * 
     */
    private String provisioningState;
    /**
     * @return Resource Id of the target resource (SQL VM or SQL Managed Instance).
     * 
     */
    private @Nullable String scope;
    /**
     * @return Name of the source database.
     * 
     */
    private @Nullable String sourceDatabaseName;
    /**
     * @return Name of the source sql server.
     * 
     */
    private String sourceServerName;
    /**
     * @return Source SQL Server connection details.
     * 
     */
    private @Nullable SqlConnectionInformationResponse sourceSqlConnection;
    /**
     * @return Database migration start time.
     * 
     */
    private String startedOn;
    /**
     * @return List of tables to copy.
     * 
     */
    private @Nullable List tableList;
    /**
     * @return Database collation to be used for the target database.
     * 
     */
    private @Nullable String targetDatabaseCollation;
    /**
     * @return Target SQL DB connection details.
     * 
     */
    private @Nullable SqlConnectionInformationResponse targetSqlConnection;

    private DatabaseMigrationPropertiesSqlDbResponse() {}
    /**
     * @return Database migration end time.
     * 
     */
    public String endedOn() {
        return this.endedOn;
    }
    /**
     * @return
     * Expected value is 'SqlDb'.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return Error details in case of migration failure.
     * 
     */
    public ErrorInfoResponse migrationFailureError() {
        return this.migrationFailureError;
    }
    /**
     * @return ID tracking current migration operation.
     * 
     */
    public Optional migrationOperationId() {
        return Optional.ofNullable(this.migrationOperationId);
    }
    /**
     * @return Resource Id of the Migration Service.
     * 
     */
    public Optional migrationService() {
        return Optional.ofNullable(this.migrationService);
    }
    /**
     * @return Migration status.
     * 
     */
    public String migrationStatus() {
        return this.migrationStatus;
    }
    /**
     * @return Detailed migration status. Not included by default.
     * 
     */
    public SqlDbMigrationStatusDetailsResponse migrationStatusDetails() {
        return this.migrationStatusDetails;
    }
    /**
     * @return Offline configuration.
     * 
     */
    public SqlDbOfflineConfigurationResponse offlineConfiguration() {
        return this.offlineConfiguration;
    }
    /**
     * @return Error message for migration provisioning failure, if any.
     * 
     */
    public Optional provisioningError() {
        return Optional.ofNullable(this.provisioningError);
    }
    /**
     * @return Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Resource Id of the target resource (SQL VM or SQL Managed Instance).
     * 
     */
    public Optional scope() {
        return Optional.ofNullable(this.scope);
    }
    /**
     * @return Name of the source database.
     * 
     */
    public Optional sourceDatabaseName() {
        return Optional.ofNullable(this.sourceDatabaseName);
    }
    /**
     * @return Name of the source sql server.
     * 
     */
    public String sourceServerName() {
        return this.sourceServerName;
    }
    /**
     * @return Source SQL Server connection details.
     * 
     */
    public Optional sourceSqlConnection() {
        return Optional.ofNullable(this.sourceSqlConnection);
    }
    /**
     * @return Database migration start time.
     * 
     */
    public String startedOn() {
        return this.startedOn;
    }
    /**
     * @return List of tables to copy.
     * 
     */
    public List tableList() {
        return this.tableList == null ? List.of() : this.tableList;
    }
    /**
     * @return Database collation to be used for the target database.
     * 
     */
    public Optional targetDatabaseCollation() {
        return Optional.ofNullable(this.targetDatabaseCollation);
    }
    /**
     * @return Target SQL DB connection details.
     * 
     */
    public Optional targetSqlConnection() {
        return Optional.ofNullable(this.targetSqlConnection);
    }

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

    public static Builder builder(DatabaseMigrationPropertiesSqlDbResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String endedOn;
        private String kind;
        private ErrorInfoResponse migrationFailureError;
        private @Nullable String migrationOperationId;
        private @Nullable String migrationService;
        private String migrationStatus;
        private SqlDbMigrationStatusDetailsResponse migrationStatusDetails;
        private SqlDbOfflineConfigurationResponse offlineConfiguration;
        private @Nullable String provisioningError;
        private String provisioningState;
        private @Nullable String scope;
        private @Nullable String sourceDatabaseName;
        private String sourceServerName;
        private @Nullable SqlConnectionInformationResponse sourceSqlConnection;
        private String startedOn;
        private @Nullable List tableList;
        private @Nullable String targetDatabaseCollation;
        private @Nullable SqlConnectionInformationResponse targetSqlConnection;
        public Builder() {}
        public Builder(DatabaseMigrationPropertiesSqlDbResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endedOn = defaults.endedOn;
    	      this.kind = defaults.kind;
    	      this.migrationFailureError = defaults.migrationFailureError;
    	      this.migrationOperationId = defaults.migrationOperationId;
    	      this.migrationService = defaults.migrationService;
    	      this.migrationStatus = defaults.migrationStatus;
    	      this.migrationStatusDetails = defaults.migrationStatusDetails;
    	      this.offlineConfiguration = defaults.offlineConfiguration;
    	      this.provisioningError = defaults.provisioningError;
    	      this.provisioningState = defaults.provisioningState;
    	      this.scope = defaults.scope;
    	      this.sourceDatabaseName = defaults.sourceDatabaseName;
    	      this.sourceServerName = defaults.sourceServerName;
    	      this.sourceSqlConnection = defaults.sourceSqlConnection;
    	      this.startedOn = defaults.startedOn;
    	      this.tableList = defaults.tableList;
    	      this.targetDatabaseCollation = defaults.targetDatabaseCollation;
    	      this.targetSqlConnection = defaults.targetSqlConnection;
        }

        @CustomType.Setter
        public Builder endedOn(String endedOn) {
            if (endedOn == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "endedOn");
            }
            this.endedOn = endedOn;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder migrationFailureError(ErrorInfoResponse migrationFailureError) {
            if (migrationFailureError == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "migrationFailureError");
            }
            this.migrationFailureError = migrationFailureError;
            return this;
        }
        @CustomType.Setter
        public Builder migrationOperationId(@Nullable String migrationOperationId) {

            this.migrationOperationId = migrationOperationId;
            return this;
        }
        @CustomType.Setter
        public Builder migrationService(@Nullable String migrationService) {

            this.migrationService = migrationService;
            return this;
        }
        @CustomType.Setter
        public Builder migrationStatus(String migrationStatus) {
            if (migrationStatus == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "migrationStatus");
            }
            this.migrationStatus = migrationStatus;
            return this;
        }
        @CustomType.Setter
        public Builder migrationStatusDetails(SqlDbMigrationStatusDetailsResponse migrationStatusDetails) {
            if (migrationStatusDetails == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "migrationStatusDetails");
            }
            this.migrationStatusDetails = migrationStatusDetails;
            return this;
        }
        @CustomType.Setter
        public Builder offlineConfiguration(SqlDbOfflineConfigurationResponse offlineConfiguration) {
            if (offlineConfiguration == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "offlineConfiguration");
            }
            this.offlineConfiguration = offlineConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningError(@Nullable String provisioningError) {

            this.provisioningError = provisioningError;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder scope(@Nullable String scope) {

            this.scope = scope;
            return this;
        }
        @CustomType.Setter
        public Builder sourceDatabaseName(@Nullable String sourceDatabaseName) {

            this.sourceDatabaseName = sourceDatabaseName;
            return this;
        }
        @CustomType.Setter
        public Builder sourceServerName(String sourceServerName) {
            if (sourceServerName == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "sourceServerName");
            }
            this.sourceServerName = sourceServerName;
            return this;
        }
        @CustomType.Setter
        public Builder sourceSqlConnection(@Nullable SqlConnectionInformationResponse sourceSqlConnection) {

            this.sourceSqlConnection = sourceSqlConnection;
            return this;
        }
        @CustomType.Setter
        public Builder startedOn(String startedOn) {
            if (startedOn == null) {
              throw new MissingRequiredPropertyException("DatabaseMigrationPropertiesSqlDbResponse", "startedOn");
            }
            this.startedOn = startedOn;
            return this;
        }
        @CustomType.Setter
        public Builder tableList(@Nullable List tableList) {

            this.tableList = tableList;
            return this;
        }
        public Builder tableList(String... tableList) {
            return tableList(List.of(tableList));
        }
        @CustomType.Setter
        public Builder targetDatabaseCollation(@Nullable String targetDatabaseCollation) {

            this.targetDatabaseCollation = targetDatabaseCollation;
            return this;
        }
        @CustomType.Setter
        public Builder targetSqlConnection(@Nullable SqlConnectionInformationResponse targetSqlConnection) {

            this.targetSqlConnection = targetSqlConnection;
            return this;
        }
        public DatabaseMigrationPropertiesSqlDbResponse build() {
            final var _resultValue = new DatabaseMigrationPropertiesSqlDbResponse();
            _resultValue.endedOn = endedOn;
            _resultValue.kind = kind;
            _resultValue.migrationFailureError = migrationFailureError;
            _resultValue.migrationOperationId = migrationOperationId;
            _resultValue.migrationService = migrationService;
            _resultValue.migrationStatus = migrationStatus;
            _resultValue.migrationStatusDetails = migrationStatusDetails;
            _resultValue.offlineConfiguration = offlineConfiguration;
            _resultValue.provisioningError = provisioningError;
            _resultValue.provisioningState = provisioningState;
            _resultValue.scope = scope;
            _resultValue.sourceDatabaseName = sourceDatabaseName;
            _resultValue.sourceServerName = sourceServerName;
            _resultValue.sourceSqlConnection = sourceSqlConnection;
            _resultValue.startedOn = startedOn;
            _resultValue.tableList = tableList;
            _resultValue.targetDatabaseCollation = targetDatabaseCollation;
            _resultValue.targetSqlConnection = targetSqlConnection;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy