
commonMain.aws.sdk.kotlin.services.sns.model.CreateSmsSandboxPhoneNumberRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sns.model
public class CreateSmsSandboxPhoneNumberRequest private constructor(builder: Builder) {
/**
* The language to use for sending the OTP. The default value is `en-US`.
*/
public val languageCode: aws.sdk.kotlin.services.sns.model.LanguageCodeString? = builder.languageCode
/**
* The destination phone number to verify. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to.
*/
public val phoneNumber: kotlin.String? = builder.phoneNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sns.model.CreateSmsSandboxPhoneNumberRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSmsSandboxPhoneNumberRequest(")
append("languageCode=$languageCode,")
append("phoneNumber=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = languageCode?.hashCode() ?: 0
result = 31 * result + (phoneNumber?.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 CreateSmsSandboxPhoneNumberRequest
if (languageCode != other.languageCode) return false
if (phoneNumber != other.phoneNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sns.model.CreateSmsSandboxPhoneNumberRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The language to use for sending the OTP. The default value is `en-US`.
*/
public var languageCode: aws.sdk.kotlin.services.sns.model.LanguageCodeString? = null
/**
* The destination phone number to verify. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to.
*/
public var phoneNumber: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sns.model.CreateSmsSandboxPhoneNumberRequest) : this() {
this.languageCode = x.languageCode
this.phoneNumber = x.phoneNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sns.model.CreateSmsSandboxPhoneNumberRequest = CreateSmsSandboxPhoneNumberRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy