commonMain.aws.sdk.kotlin.services.pinpointemail.model.TlsPolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointemail-jvm Show documentation
Show all versions of pinpointemail-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint Email
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointemail.model
import kotlin.collections.List
/**
* Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). If the value is `Require`, messages are only delivered if a TLS connection can be established. If the value is `Optional`, messages can be delivered in plain text if a TLS connection can't be established.
*/
public sealed class TlsPolicy {
public abstract val value: kotlin.String
public object Optional : aws.sdk.kotlin.services.pinpointemail.model.TlsPolicy() {
override val value: kotlin.String = "OPTIONAL"
override fun toString(): kotlin.String = "Optional"
}
public object Require : aws.sdk.kotlin.services.pinpointemail.model.TlsPolicy() {
override val value: kotlin.String = "REQUIRE"
override fun toString(): kotlin.String = "Require"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointemail.model.TlsPolicy() {
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.TlsPolicy = when (value) {
"OPTIONAL" -> Optional
"REQUIRE" -> Require
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Optional,
Require,
)
}
}