commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.CreateDataProviderRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateDataProviderRequest private constructor(builder: Builder) {
/**
* A user-friendly name for the data provider.
*/
public val dataProviderName: kotlin.String? = builder.dataProviderName
/**
* A user-friendly description of the data provider.
*/
public val description: kotlin.String? = builder.description
/**
* The type of database engine for the data provider. Valid values include `"aurora"`, `"aurora-postgresql"`, `"mysql"`, `"oracle"`, `"postgres"`, `"sqlserver"`, `redshift`, `mariadb`, `mongodb`, and `docdb`. A value of `"aurora"` represents Amazon Aurora MySQL-Compatible Edition.
*/
public val engine: kotlin.String? = builder.engine
/**
* The settings in JSON format for a data provider.
*/
public val settings: aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings? = builder.settings
/**
* One or more tags to be assigned to the data provider.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.CreateDataProviderRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDataProviderRequest(")
append("dataProviderName=$dataProviderName,")
append("description=$description,")
append("engine=$engine,")
append("settings=$settings,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataProviderName?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (engine?.hashCode() ?: 0)
result = 31 * result + (settings?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as CreateDataProviderRequest
if (dataProviderName != other.dataProviderName) return false
if (description != other.description) return false
if (engine != other.engine) return false
if (settings != other.settings) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.CreateDataProviderRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A user-friendly name for the data provider.
*/
public var dataProviderName: kotlin.String? = null
/**
* A user-friendly description of the data provider.
*/
public var description: kotlin.String? = null
/**
* The type of database engine for the data provider. Valid values include `"aurora"`, `"aurora-postgresql"`, `"mysql"`, `"oracle"`, `"postgres"`, `"sqlserver"`, `redshift`, `mariadb`, `mongodb`, and `docdb`. A value of `"aurora"` represents Amazon Aurora MySQL-Compatible Edition.
*/
public var engine: kotlin.String? = null
/**
* The settings in JSON format for a data provider.
*/
public var settings: aws.sdk.kotlin.services.databasemigrationservice.model.DataProviderSettings? = null
/**
* One or more tags to be assigned to the data provider.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.CreateDataProviderRequest) : this() {
this.dataProviderName = x.dataProviderName
this.description = x.description
this.engine = x.engine
this.settings = x.settings
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.CreateDataProviderRequest = CreateDataProviderRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy