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