FieldValueUnion

sealed class FieldValueUnion

Object to store union of Field values.

The Summary system field accepts 3000 characters while all other fields accept 500 characters.

Inheritors

Types

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

Can be either null, or have a Boolean value type. Only one value can be provided.

Link copied to clipboard
data class DoubleValue(val value: Double) : FieldValueUnion

Can be either null, or have a Double number value type. Only one value can be provided.

Link copied to clipboard
data class EmptyValue(val value: EmptyFieldValue) : FieldValueUnion

An empty value.

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

String value type.

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

Represents the user that performed the audit.

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Casts this FieldValueUnion as a DoubleValue and retrieves its kotlin.Double value. Throws an exception if the FieldValueUnion is not a DoubleValue.

Link copied to clipboard

Casts this FieldValueUnion as a DoubleValue and retrieves its kotlin.Double value. Returns null if the FieldValueUnion is not a DoubleValue.

Link copied to clipboard

Casts this FieldValueUnion as a EmptyValue and retrieves its aws.sdk.kotlin.services.connectcases.model.EmptyFieldValue value. Throws an exception if the FieldValueUnion is not a EmptyValue.

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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