commonMain.aws.sdk.kotlin.services.athena.model.IdentityCenterConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athena-jvm Show documentation
Show all versions of athena-jvm Show documentation
The AWS SDK for Kotlin client for Athena
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.athena.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies whether the workgroup is IAM Identity Center supported.
*/
public class IdentityCenterConfiguration private constructor(builder: Builder) {
/**
* Specifies whether the workgroup is IAM Identity Center supported.
*/
public val enableIdentityCenter: kotlin.Boolean? = builder.enableIdentityCenter
/**
* The IAM Identity Center instance ARN that the workgroup associates to.
*/
public val identityCenterInstanceArn: kotlin.String? = builder.identityCenterInstanceArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.IdentityCenterConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IdentityCenterConfiguration(")
append("enableIdentityCenter=$enableIdentityCenter,")
append("identityCenterInstanceArn=$identityCenterInstanceArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enableIdentityCenter?.hashCode() ?: 0
result = 31 * result + (identityCenterInstanceArn?.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 IdentityCenterConfiguration
if (enableIdentityCenter != other.enableIdentityCenter) return false
if (identityCenterInstanceArn != other.identityCenterInstanceArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.IdentityCenterConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies whether the workgroup is IAM Identity Center supported.
*/
public var enableIdentityCenter: kotlin.Boolean? = null
/**
* The IAM Identity Center instance ARN that the workgroup associates to.
*/
public var identityCenterInstanceArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.IdentityCenterConfiguration) : this() {
this.enableIdentityCenter = x.enableIdentityCenter
this.identityCenterInstanceArn = x.identityCenterInstanceArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.IdentityCenterConfiguration = IdentityCenterConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}