commonMain.aws.sdk.kotlin.services.vpclattice.model.RuleMatch.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 a rule match.
*/
public sealed class RuleMatch {
/**
* The HTTP criteria that a rule must match.
*/
public data class HttpMatch(val value: aws.sdk.kotlin.services.vpclattice.model.HttpMatch) : aws.sdk.kotlin.services.vpclattice.model.RuleMatch() {
}
public object SdkUnknown : aws.sdk.kotlin.services.vpclattice.model.RuleMatch() {
}
/**
* Casts this [RuleMatch] as a [HttpMatch] and retrieves its [aws.sdk.kotlin.services.vpclattice.model.HttpMatch] value. Throws an exception if the [RuleMatch] is not a
* [HttpMatch].
*/
public fun asHttpMatch(): aws.sdk.kotlin.services.vpclattice.model.HttpMatch = (this as RuleMatch.HttpMatch).value
/**
* Casts this [RuleMatch] as a [HttpMatch] and retrieves its [aws.sdk.kotlin.services.vpclattice.model.HttpMatch] value. Returns null if the [RuleMatch] is not a [HttpMatch].
*/
public fun asHttpMatchOrNull(): aws.sdk.kotlin.services.vpclattice.model.HttpMatch? = (this as? RuleMatch.HttpMatch)?.value
}