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

commonMain.aws.sdk.kotlin.services.appmesh.model.VirtualGatewayAccessLog.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appmesh.model



/**
 * The access log configuration for a virtual gateway.
 */
public sealed class VirtualGatewayAccessLog {
    /**
     * The file object to send virtual gateway access logs to.
     */
    public data class File(val value: aws.sdk.kotlin.services.appmesh.model.VirtualGatewayFileAccessLog) : aws.sdk.kotlin.services.appmesh.model.VirtualGatewayAccessLog() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.appmesh.model.VirtualGatewayAccessLog() {
    }

    /**
     * Casts this [VirtualGatewayAccessLog] as a [File] and retrieves its [aws.sdk.kotlin.services.appmesh.model.VirtualGatewayFileAccessLog] value. Throws an exception if the [VirtualGatewayAccessLog] is not a
     * [File].
     */
    public fun asFile(): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayFileAccessLog = (this as VirtualGatewayAccessLog.File).value

    /**
     * Casts this [VirtualGatewayAccessLog] as a [File] and retrieves its [aws.sdk.kotlin.services.appmesh.model.VirtualGatewayFileAccessLog] value. Returns null if the [VirtualGatewayAccessLog] is not a [File].
     */
    public fun asFileOrNull(): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayFileAccessLog? = (this as? VirtualGatewayAccessLog.File)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy