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

commonMain.aws.sdk.kotlin.services.proton.model.TemplateVersionSourceInput.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// 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