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

commonMain.aws.sdk.kotlin.services.vpclattice.model.Matcher.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.vpclattice.model



/**
 * Describes the codes to use when checking for a successful response from a target for health checks.
 */
public sealed class Matcher {
    /**
     * The HTTP code to use when checking for a successful response from a target.
     */
    public data class HttpCode(val value: kotlin.String) : aws.sdk.kotlin.services.vpclattice.model.Matcher() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.vpclattice.model.Matcher() {
    }

    /**
     * Casts this [Matcher] as a [HttpCode] and retrieves its [kotlin.String] value. Throws an exception if the [Matcher] is not a
     * [HttpCode].
     */
    public fun asHttpCode(): kotlin.String = (this as Matcher.HttpCode).value

    /**
     * Casts this [Matcher] as a [HttpCode] and retrieves its [kotlin.String] value. Returns null if the [Matcher] is not a [HttpCode].
     */
    public fun asHttpCodeOrNull(): kotlin.String? = (this as? Matcher.HttpCode)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy