commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.SchemaShortInfoResponse.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
/**
* Describes a schema in a Fleet Advisor collector inventory.
*/
public class SchemaShortInfoResponse private constructor(builder: Builder) {
/**
* The ID of a database in a Fleet Advisor collector inventory.
*/
public val databaseId: kotlin.String? = builder.databaseId
/**
* The IP address of a database in a Fleet Advisor collector inventory.
*/
public val databaseIpAddress: kotlin.String? = builder.databaseIpAddress
/**
* The name of a database in a Fleet Advisor collector inventory.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* The ID of a schema in a Fleet Advisor collector inventory.
*/
public val schemaId: kotlin.String? = builder.schemaId
/**
* The name of a schema in a Fleet Advisor collector inventory.
*/
public val schemaName: kotlin.String? = builder.schemaName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.SchemaShortInfoResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SchemaShortInfoResponse(")
append("databaseId=$databaseId,")
append("databaseIpAddress=$databaseIpAddress,")
append("databaseName=$databaseName,")
append("schemaId=$schemaId,")
append("schemaName=$schemaName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = databaseId?.hashCode() ?: 0
result = 31 * result + (databaseIpAddress?.hashCode() ?: 0)
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (schemaId?.hashCode() ?: 0)
result = 31 * result + (schemaName?.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 SchemaShortInfoResponse
if (databaseId != other.databaseId) return false
if (databaseIpAddress != other.databaseIpAddress) return false
if (databaseName != other.databaseName) return false
if (schemaId != other.schemaId) return false
if (schemaName != other.schemaName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.SchemaShortInfoResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of a database in a Fleet Advisor collector inventory.
*/
public var databaseId: kotlin.String? = null
/**
* The IP address of a database in a Fleet Advisor collector inventory.
*/
public var databaseIpAddress: kotlin.String? = null
/**
* The name of a database in a Fleet Advisor collector inventory.
*/
public var databaseName: kotlin.String? = null
/**
* The ID of a schema in a Fleet Advisor collector inventory.
*/
public var schemaId: kotlin.String? = null
/**
* The name of a schema in a Fleet Advisor collector inventory.
*/
public var schemaName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.SchemaShortInfoResponse) : this() {
this.databaseId = x.databaseId
this.databaseIpAddress = x.databaseIpAddress
this.databaseName = x.databaseName
this.schemaId = x.schemaId
this.schemaName = x.schemaName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.SchemaShortInfoResponse = SchemaShortInfoResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy