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