commonMain.aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAnalysisRuleRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetConfiguredTableAnalysisRuleRequest private constructor(builder: Builder) {
/**
* The analysis rule to be retrieved. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.
*/
public val analysisRuleType: aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAnalysisRuleType = requireNotNull(builder.analysisRuleType) { "A non-null value must be provided for analysisRuleType" }
/**
* The unique identifier for the configured table to retrieve. Currently accepts the configured table ID.
*/
public val configuredTableIdentifier: kotlin.String = requireNotNull(builder.configuredTableIdentifier) { "A non-null value must be provided for configuredTableIdentifier" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAnalysisRuleRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConfiguredTableAnalysisRuleRequest(")
append("analysisRuleType=$analysisRuleType,")
append("configuredTableIdentifier=$configuredTableIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analysisRuleType.hashCode()
result = 31 * result + (configuredTableIdentifier.hashCode())
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 GetConfiguredTableAnalysisRuleRequest
if (analysisRuleType != other.analysisRuleType) return false
if (configuredTableIdentifier != other.configuredTableIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAnalysisRuleRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The analysis rule to be retrieved. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.
*/
public var analysisRuleType: aws.sdk.kotlin.services.cleanrooms.model.ConfiguredTableAnalysisRuleType? = null
/**
* The unique identifier for the configured table to retrieve. Currently accepts the configured table ID.
*/
public var configuredTableIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAnalysisRuleRequest) : this() {
this.analysisRuleType = x.analysisRuleType
this.configuredTableIdentifier = x.configuredTableIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.GetConfiguredTableAnalysisRuleRequest = GetConfiguredTableAnalysisRuleRequest(this)
internal fun correctErrors(): Builder {
if (analysisRuleType == null) analysisRuleType = ConfiguredTableAnalysisRuleType.SdkUnknown("no value provided")
if (configuredTableIdentifier == null) configuredTableIdentifier = ""
return this
}
}
}