commonMain.aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig.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
/**
* Describes the Amazon Cognito user pool configuration for the authorization resource to be configured for your Amplify project on an update.
*/
public class UpdateBackendAuthUserPoolConfig private constructor(builder: Builder) {
/**
* **(DEPRECATED)** Describes the forgot password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
*/
public val forgotPassword: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthForgotPasswordConfig? = builder.forgotPassword
/**
* Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.
*/
public val mfa: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthMfaConfig? = builder.mfa
/**
* Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.
*/
public val oAuth: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthOAuthConfig? = builder.oAuth
/**
* Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
*/
public val passwordPolicy: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthPasswordPolicyConfig? = builder.passwordPolicy
/**
* Describes the email or SMS verification message for your Amazon Cognito user pool, configured as a part of your Amplify project.
*/
public val verificationMessage: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig? = builder.verificationMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateBackendAuthUserPoolConfig(")
append("forgotPassword=$forgotPassword,")
append("mfa=$mfa,")
append("oAuth=$oAuth,")
append("passwordPolicy=$passwordPolicy,")
append("verificationMessage=$verificationMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = forgotPassword?.hashCode() ?: 0
result = 31 * result + (mfa?.hashCode() ?: 0)
result = 31 * result + (oAuth?.hashCode() ?: 0)
result = 31 * result + (passwordPolicy?.hashCode() ?: 0)
result = 31 * result + (verificationMessage?.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 UpdateBackendAuthUserPoolConfig
if (forgotPassword != other.forgotPassword) return false
if (mfa != other.mfa) return false
if (oAuth != other.oAuth) return false
if (passwordPolicy != other.passwordPolicy) return false
if (verificationMessage != other.verificationMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* **(DEPRECATED)** Describes the forgot password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
*/
public var forgotPassword: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthForgotPasswordConfig? = null
/**
* Describes whether to apply multi-factor authentication policies for your Amazon Cognito user pool configured as a part of your Amplify project.
*/
public var mfa: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthMfaConfig? = null
/**
* Describes the OAuth policy and rules for your Amazon Cognito user pool, configured as a part of your Amplify project.
*/
public var oAuth: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthOAuthConfig? = null
/**
* Describes the password policy for your Amazon Cognito user pool, configured as a part of your Amplify project.
*/
public var passwordPolicy: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthPasswordPolicyConfig? = null
/**
* Describes the email or SMS verification message for your Amazon Cognito user pool, configured as a part of your Amplify project.
*/
public var verificationMessage: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig) : this() {
this.forgotPassword = x.forgotPassword
this.mfa = x.mfa
this.oAuth = x.oAuth
this.passwordPolicy = x.passwordPolicy
this.verificationMessage = x.verificationMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig = UpdateBackendAuthUserPoolConfig(this)
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthForgotPasswordConfig] inside the given [block]
*/
public fun forgotPassword(block: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthForgotPasswordConfig.Builder.() -> kotlin.Unit) {
this.forgotPassword = aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthForgotPasswordConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthMfaConfig] inside the given [block]
*/
public fun mfa(block: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthMfaConfig.Builder.() -> kotlin.Unit) {
this.mfa = aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthMfaConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthOAuthConfig] inside the given [block]
*/
public fun oAuth(block: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthOAuthConfig.Builder.() -> kotlin.Unit) {
this.oAuth = aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthOAuthConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthPasswordPolicyConfig] inside the given [block]
*/
public fun passwordPolicy(block: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthPasswordPolicyConfig.Builder.() -> kotlin.Unit) {
this.passwordPolicy = aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthPasswordPolicyConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig] inside the given [block]
*/
public fun verificationMessage(block: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig.Builder.() -> kotlin.Unit) {
this.verificationMessage = aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthVerificationMessageConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}