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

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



/**
 * 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy