commonMain.aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amplifybackend-jvm Show documentation
Show all versions of amplifybackend-jvm Show documentation
The AWS SDK for Kotlin client for AmplifyBackend
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplifybackend.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Updates the configuration of the email or SMS message for the auth resource configured for your Amplify project.
*/
public class UpdateBackendAuthVerificationMessageConfig private constructor(builder: Builder) {
/**
* The type of verification message to send.
*/
public val deliveryMethod: aws.sdk.kotlin.services.amplifybackend.model.DeliveryMethod? = builder.deliveryMethod
/**
* The settings for the email message.
*/
public val emailSettings: aws.sdk.kotlin.services.amplifybackend.model.EmailSettings? = builder.emailSettings
/**
* The settings for the SMS message.
*/
public val smsSettings: aws.sdk.kotlin.services.amplifybackend.model.SmsSettings? = builder.smsSettings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateBackendAuthVerificationMessageConfig(")
append("deliveryMethod=$deliveryMethod,")
append("emailSettings=*** Sensitive Data Redacted ***,")
append("smsSettings=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deliveryMethod?.hashCode() ?: 0
result = 31 * result + (emailSettings?.hashCode() ?: 0)
result = 31 * result + (smsSettings?.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 UpdateBackendAuthVerificationMessageConfig
if (deliveryMethod != other.deliveryMethod) return false
if (emailSettings != other.emailSettings) return false
if (smsSettings != other.smsSettings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of verification message to send.
*/
public var deliveryMethod: aws.sdk.kotlin.services.amplifybackend.model.DeliveryMethod? = null
/**
* The settings for the email message.
*/
public var emailSettings: aws.sdk.kotlin.services.amplifybackend.model.EmailSettings? = null
/**
* The settings for the SMS message.
*/
public var smsSettings: aws.sdk.kotlin.services.amplifybackend.model.SmsSettings? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig) : this() {
this.deliveryMethod = x.deliveryMethod
this.emailSettings = x.emailSettings
this.smsSettings = x.smsSettings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig = UpdateBackendAuthVerificationMessageConfig(this)
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.EmailSettings] inside the given [block]
*/
public fun emailSettings(block: aws.sdk.kotlin.services.amplifybackend.model.EmailSettings.Builder.() -> kotlin.Unit) {
this.emailSettings = aws.sdk.kotlin.services.amplifybackend.model.EmailSettings.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.SmsSettings] inside the given [block]
*/
public fun smsSettings(block: aws.sdk.kotlin.services.amplifybackend.model.SmsSettings.Builder.() -> kotlin.Unit) {
this.smsSettings = aws.sdk.kotlin.services.amplifybackend.model.SmsSettings.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}