
commonMain.aws.sdk.kotlin.services.appmesh.model.Backend.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appmesh.model
/**
* An object that represents the backends that a virtual node is expected to send outbound traffic to.
*/
public sealed class Backend {
/**
* Specifies a virtual service to use as a backend.
*/
public data class VirtualService(val value: aws.sdk.kotlin.services.appmesh.model.VirtualServiceBackend) : aws.sdk.kotlin.services.appmesh.model.Backend() {
}
public object SdkUnknown : aws.sdk.kotlin.services.appmesh.model.Backend() {
}
/**
* Casts this [Backend] as a [VirtualService] and retrieves its [aws.sdk.kotlin.services.appmesh.model.VirtualServiceBackend] value. Throws an exception if the [Backend] is not a
* [VirtualService].
*/
public fun asVirtualService(): aws.sdk.kotlin.services.appmesh.model.VirtualServiceBackend = (this as Backend.VirtualService).value
/**
* Casts this [Backend] as a [VirtualService] and retrieves its [aws.sdk.kotlin.services.appmesh.model.VirtualServiceBackend] value. Returns null if the [Backend] is not a [VirtualService].
*/
public fun asVirtualServiceOrNull(): aws.sdk.kotlin.services.appmesh.model.VirtualServiceBackend? = (this as? Backend.VirtualService)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy