commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.StartRecommendationsRequestEntry.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
/**
* Provides information about the source database to analyze and provide target recommendations according to the specified requirements.
*/
public class StartRecommendationsRequestEntry private constructor(builder: Builder) {
/**
* The identifier of the source database.
*/
public val databaseId: kotlin.String = requireNotNull(builder.databaseId) { "A non-null value must be provided for databaseId" }
/**
* The required target engine settings.
*/
public val settings: aws.sdk.kotlin.services.databasemigrationservice.model.RecommendationSettings? = builder.settings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.StartRecommendationsRequestEntry = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartRecommendationsRequestEntry(")
append("databaseId=$databaseId,")
append("settings=$settings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = databaseId.hashCode()
result = 31 * result + (settings?.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 StartRecommendationsRequestEntry
if (databaseId != other.databaseId) return false
if (settings != other.settings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.StartRecommendationsRequestEntry = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the source database.
*/
public var databaseId: kotlin.String? = null
/**
* The required target engine settings.
*/
public var settings: aws.sdk.kotlin.services.databasemigrationservice.model.RecommendationSettings? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.StartRecommendationsRequestEntry) : this() {
this.databaseId = x.databaseId
this.settings = x.settings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.StartRecommendationsRequestEntry = StartRecommendationsRequestEntry(this)
/**
* construct an [aws.sdk.kotlin.services.databasemigrationservice.model.RecommendationSettings] inside the given [block]
*/
public fun settings(block: aws.sdk.kotlin.services.databasemigrationservice.model.RecommendationSettings.Builder.() -> kotlin.Unit) {
this.settings = aws.sdk.kotlin.services.databasemigrationservice.model.RecommendationSettings.invoke(block)
}
internal fun correctErrors(): Builder {
if (databaseId == null) databaseId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy