commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.RdsSourceConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
/**
* Contains information about the Amazon Relational Database Service (RDS) configuration.
*/
public class RdsSourceConfig private constructor(builder: Builder) {
/**
* The host name of the database.
*/
public val databaseHost: kotlin.String? = builder.databaseHost
/**
* The name of the RDS database.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* The port number where the database can be accessed.
*/
public val databasePort: kotlin.Int? = builder.databasePort
/**
* A string identifying the database instance.
*/
public val dbInstanceIdentifier: kotlin.String? = builder.dbInstanceIdentifier
/**
* The Amazon Resource Name (ARN) of the role.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
*/
public val secretManagerArn: kotlin.String? = builder.secretManagerArn
/**
* The name of the table in the database.
*/
public val tableName: kotlin.String? = builder.tableName
/**
* An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
*/
public val vpcConfiguration: aws.sdk.kotlin.services.lookoutmetrics.model.VpcConfiguration? = builder.vpcConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.RdsSourceConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RdsSourceConfig(")
append("databaseHost=$databaseHost,")
append("databaseName=$databaseName,")
append("databasePort=$databasePort,")
append("dbInstanceIdentifier=$dbInstanceIdentifier,")
append("roleArn=$roleArn,")
append("secretManagerArn=$secretManagerArn,")
append("tableName=$tableName,")
append("vpcConfiguration=$vpcConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = databaseHost?.hashCode() ?: 0
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (databasePort ?: 0)
result = 31 * result + (dbInstanceIdentifier?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (secretManagerArn?.hashCode() ?: 0)
result = 31 * result + (tableName?.hashCode() ?: 0)
result = 31 * result + (vpcConfiguration?.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 RdsSourceConfig
if (databaseHost != other.databaseHost) return false
if (databaseName != other.databaseName) return false
if (databasePort != other.databasePort) return false
if (dbInstanceIdentifier != other.dbInstanceIdentifier) return false
if (roleArn != other.roleArn) return false
if (secretManagerArn != other.secretManagerArn) return false
if (tableName != other.tableName) return false
if (vpcConfiguration != other.vpcConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.RdsSourceConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The host name of the database.
*/
public var databaseHost: kotlin.String? = null
/**
* The name of the RDS database.
*/
public var databaseName: kotlin.String? = null
/**
* The port number where the database can be accessed.
*/
public var databasePort: kotlin.Int? = null
/**
* A string identifying the database instance.
*/
public var dbInstanceIdentifier: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the role.
*/
public var roleArn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
*/
public var secretManagerArn: kotlin.String? = null
/**
* The name of the table in the database.
*/
public var tableName: kotlin.String? = null
/**
* An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
*/
public var vpcConfiguration: aws.sdk.kotlin.services.lookoutmetrics.model.VpcConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.RdsSourceConfig) : this() {
this.databaseHost = x.databaseHost
this.databaseName = x.databaseName
this.databasePort = x.databasePort
this.dbInstanceIdentifier = x.dbInstanceIdentifier
this.roleArn = x.roleArn
this.secretManagerArn = x.secretManagerArn
this.tableName = x.tableName
this.vpcConfiguration = x.vpcConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.RdsSourceConfig = RdsSourceConfig(this)
/**
* construct an [aws.sdk.kotlin.services.lookoutmetrics.model.VpcConfiguration] inside the given [block]
*/
public fun vpcConfiguration(block: aws.sdk.kotlin.services.lookoutmetrics.model.VpcConfiguration.Builder.() -> kotlin.Unit) {
this.vpcConfiguration = aws.sdk.kotlin.services.lookoutmetrics.model.VpcConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy