commonMain.aws.sdk.kotlin.services.ssmincidents.model.NotificationTargetItem.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 SNS targets that are notified when updates are made to an incident.
*/
public sealed class NotificationTargetItem {
/**
* The Amazon Resource Name (ARN) of the SNS topic.
*/
public data class SnsTopicArn(val value: kotlin.String) : aws.sdk.kotlin.services.ssmincidents.model.NotificationTargetItem() {
}
public object SdkUnknown : aws.sdk.kotlin.services.ssmincidents.model.NotificationTargetItem() {
}
/**
* Casts this [NotificationTargetItem] as a [SnsTopicArn] and retrieves its [kotlin.String] value. Throws an exception if the [NotificationTargetItem] is not a
* [SnsTopicArn].
*/
public fun asSnsTopicArn(): kotlin.String = (this as NotificationTargetItem.SnsTopicArn).value
/**
* Casts this [NotificationTargetItem] as a [SnsTopicArn] and retrieves its [kotlin.String] value. Returns null if the [NotificationTargetItem] is not a [SnsTopicArn].
*/
public fun asSnsTopicArnOrNull(): kotlin.String? = (this as? NotificationTargetItem.SnsTopicArn)?.value
}