
commonMain.aws.sdk.kotlin.services.ssmsap.model.Database.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmsap.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The SAP HANA database of the application registered with AWS Systems Manager for SAP.
*/
public class Database private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The Amazon Resource Name (ARN) of the database.
*/
public val arn: kotlin.String? = builder.arn
/**
* The ID of the component.
*/
public val componentId: kotlin.String? = builder.componentId
/**
* The credentials of the database.
*/
public val credentials: List? = builder.credentials
/**
* The ID of the SAP HANA database.
*/
public val databaseId: kotlin.String? = builder.databaseId
/**
* The name of the database.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* The type of the database.
*/
public val databaseType: aws.sdk.kotlin.services.ssmsap.model.DatabaseType? = builder.databaseType
/**
* The time at which the database was last updated.
*/
public val lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdated
/**
* The primary host of the database.
*/
public val primaryHost: kotlin.String? = builder.primaryHost
/**
* The SQL port of the database.
*/
public val sqlPort: kotlin.Int? = builder.sqlPort
/**
* The status of the database.
*/
public val status: aws.sdk.kotlin.services.ssmsap.model.DatabaseStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.Database = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Database(")
append("applicationId=$applicationId,")
append("arn=$arn,")
append("componentId=$componentId,")
append("credentials=$credentials,")
append("databaseId=$databaseId,")
append("databaseName=$databaseName,")
append("databaseType=$databaseType,")
append("lastUpdated=$lastUpdated,")
append("primaryHost=$primaryHost,")
append("sqlPort=$sqlPort,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (arn?.hashCode() ?: 0)
result = 31 * result + (componentId?.hashCode() ?: 0)
result = 31 * result + (credentials?.hashCode() ?: 0)
result = 31 * result + (databaseId?.hashCode() ?: 0)
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (databaseType?.hashCode() ?: 0)
result = 31 * result + (lastUpdated?.hashCode() ?: 0)
result = 31 * result + (primaryHost?.hashCode() ?: 0)
result = 31 * result + (sqlPort ?: 0)
result = 31 * result + (status?.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 Database
if (applicationId != other.applicationId) return false
if (arn != other.arn) return false
if (componentId != other.componentId) return false
if (credentials != other.credentials) return false
if (databaseId != other.databaseId) return false
if (databaseName != other.databaseName) return false
if (databaseType != other.databaseType) return false
if (lastUpdated != other.lastUpdated) return false
if (primaryHost != other.primaryHost) return false
if (sqlPort != other.sqlPort) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.Database = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the application.
*/
public var applicationId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the database.
*/
public var arn: kotlin.String? = null
/**
* The ID of the component.
*/
public var componentId: kotlin.String? = null
/**
* The credentials of the database.
*/
public var credentials: List? = null
/**
* The ID of the SAP HANA database.
*/
public var databaseId: kotlin.String? = null
/**
* The name of the database.
*/
public var databaseName: kotlin.String? = null
/**
* The type of the database.
*/
public var databaseType: aws.sdk.kotlin.services.ssmsap.model.DatabaseType? = null
/**
* The time at which the database was last updated.
*/
public var lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The primary host of the database.
*/
public var primaryHost: kotlin.String? = null
/**
* The SQL port of the database.
*/
public var sqlPort: kotlin.Int? = null
/**
* The status of the database.
*/
public var status: aws.sdk.kotlin.services.ssmsap.model.DatabaseStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.Database) : this() {
this.applicationId = x.applicationId
this.arn = x.arn
this.componentId = x.componentId
this.credentials = x.credentials
this.databaseId = x.databaseId
this.databaseName = x.databaseName
this.databaseType = x.databaseType
this.lastUpdated = x.lastUpdated
this.primaryHost = x.primaryHost
this.sqlPort = x.sqlPort
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.Database = Database(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy