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

commonMain.aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement.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.model

import kotlin.collections.List

public sealed class RequiredSignUpAttributesElement {
    public abstract val value: kotlin.String

    public object Address : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "ADDRESS"
        override fun toString(): kotlin.String = "Address"
    }

    public object Birthdate : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "BIRTHDATE"
        override fun toString(): kotlin.String = "Birthdate"
    }

    public object Email : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "EMAIL"
        override fun toString(): kotlin.String = "Email"
    }

    public object FamilyName : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "FAMILY_NAME"
        override fun toString(): kotlin.String = "FamilyName"
    }

    public object Gender : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "GENDER"
        override fun toString(): kotlin.String = "Gender"
    }

    public object GivenName : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "GIVEN_NAME"
        override fun toString(): kotlin.String = "GivenName"
    }

    public object Locale : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "LOCALE"
        override fun toString(): kotlin.String = "Locale"
    }

    public object MiddleName : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "MIDDLE_NAME"
        override fun toString(): kotlin.String = "MiddleName"
    }

    public object Name : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "NAME"
        override fun toString(): kotlin.String = "Name"
    }

    public object Nickname : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "NICKNAME"
        override fun toString(): kotlin.String = "Nickname"
    }

    public object PhoneNumber : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "PHONE_NUMBER"
        override fun toString(): kotlin.String = "PhoneNumber"
    }

    public object Picture : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "PICTURE"
        override fun toString(): kotlin.String = "Picture"
    }

    public object PreferredUsername : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "PREFERRED_USERNAME"
        override fun toString(): kotlin.String = "PreferredUsername"
    }

    public object Profile : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "PROFILE"
        override fun toString(): kotlin.String = "Profile"
    }

    public object UpdatedAt : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "UPDATED_AT"
        override fun toString(): kotlin.String = "UpdatedAt"
    }

    public object Website : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "WEBSITE"
        override fun toString(): kotlin.String = "Website"
    }

    public object ZoneInfo : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override val value: kotlin.String = "ZONE_INFO"
        override fun toString(): kotlin.String = "ZoneInfo"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement() {
        override fun toString(): kotlin.String = "SdkUnknown($value)"
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.amplifybackend.model.RequiredSignUpAttributesElement = when (value) {
            "ADDRESS" -> Address
            "BIRTHDATE" -> Birthdate
            "EMAIL" -> Email
            "FAMILY_NAME" -> FamilyName
            "GENDER" -> Gender
            "GIVEN_NAME" -> GivenName
            "LOCALE" -> Locale
            "MIDDLE_NAME" -> MiddleName
            "NAME" -> Name
            "NICKNAME" -> Nickname
            "PHONE_NUMBER" -> PhoneNumber
            "PICTURE" -> Picture
            "PREFERRED_USERNAME" -> PreferredUsername
            "PROFILE" -> Profile
            "UPDATED_AT" -> UpdatedAt
            "WEBSITE" -> Website
            "ZONE_INFO" -> ZoneInfo
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            Address,
            Birthdate,
            Email,
            FamilyName,
            Gender,
            GivenName,
            Locale,
            MiddleName,
            Name,
            Nickname,
            PhoneNumber,
            Picture,
            PreferredUsername,
            Profile,
            UpdatedAt,
            Website,
            ZoneInfo,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy