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

commonMain.aws.sdk.kotlin.services.ssmincidents.model.ChatChannel.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssmincidents.model



/**
 * The Chatbot chat channel used for collaboration during an incident.
 */
public sealed class ChatChannel {
    /**
     * The Amazon SNS targets that Chatbot uses to notify the chat channel of updates to an incident. You can also make updates to the incident through the chat channel by using the Amazon SNS topics.
     */
    public data class ChatbotSns(val value: List) : aws.sdk.kotlin.services.ssmincidents.model.ChatChannel() {
    }

    /**
     * Used to remove the chat channel from an incident record or response plan.
     */
    public data class Empty(val value: aws.sdk.kotlin.services.ssmincidents.model.EmptyChatChannel) : aws.sdk.kotlin.services.ssmincidents.model.ChatChannel() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.ssmincidents.model.ChatChannel() {
    }

    /**
     * Casts this [ChatChannel] as a [ChatbotSns] and retrieves its [List] value. Throws an exception if the [ChatChannel] is not a
     * [ChatbotSns].
     */
    public fun asChatbotSns(): List = (this as ChatChannel.ChatbotSns).value

    /**
     * Casts this [ChatChannel] as a [ChatbotSns] and retrieves its [List] value. Returns null if the [ChatChannel] is not a [ChatbotSns].
     */
    public fun asChatbotSnsOrNull(): List? = (this as? ChatChannel.ChatbotSns)?.value

    /**
     * Casts this [ChatChannel] as a [Empty] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.EmptyChatChannel] value. Throws an exception if the [ChatChannel] is not a
     * [Empty].
     */
    public fun asEmpty(): aws.sdk.kotlin.services.ssmincidents.model.EmptyChatChannel = (this as ChatChannel.Empty).value

    /**
     * Casts this [ChatChannel] as a [Empty] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.EmptyChatChannel] value. Returns null if the [ChatChannel] is not a [Empty].
     */
    public fun asEmptyOrNull(): aws.sdk.kotlin.services.ssmincidents.model.EmptyChatChannel? = (this as? ChatChannel.Empty)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy