commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.CreateConfigurationSetRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointsmsvoicev2-jvm Show documentation
Show all versions of pinpointsmsvoicev2-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint SMS Voice V2
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoicev2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateConfigurationSetRequest private constructor(builder: Builder) {
/**
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The name to use for the new configuration set.
*/
public val configurationSetName: kotlin.String? = builder.configurationSetName
/**
* An array of key and value pair tags that's associated with the new configuration set.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.CreateConfigurationSetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateConfigurationSetRequest(")
append("clientToken=$clientToken,")
append("configurationSetName=$configurationSetName,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (configurationSetName?.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 CreateConfigurationSetRequest
if (clientToken != other.clientToken) return false
if (configurationSetName != other.configurationSetName) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.CreateConfigurationSetRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
*/
public var clientToken: kotlin.String? = null
/**
* The name to use for the new configuration set.
*/
public var configurationSetName: kotlin.String? = null
/**
* An array of key and value pair tags that's associated with the new configuration set.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.CreateConfigurationSetRequest) : this() {
this.clientToken = x.clientToken
this.configurationSetName = x.configurationSetName
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.CreateConfigurationSetRequest = CreateConfigurationSetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}