HeaderMatchMethod

sealed class HeaderMatchMethod

An object that represents the method and value to match with the header value sent in a request. Specify one match method.

Inheritors

Types

Link copied to clipboard
data class Exact(val value: String) : HeaderMatchMethod

The value sent by the client must match the specified value exactly.

Link copied to clipboard
data class Prefix(val value: String) : HeaderMatchMethod

The value sent by the client must begin with the specified characters.

Link copied to clipboard
data class Range(val value: MatchRange) : HeaderMatchMethod

An object that represents the range of values to match on.

Link copied to clipboard
data class Regex(val value: String) : HeaderMatchMethod

The value sent by the client must include the specified characters.

Link copied to clipboard
Link copied to clipboard
data class Suffix(val value: String) : HeaderMatchMethod

The value sent by the client must end with the specified characters.

Functions

Link copied to clipboard

Casts this HeaderMatchMethod as a Exact and retrieves its kotlin.String value. Throws an exception if the HeaderMatchMethod is not a Exact.

Link copied to clipboard

Casts this HeaderMatchMethod as a Exact and retrieves its kotlin.String value. Returns null if the HeaderMatchMethod is not a Exact.

Link copied to clipboard

Casts this HeaderMatchMethod as a Prefix and retrieves its kotlin.String value. Throws an exception if the HeaderMatchMethod is not a Prefix.

Link copied to clipboard

Casts this HeaderMatchMethod as a Prefix and retrieves its kotlin.String value. Returns null if the HeaderMatchMethod is not a Prefix.

Link copied to clipboard

Casts this HeaderMatchMethod as a Range and retrieves its aws.sdk.kotlin.services.appmesh.model.MatchRange value. Throws an exception if the HeaderMatchMethod is not a Range.

Link copied to clipboard

Casts this HeaderMatchMethod as a Range and retrieves its aws.sdk.kotlin.services.appmesh.model.MatchRange value. Returns null if the HeaderMatchMethod is not a Range.

Link copied to clipboard

Casts this HeaderMatchMethod as a Regex and retrieves its kotlin.String value. Throws an exception if the HeaderMatchMethod is not a Regex.

Link copied to clipboard

Casts this HeaderMatchMethod as a Regex and retrieves its kotlin.String value. Returns null if the HeaderMatchMethod is not a Regex.

Link copied to clipboard

Casts this HeaderMatchMethod as a Suffix and retrieves its kotlin.String value. Throws an exception if the HeaderMatchMethod is not a Suffix.

Link copied to clipboard

Casts this HeaderMatchMethod as a Suffix and retrieves its kotlin.String value. Returns null if the HeaderMatchMethod is not a Suffix.