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

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



/**
 * Information about third-party services integrated into a response plan.
 */
public sealed class Integration {
    /**
     * Information about the PagerDuty service where the response plan creates an incident.
     */
    public data class PagerDutyConfiguration(val value: aws.sdk.kotlin.services.ssmincidents.model.PagerDutyConfiguration) : aws.sdk.kotlin.services.ssmincidents.model.Integration() {
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy