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

commonMain.aws.sdk.kotlin.services.ssmincidents.model.DynamicSsmParameterValue.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 dynamic SSM parameter value.
 */
public sealed class DynamicSsmParameterValue {
    /**
     * Variable dynamic parameters. A parameter value is determined when an incident is created.
     */
    public data class Variable(val value: aws.sdk.kotlin.services.ssmincidents.model.VariableType) : aws.sdk.kotlin.services.ssmincidents.model.DynamicSsmParameterValue() {
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy