
commonMain.aws.sdk.kotlin.services.appmesh.model.GrpcRouteMetadataMatchMethod.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 match method. Specify one of the match values.
*/
public sealed class GrpcRouteMetadataMatchMethod {
/**
* The value sent by the client must match the specified value exactly.
*/
public data class Exact(val value: kotlin.String) : aws.sdk.kotlin.services.appmesh.model.GrpcRouteMetadataMatchMethod() {
}
/**
* The value sent by the client must begin with the specified characters.
*/
public data class Prefix(val value: kotlin.String) : aws.sdk.kotlin.services.appmesh.model.GrpcRouteMetadataMatchMethod() {
}
/**
* An object that represents the range of values to match on.
*/
public data class Range(val value: aws.sdk.kotlin.services.appmesh.model.MatchRange) : aws.sdk.kotlin.services.appmesh.model.GrpcRouteMetadataMatchMethod() {
}
/**
* The value sent by the client must include the specified characters.
*/
public data class Regex(val value: kotlin.String) : aws.sdk.kotlin.services.appmesh.model.GrpcRouteMetadataMatchMethod() {
}
/**
* The value sent by the client must end with the specified characters.
*/
public data class Suffix(val value: kotlin.String) : aws.sdk.kotlin.services.appmesh.model.GrpcRouteMetadataMatchMethod() {
}
public object SdkUnknown : aws.sdk.kotlin.services.appmesh.model.GrpcRouteMetadataMatchMethod() {
}
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Exact] and retrieves its [kotlin.String] value. Throws an exception if the [GrpcRouteMetadataMatchMethod] is not a
* [Exact].
*/
public fun asExact(): kotlin.String = (this as GrpcRouteMetadataMatchMethod.Exact).value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Exact] and retrieves its [kotlin.String] value. Returns null if the [GrpcRouteMetadataMatchMethod] is not a [Exact].
*/
public fun asExactOrNull(): kotlin.String? = (this as? GrpcRouteMetadataMatchMethod.Exact)?.value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Prefix] and retrieves its [kotlin.String] value. Throws an exception if the [GrpcRouteMetadataMatchMethod] is not a
* [Prefix].
*/
public fun asPrefix(): kotlin.String = (this as GrpcRouteMetadataMatchMethod.Prefix).value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Prefix] and retrieves its [kotlin.String] value. Returns null if the [GrpcRouteMetadataMatchMethod] is not a [Prefix].
*/
public fun asPrefixOrNull(): kotlin.String? = (this as? GrpcRouteMetadataMatchMethod.Prefix)?.value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Range] and retrieves its [aws.sdk.kotlin.services.appmesh.model.MatchRange] value. Throws an exception if the [GrpcRouteMetadataMatchMethod] is not a
* [Range].
*/
public fun asRange(): aws.sdk.kotlin.services.appmesh.model.MatchRange = (this as GrpcRouteMetadataMatchMethod.Range).value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Range] and retrieves its [aws.sdk.kotlin.services.appmesh.model.MatchRange] value. Returns null if the [GrpcRouteMetadataMatchMethod] is not a [Range].
*/
public fun asRangeOrNull(): aws.sdk.kotlin.services.appmesh.model.MatchRange? = (this as? GrpcRouteMetadataMatchMethod.Range)?.value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Regex] and retrieves its [kotlin.String] value. Throws an exception if the [GrpcRouteMetadataMatchMethod] is not a
* [Regex].
*/
public fun asRegex(): kotlin.String = (this as GrpcRouteMetadataMatchMethod.Regex).value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Regex] and retrieves its [kotlin.String] value. Returns null if the [GrpcRouteMetadataMatchMethod] is not a [Regex].
*/
public fun asRegexOrNull(): kotlin.String? = (this as? GrpcRouteMetadataMatchMethod.Regex)?.value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Suffix] and retrieves its [kotlin.String] value. Throws an exception if the [GrpcRouteMetadataMatchMethod] is not a
* [Suffix].
*/
public fun asSuffix(): kotlin.String = (this as GrpcRouteMetadataMatchMethod.Suffix).value
/**
* Casts this [GrpcRouteMetadataMatchMethod] as a [Suffix] and retrieves its [kotlin.String] value. Returns null if the [GrpcRouteMetadataMatchMethod] is not a [Suffix].
*/
public fun asSuffixOrNull(): kotlin.String? = (this as? GrpcRouteMetadataMatchMethod.Suffix)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy