commonMain.aws.sdk.kotlin.services.dsql.model.LinkedClusterProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dsql-jvm Show documentation
Show all versions of dsql-jvm Show documentation
The AWS SDK for Kotlin client for DSQL
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dsql.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Properties of linked clusters.
*/
public class LinkedClusterProperties private constructor(builder: Builder) {
/**
* Whether deletion protection is enabled.
*/
public val deletionProtectionEnabled: kotlin.Boolean = builder.deletionProtectionEnabled
/**
* A map of key and value pairs the linked cluster is tagged with.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dsql.model.LinkedClusterProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LinkedClusterProperties(")
append("deletionProtectionEnabled=$deletionProtectionEnabled,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deletionProtectionEnabled.hashCode()
result = 31 * result + (tags?.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 LinkedClusterProperties
if (deletionProtectionEnabled != other.deletionProtectionEnabled) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dsql.model.LinkedClusterProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Whether deletion protection is enabled.
*/
public var deletionProtectionEnabled: kotlin.Boolean = true
/**
* A map of key and value pairs the linked cluster is tagged with.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dsql.model.LinkedClusterProperties) : this() {
this.deletionProtectionEnabled = x.deletionProtectionEnabled
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dsql.model.LinkedClusterProperties = LinkedClusterProperties(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy