
commonMain.aws.sdk.kotlin.services.apptest.model.Input.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apptest.model
/**
* Specifies the input.
*/
public sealed class Input {
/**
* The file in the input.
*/
public data class File(val value: aws.sdk.kotlin.services.apptest.model.InputFile) : aws.sdk.kotlin.services.apptest.model.Input() {
}
public object SdkUnknown : aws.sdk.kotlin.services.apptest.model.Input() {
}
/**
* Casts this [Input] as a [File] and retrieves its [aws.sdk.kotlin.services.apptest.model.InputFile] value. Throws an exception if the [Input] is not a
* [File].
*/
public fun asFile(): aws.sdk.kotlin.services.apptest.model.InputFile = (this as Input.File).value
/**
* Casts this [Input] as a [File] and retrieves its [aws.sdk.kotlin.services.apptest.model.InputFile] value. Returns null if the [Input] is not a [File].
*/
public fun asFileOrNull(): aws.sdk.kotlin.services.apptest.model.InputFile? = (this as? Input.File)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy