
commonMain.aws.sdk.kotlin.services.kms.model.ConnectCustomKeyStoreRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kms.model
import aws.smithy.kotlin.runtime.SdkDsl
public class ConnectCustomKeyStoreRequest private constructor(builder: Builder) {
/**
* Enter the key store ID of the custom key store that you want to connect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.
*/
public val customKeyStoreId: kotlin.String? = builder.customKeyStoreId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kms.model.ConnectCustomKeyStoreRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectCustomKeyStoreRequest(")
append("customKeyStoreId=$customKeyStoreId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = customKeyStoreId?.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 ConnectCustomKeyStoreRequest
if (customKeyStoreId != other.customKeyStoreId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kms.model.ConnectCustomKeyStoreRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Enter the key store ID of the custom key store that you want to connect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.
*/
public var customKeyStoreId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kms.model.ConnectCustomKeyStoreRequest) : this() {
this.customKeyStoreId = x.customKeyStoreId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kms.model.ConnectCustomKeyStoreRequest = ConnectCustomKeyStoreRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy