
commonMain.aws.sdk.kotlin.services.voiceid.model.CreateDomainRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.voiceid.model
public class CreateDomainRequest private constructor(builder: Builder) {
/**
* The idempotency token for creating a new domain. If not provided, Amazon Web Services SDK populates this field.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* A brief description of the domain.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the domain.
*/
public val name: kotlin.String? = builder.name
/**
* The configuration, containing the KMS key identifier, to be used by Voice ID for the server-side encryption of your data. Refer to [ Amazon Connect Voice ID encryption at rest](https://docs.aws.amazon.com/connect/latest/adminguide/encryption-at-rest.html#encryption-at-rest-voiceid) for more details on how the KMS key is used.
*/
public val serverSideEncryptionConfiguration: aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration? = builder.serverSideEncryptionConfiguration
/**
* A list of tags you want added to the domain.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.voiceid.model.CreateDomainRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDomainRequest(")
append("clientToken=$clientToken,")
append("description=*** Sensitive Data Redacted ***,")
append("name=*** Sensitive Data Redacted ***,")
append("serverSideEncryptionConfiguration=$serverSideEncryptionConfiguration,")
append("tags=$tags)")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (serverSideEncryptionConfiguration?.hashCode() ?: 0)
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 CreateDomainRequest
if (clientToken != other.clientToken) return false
if (description != other.description) return false
if (name != other.name) return false
if (serverSideEncryptionConfiguration != other.serverSideEncryptionConfiguration) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.voiceid.model.CreateDomainRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The idempotency token for creating a new domain. If not provided, Amazon Web Services SDK populates this field.
*/
public var clientToken: kotlin.String? = null
/**
* A brief description of the domain.
*/
public var description: kotlin.String? = null
/**
* The name of the domain.
*/
public var name: kotlin.String? = null
/**
* The configuration, containing the KMS key identifier, to be used by Voice ID for the server-side encryption of your data. Refer to [ Amazon Connect Voice ID encryption at rest](https://docs.aws.amazon.com/connect/latest/adminguide/encryption-at-rest.html#encryption-at-rest-voiceid) for more details on how the KMS key is used.
*/
public var serverSideEncryptionConfiguration: aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration? = null
/**
* A list of tags you want added to the domain.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.voiceid.model.CreateDomainRequest) : this() {
this.clientToken = x.clientToken
this.description = x.description
this.name = x.name
this.serverSideEncryptionConfiguration = x.serverSideEncryptionConfiguration
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.voiceid.model.CreateDomainRequest = CreateDomainRequest(this)
/**
* construct an [aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration] inside the given [block]
*/
public fun serverSideEncryptionConfiguration(block: aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration.Builder.() -> kotlin.Unit) {
this.serverSideEncryptionConfiguration = aws.sdk.kotlin.services.voiceid.model.ServerSideEncryptionConfiguration.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy