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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databasemigrationservice.model



/**
 * Provides information that defines a data provider.
 */
public sealed class DataProviderSettings {
    /**
     * Provides information that defines a DocumentDB data provider.
     */
    public data class DocDbSettings(val value: aws.sdk.kotlin.services.databasemigrationservice.model.DocDbDataProviderSettings) : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    /**
     * Provides information that defines a MariaDB data provider.
     */
    public data class MariaDbSettings(val value: aws.sdk.kotlin.services.databasemigrationservice.model.MariaDbDataProviderSettings) : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    /**
     * Provides information that defines a Microsoft SQL Server data provider.
     */
    public data class MicrosoftSqlServerSettings(val value: aws.sdk.kotlin.services.databasemigrationservice.model.MicrosoftSqlServerDataProviderSettings) : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    /**
     * Provides information that defines a MongoDB data provider.
     */
    public data class MongoDbSettings(val value: aws.sdk.kotlin.services.databasemigrationservice.model.MongoDbDataProviderSettings) : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    /**
     * Provides information that defines a MySQL data provider.
     */
    public data class MySqlSettings(val value: aws.sdk.kotlin.services.databasemigrationservice.model.MySqlDataProviderSettings) : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    /**
     * Provides information that defines an Oracle data provider.
     */
    public data class OracleSettings(val value: aws.sdk.kotlin.services.databasemigrationservice.model.OracleDataProviderSettings) : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    /**
     * Provides information that defines a PostgreSQL data provider.
     */
    public data class PostgreSqlSettings(val value: aws.sdk.kotlin.services.databasemigrationservice.model.PostgreSqlDataProviderSettings) : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    /**
     * Provides information that defines an Amazon Redshift data provider.
     */
    public data class RedshiftSettings(val value: aws.sdk.kotlin.services.databasemigrationservice.model.RedshiftDataProviderSettings) : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings() {
    }

    /**
     * Casts this [DataProviderSettings] as a [DocDbSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.DocDbDataProviderSettings] value. Throws an exception if the [DataProviderSettings] is not a
     * [DocDbSettings].
     */
    public fun asDocDbSettings(): aws.sdk.kotlin.services.databasemigrationservice.model.DocDbDataProviderSettings = (this as DataProviderSettings.DocDbSettings).value

    /**
     * Casts this [DataProviderSettings] as a [DocDbSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.DocDbDataProviderSettings] value. Returns null if the [DataProviderSettings] is not a [DocDbSettings].
     */
    public fun asDocDbSettingsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.DocDbDataProviderSettings? = (this as? DataProviderSettings.DocDbSettings)?.value

    /**
     * Casts this [DataProviderSettings] as a [MariaDbSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.MariaDbDataProviderSettings] value. Throws an exception if the [DataProviderSettings] is not a
     * [MariaDbSettings].
     */
    public fun asMariaDbSettings(): aws.sdk.kotlin.services.databasemigrationservice.model.MariaDbDataProviderSettings = (this as DataProviderSettings.MariaDbSettings).value

    /**
     * Casts this [DataProviderSettings] as a [MariaDbSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.MariaDbDataProviderSettings] value. Returns null if the [DataProviderSettings] is not a [MariaDbSettings].
     */
    public fun asMariaDbSettingsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.MariaDbDataProviderSettings? = (this as? DataProviderSettings.MariaDbSettings)?.value

    /**
     * Casts this [DataProviderSettings] as a [MicrosoftSqlServerSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.MicrosoftSqlServerDataProviderSettings] value. Throws an exception if the [DataProviderSettings] is not a
     * [MicrosoftSqlServerSettings].
     */
    public fun asMicrosoftSqlServerSettings(): aws.sdk.kotlin.services.databasemigrationservice.model.MicrosoftSqlServerDataProviderSettings = (this as DataProviderSettings.MicrosoftSqlServerSettings).value

    /**
     * Casts this [DataProviderSettings] as a [MicrosoftSqlServerSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.MicrosoftSqlServerDataProviderSettings] value. Returns null if the [DataProviderSettings] is not a [MicrosoftSqlServerSettings].
     */
    public fun asMicrosoftSqlServerSettingsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.MicrosoftSqlServerDataProviderSettings? = (this as? DataProviderSettings.MicrosoftSqlServerSettings)?.value

    /**
     * Casts this [DataProviderSettings] as a [MongoDbSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.MongoDbDataProviderSettings] value. Throws an exception if the [DataProviderSettings] is not a
     * [MongoDbSettings].
     */
    public fun asMongoDbSettings(): aws.sdk.kotlin.services.databasemigrationservice.model.MongoDbDataProviderSettings = (this as DataProviderSettings.MongoDbSettings).value

    /**
     * Casts this [DataProviderSettings] as a [MongoDbSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.MongoDbDataProviderSettings] value. Returns null if the [DataProviderSettings] is not a [MongoDbSettings].
     */
    public fun asMongoDbSettingsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.MongoDbDataProviderSettings? = (this as? DataProviderSettings.MongoDbSettings)?.value

    /**
     * Casts this [DataProviderSettings] as a [MySqlSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.MySqlDataProviderSettings] value. Throws an exception if the [DataProviderSettings] is not a
     * [MySqlSettings].
     */
    public fun asMySqlSettings(): aws.sdk.kotlin.services.databasemigrationservice.model.MySqlDataProviderSettings = (this as DataProviderSettings.MySqlSettings).value

    /**
     * Casts this [DataProviderSettings] as a [MySqlSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.MySqlDataProviderSettings] value. Returns null if the [DataProviderSettings] is not a [MySqlSettings].
     */
    public fun asMySqlSettingsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.MySqlDataProviderSettings? = (this as? DataProviderSettings.MySqlSettings)?.value

    /**
     * Casts this [DataProviderSettings] as a [OracleSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.OracleDataProviderSettings] value. Throws an exception if the [DataProviderSettings] is not a
     * [OracleSettings].
     */
    public fun asOracleSettings(): aws.sdk.kotlin.services.databasemigrationservice.model.OracleDataProviderSettings = (this as DataProviderSettings.OracleSettings).value

    /**
     * Casts this [DataProviderSettings] as a [OracleSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.OracleDataProviderSettings] value. Returns null if the [DataProviderSettings] is not a [OracleSettings].
     */
    public fun asOracleSettingsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.OracleDataProviderSettings? = (this as? DataProviderSettings.OracleSettings)?.value

    /**
     * Casts this [DataProviderSettings] as a [PostgreSqlSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.PostgreSqlDataProviderSettings] value. Throws an exception if the [DataProviderSettings] is not a
     * [PostgreSqlSettings].
     */
    public fun asPostgreSqlSettings(): aws.sdk.kotlin.services.databasemigrationservice.model.PostgreSqlDataProviderSettings = (this as DataProviderSettings.PostgreSqlSettings).value

    /**
     * Casts this [DataProviderSettings] as a [PostgreSqlSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.PostgreSqlDataProviderSettings] value. Returns null if the [DataProviderSettings] is not a [PostgreSqlSettings].
     */
    public fun asPostgreSqlSettingsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.PostgreSqlDataProviderSettings? = (this as? DataProviderSettings.PostgreSqlSettings)?.value

    /**
     * Casts this [DataProviderSettings] as a [RedshiftSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.RedshiftDataProviderSettings] value. Throws an exception if the [DataProviderSettings] is not a
     * [RedshiftSettings].
     */
    public fun asRedshiftSettings(): aws.sdk.kotlin.services.databasemigrationservice.model.RedshiftDataProviderSettings = (this as DataProviderSettings.RedshiftSettings).value

    /**
     * Casts this [DataProviderSettings] as a [RedshiftSettings] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.RedshiftDataProviderSettings] value. Returns null if the [DataProviderSettings] is not a [RedshiftSettings].
     */
    public fun asRedshiftSettingsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.RedshiftDataProviderSettings? = (this as? DataProviderSettings.RedshiftSettings)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy