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

commonMain.aws.sdk.kotlin.services.ssmincidents.model.NotificationTargetItem.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 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy