commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.RdsRecommendation.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 that describes a recommendation of a target engine on Amazon RDS.
*/
public class RdsRecommendation private constructor(builder: Builder) {
/**
* Supplemental information about the requirements to the recommended target database on Amazon RDS.
*/
public val requirementsToTarget: aws.sdk.kotlin.services.databasemigrationservice.model.RdsRequirements? = builder.requirementsToTarget
/**
* Supplemental information about the configuration of the recommended target database on Amazon RDS.
*/
public val targetConfiguration: aws.sdk.kotlin.services.databasemigrationservice.model.RdsConfiguration? = builder.targetConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.RdsRecommendation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RdsRecommendation(")
append("requirementsToTarget=$requirementsToTarget,")
append("targetConfiguration=$targetConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = requirementsToTarget?.hashCode() ?: 0
result = 31 * result + (targetConfiguration?.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 RdsRecommendation
if (requirementsToTarget != other.requirementsToTarget) return false
if (targetConfiguration != other.targetConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.RdsRecommendation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Supplemental information about the requirements to the recommended target database on Amazon RDS.
*/
public var requirementsToTarget: aws.sdk.kotlin.services.databasemigrationservice.model.RdsRequirements? = null
/**
* Supplemental information about the configuration of the recommended target database on Amazon RDS.
*/
public var targetConfiguration: aws.sdk.kotlin.services.databasemigrationservice.model.RdsConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.RdsRecommendation) : this() {
this.requirementsToTarget = x.requirementsToTarget
this.targetConfiguration = x.targetConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.RdsRecommendation = RdsRecommendation(this)
/**
* construct an [aws.sdk.kotlin.services.databasemigrationservice.model.RdsRequirements] inside the given [block]
*/
public fun requirementsToTarget(block: aws.sdk.kotlin.services.databasemigrationservice.model.RdsRequirements.Builder.() -> kotlin.Unit) {
this.requirementsToTarget = aws.sdk.kotlin.services.databasemigrationservice.model.RdsRequirements.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.databasemigrationservice.model.RdsConfiguration] inside the given [block]
*/
public fun targetConfiguration(block: aws.sdk.kotlin.services.databasemigrationservice.model.RdsConfiguration.Builder.() -> kotlin.Unit) {
this.targetConfiguration = aws.sdk.kotlin.services.databasemigrationservice.model.RdsConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy