commonMain.aws.sdk.kotlin.services.ssmincidents.model.ChatChannel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssmincidents-jvm Show documentation
Show all versions of ssmincidents-jvm Show documentation
The AWS SDK for Kotlin client for SSM Incidents
// 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
}