commonMain.aws.sdk.kotlin.services.ssmincidents.model.FindingDetails.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
/**
* Extended textual information about the finding.
*/
public sealed class FindingDetails {
/**
* Information about the CloudFormation stack creation or update associated with the finding.
*/
public data class CloudFormationStackUpdate(val value: aws.sdk.kotlin.services.ssmincidents.model.CloudFormationStackUpdate) : aws.sdk.kotlin.services.ssmincidents.model.FindingDetails() {
}
/**
* Information about the CodeDeploy deployment associated with the finding.
*/
public data class CodeDeployDeployment(val value: aws.sdk.kotlin.services.ssmincidents.model.CodeDeployDeployment) : aws.sdk.kotlin.services.ssmincidents.model.FindingDetails() {
}
public object SdkUnknown : aws.sdk.kotlin.services.ssmincidents.model.FindingDetails() {
}
/**
* Casts this [FindingDetails] as a [CloudFormationStackUpdate] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.CloudFormationStackUpdate] value. Throws an exception if the [FindingDetails] is not a
* [CloudFormationStackUpdate].
*/
public fun asCloudFormationStackUpdate(): aws.sdk.kotlin.services.ssmincidents.model.CloudFormationStackUpdate = (this as FindingDetails.CloudFormationStackUpdate).value
/**
* Casts this [FindingDetails] as a [CloudFormationStackUpdate] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.CloudFormationStackUpdate] value. Returns null if the [FindingDetails] is not a [CloudFormationStackUpdate].
*/
public fun asCloudFormationStackUpdateOrNull(): aws.sdk.kotlin.services.ssmincidents.model.CloudFormationStackUpdate? = (this as? FindingDetails.CloudFormationStackUpdate)?.value
/**
* Casts this [FindingDetails] as a [CodeDeployDeployment] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.CodeDeployDeployment] value. Throws an exception if the [FindingDetails] is not a
* [CodeDeployDeployment].
*/
public fun asCodeDeployDeployment(): aws.sdk.kotlin.services.ssmincidents.model.CodeDeployDeployment = (this as FindingDetails.CodeDeployDeployment).value
/**
* Casts this [FindingDetails] as a [CodeDeployDeployment] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.CodeDeployDeployment] value. Returns null if the [FindingDetails] is not a [CodeDeployDeployment].
*/
public fun asCodeDeployDeploymentOrNull(): aws.sdk.kotlin.services.ssmincidents.model.CodeDeployDeployment? = (this as? FindingDetails.CodeDeployDeployment)?.value
}