commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DeleteDataProviderResponse.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 DeleteDataProviderResponse private constructor(builder: Builder) {
/**
* The data provider that was deleted.
*/
public val dataProvider: aws.sdk.kotlin.services.databasemigrationservice.model.DataProvider? = builder.dataProvider
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.DeleteDataProviderResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDataProviderResponse(")
append("dataProvider=$dataProvider")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataProvider?.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 DeleteDataProviderResponse
if (dataProvider != other.dataProvider) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.DeleteDataProviderResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The data provider that was deleted.
*/
public var dataProvider: aws.sdk.kotlin.services.databasemigrationservice.model.DataProvider? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.DeleteDataProviderResponse) : this() {
this.dataProvider = x.dataProvider
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.DeleteDataProviderResponse = DeleteDataProviderResponse(this)
/**
* construct an [aws.sdk.kotlin.services.databasemigrationservice.model.DataProvider] inside the given [block]
*/
public fun dataProvider(block: aws.sdk.kotlin.services.databasemigrationservice.model.DataProvider.Builder.() -> kotlin.Unit) {
this.dataProvider = aws.sdk.kotlin.services.databasemigrationservice.model.DataProvider.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy