All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.amplifybackend.serde.UpdateBackendAuthUserPoolConfigDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.amplifybackend.serde

import aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct

internal fun serializeUpdateBackendAuthUserPoolConfigDocument(serializer: Serializer, input: UpdateBackendAuthUserPoolConfig) {
    val FORGOTPASSWORD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("forgotPassword"))
    val MFA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("mfa"))
    val OAUTH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("oAuth"))
    val PASSWORDPOLICY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("passwordPolicy"))
    val VERIFICATIONMESSAGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("verificationMessage"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(FORGOTPASSWORD_DESCRIPTOR)
        field(MFA_DESCRIPTOR)
        field(OAUTH_DESCRIPTOR)
        field(PASSWORDPOLICY_DESCRIPTOR)
        field(VERIFICATIONMESSAGE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.forgotPassword?.let { field(FORGOTPASSWORD_DESCRIPTOR, it, ::serializeUpdateBackendAuthForgotPasswordConfigDocument) }
        input.mfa?.let { field(MFA_DESCRIPTOR, it, ::serializeUpdateBackendAuthMfaConfigDocument) }
        input.oAuth?.let { field(OAUTH_DESCRIPTOR, it, ::serializeUpdateBackendAuthOAuthConfigDocument) }
        input.passwordPolicy?.let { field(PASSWORDPOLICY_DESCRIPTOR, it, ::serializeUpdateBackendAuthPasswordPolicyConfigDocument) }
        input.verificationMessage?.let { field(VERIFICATIONMESSAGE_DESCRIPTOR, it, ::serializeUpdateBackendAuthVerificationMessageConfigDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy