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

commonMain.aws.sdk.kotlin.services.vpclattice.model.RuleMatch.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 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy