PathMatchType

sealed class PathMatchType

Describes a path match type. Each rule can include only one of the following types of paths.

Inheritors

Types

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

An exact match of the path.

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

A prefix match of the path.

Link copied to clipboard

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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