commonMain.aws.sdk.kotlin.services.vpclattice.model.Matcher.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vpclattice-jvm Show documentation
Show all versions of vpclattice-jvm Show documentation
The AWS SDK for Kotlin client for VPC Lattice
// 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
}