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

commonMain.aws.sdk.kotlin.services.pinpointemail.model.DimensionValueSource.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pinpointemail.model

import kotlin.collections.List

/**
 * The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you want Amazon Pinpoint to use the message tags that you specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail/SendRawEmail API, choose `messageTag`. If you want Amazon Pinpoint to use your own email headers, choose `emailHeader`. If you want Amazon Pinpoint to use link tags, choose `linkTags`.
 */
public sealed class DimensionValueSource {
    public abstract val value: kotlin.String

    public object EmailHeader : aws.sdk.kotlin.services.pinpointemail.model.DimensionValueSource() {
        override val value: kotlin.String = "EMAIL_HEADER"
        override fun toString(): kotlin.String = "EmailHeader"
    }

    public object LinkTag : aws.sdk.kotlin.services.pinpointemail.model.DimensionValueSource() {
        override val value: kotlin.String = "LINK_TAG"
        override fun toString(): kotlin.String = "LinkTag"
    }

    public object MessageTag : aws.sdk.kotlin.services.pinpointemail.model.DimensionValueSource() {
        override val value: kotlin.String = "MESSAGE_TAG"
        override fun toString(): kotlin.String = "MessageTag"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointemail.model.DimensionValueSource() {
        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.pinpointemail.model.DimensionValueSource = when (value) {
            "EMAIL_HEADER" -> EmailHeader
            "LINK_TAG" -> LinkTag
            "MESSAGE_TAG" -> MessageTag
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            EmailHeader,
            LinkTag,
            MessageTag,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy