CedarTagValue

sealed class CedarTagValue

The value of an entity's Cedar tag.

This data type is used as a member of the EntityItem structure that forms the body of the Entities request parameter for the IsAuthorized, BatchIsAuthorized, IsAuthorizedWithToken, and BatchIsAuthorizedWithToken operations.

Inheritors

Types

Link copied to clipboard
data class Boolean(val value: Boolean) : CedarTagValue

A Cedar tag value of Boolean type.

Link copied to clipboard
data class Datetime(val value: String) : CedarTagValue

A Cedar tag value of datetime type.

Link copied to clipboard
data class Decimal(val value: String) : CedarTagValue

A Cedar tag value of decimal type.

Link copied to clipboard
data class Duration(val value: String) : CedarTagValue

A Cedar tag value of duration type.

Link copied to clipboard

A Cedar tag value of type EntityIdentifier.

Link copied to clipboard
data class Ipaddr(val value: String) : CedarTagValue

A Cedar tag value of ipaddr type.

Link copied to clipboard
data class Long(val value: Long) : CedarTagValue

A Cedar tag value of Long type.

Link copied to clipboard
data class Record(val value: Map<String, CedarTagValue>) : CedarTagValue

A Cedar tag value of Record type.

Link copied to clipboard
Link copied to clipboard
data class Set(val value: List<CedarTagValue>) : CedarTagValue

A Cedar tag value of Set type.

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

A Cedar tag value of String type.

Functions

Link copied to clipboard

Casts this CedarTagValue as a Boolean and retrieves its kotlin.Boolean value. Throws an exception if the CedarTagValue is not a Boolean.

Link copied to clipboard

Casts this CedarTagValue as a Boolean and retrieves its kotlin.Boolean value. Returns null if the CedarTagValue is not a Boolean.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun asLong(): Long

Casts this CedarTagValue as a Long and retrieves its kotlin.Long value. Throws an exception if the CedarTagValue is not a Long.

Link copied to clipboard

Casts this CedarTagValue as a Long and retrieves its kotlin.Long value. Returns null if the CedarTagValue is not a Long.

Link copied to clipboard

Casts this CedarTagValue as a Record and retrieves its kotlin.collections.Map value. Throws an exception if the CedarTagValue is not a Record.

Link copied to clipboard

Casts this CedarTagValue as a Record and retrieves its kotlin.collections.Map value. Returns null if the CedarTagValue is not a Record.

Link copied to clipboard

Casts this CedarTagValue as a Set and retrieves its kotlin.collections.List value. Throws an exception if the CedarTagValue is not a Set.

Link copied to clipboard

Casts this CedarTagValue as a Set and retrieves its kotlin.collections.List value. Returns null if the CedarTagValue is not a Set.

Link copied to clipboard

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

Link copied to clipboard

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