AttributeValue

sealed class AttributeValue

The value of an attribute.

Contains information about the runtime context for a request for which an authorization decision is made.

This data type is used as a member of the ContextDefinition structure which is uses as a request parameter for the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.

Inheritors

Types

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

An attribute value of Boolean type.

Link copied to clipboard

An attribute value of type EntityIdentifier.

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

An attribute value of Long type.

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

An attribute value of Record type.

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

An attribute value of Set type.

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

An attribute value of String type.

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun asLong(): Long

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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