commonMain.aws.sdk.kotlin.services.proton.model.TemplateVersionSourceInput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proton-jvm Show documentation
Show all versions of proton-jvm Show documentation
The AWS SDK for Kotlin client for Proton
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
/**
* Template version source data.
*/
public sealed class TemplateVersionSourceInput {
/**
* An S3 source object that includes the template bundle S3 path and name for a template minor version.
*/
public data class S3(val value: aws.sdk.kotlin.services.proton.model.S3ObjectSource) : aws.sdk.kotlin.services.proton.model.TemplateVersionSourceInput() {
}
public object SdkUnknown : aws.sdk.kotlin.services.proton.model.TemplateVersionSourceInput() {
}
/**
* Casts this [TemplateVersionSourceInput] as a [S3] and retrieves its [aws.sdk.kotlin.services.proton.model.S3ObjectSource] value. Throws an exception if the [TemplateVersionSourceInput] is not a
* [S3].
*/
public fun asS3(): aws.sdk.kotlin.services.proton.model.S3ObjectSource = (this as TemplateVersionSourceInput.S3).value
/**
* Casts this [TemplateVersionSourceInput] as a [S3] and retrieves its [aws.sdk.kotlin.services.proton.model.S3ObjectSource] value. Returns null if the [TemplateVersionSourceInput] is not a [S3].
*/
public fun asS3OrNull(): aws.sdk.kotlin.services.proton.model.S3ObjectSource? = (this as? TemplateVersionSourceInput.S3)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy