commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.AthenaSourceConfig.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
/**
* Details about an Amazon Athena datasource.
*/
public class AthenaSourceConfig private constructor(builder: Builder) {
/**
* Settings for backtest mode.
*/
public val backTestConfiguration: aws.sdk.kotlin.services.lookoutmetrics.model.BackTestConfiguration? = builder.backTestConfiguration
/**
* The database's data catalog.
*/
public val dataCatalog: kotlin.String? = builder.dataCatalog
/**
* The database's name.
*/
public val databaseName: kotlin.String? = builder.databaseName
/**
* An IAM role that gives Amazon Lookout for Metrics permission to access the data.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The database's results path.
*/
public val s3ResultsPath: kotlin.String? = builder.s3ResultsPath
/**
* The database's table name.
*/
public val tableName: kotlin.String? = builder.tableName
/**
* The database's work group name.
*/
public val workGroupName: kotlin.String? = builder.workGroupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.AthenaSourceConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AthenaSourceConfig(")
append("backTestConfiguration=$backTestConfiguration,")
append("dataCatalog=$dataCatalog,")
append("databaseName=$databaseName,")
append("roleArn=$roleArn,")
append("s3ResultsPath=$s3ResultsPath,")
append("tableName=$tableName,")
append("workGroupName=$workGroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backTestConfiguration?.hashCode() ?: 0
result = 31 * result + (dataCatalog?.hashCode() ?: 0)
result = 31 * result + (databaseName?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (s3ResultsPath?.hashCode() ?: 0)
result = 31 * result + (tableName?.hashCode() ?: 0)
result = 31 * result + (workGroupName?.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 AthenaSourceConfig
if (backTestConfiguration != other.backTestConfiguration) return false
if (dataCatalog != other.dataCatalog) return false
if (databaseName != other.databaseName) return false
if (roleArn != other.roleArn) return false
if (s3ResultsPath != other.s3ResultsPath) return false
if (tableName != other.tableName) return false
if (workGroupName != other.workGroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.AthenaSourceConfig = Builder(this).apply(block).build()
public class Builder {
/**
* Settings for backtest mode.
*/
public var backTestConfiguration: aws.sdk.kotlin.services.lookoutmetrics.model.BackTestConfiguration? = null
/**
* The database's data catalog.
*/
public var dataCatalog: kotlin.String? = null
/**
* The database's name.
*/
public var databaseName: kotlin.String? = null
/**
* An IAM role that gives Amazon Lookout for Metrics permission to access the data.
*/
public var roleArn: kotlin.String? = null
/**
* The database's results path.
*/
public var s3ResultsPath: kotlin.String? = null
/**
* The database's table name.
*/
public var tableName: kotlin.String? = null
/**
* The database's work group name.
*/
public var workGroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.AthenaSourceConfig) : this() {
this.backTestConfiguration = x.backTestConfiguration
this.dataCatalog = x.dataCatalog
this.databaseName = x.databaseName
this.roleArn = x.roleArn
this.s3ResultsPath = x.s3ResultsPath
this.tableName = x.tableName
this.workGroupName = x.workGroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.AthenaSourceConfig = AthenaSourceConfig(this)
/**
* construct an [aws.sdk.kotlin.services.lookoutmetrics.model.BackTestConfiguration] inside the given [block]
*/
public fun backTestConfiguration(block: aws.sdk.kotlin.services.lookoutmetrics.model.BackTestConfiguration.Builder.() -> kotlin.Unit) {
this.backTestConfiguration = aws.sdk.kotlin.services.lookoutmetrics.model.BackTestConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy