DynamoValue

org.scanamo.DynamoValue
See theDynamoValue companion object
sealed abstract class DynamoValue extends Product, Serializable

A DynamoValue is a pure representation of an AttributeValue from the AWS SDK.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

final def as[A](implicit A: DynamoFormat[A]): Either[DynamoReadError, A]

Transforms into a value of type A for which there is a codec, if applies

Transforms into a value of type A for which there is a codec, if applies

Attributes

final def asArray: Option[DynamoArray]

Produces the underlying array, if applies

Produces the underlying array, if applies

Attributes

final def asBoolean: Option[Boolean]

Produces the underlying boolean, if applies

Produces the underlying boolean, if applies

Attributes

final def asByteBuffer: Option[ByteBuffer]

Produces the underlying byte buffer, if applies

Produces the underlying byte buffer, if applies

Attributes

final def asNull: Option[Unit]

Produces () is this object is null

Produces () is this object is null

Attributes

final def asNumber: Option[String]

Produces the underlying number, if applies

Produces the underlying number, if applies

Attributes

Produces the underlying object, if applies

Produces the underlying object, if applies

Attributes

final def asString: Option[String]

Produces the underlying string, if applies

Produces the underlying string, if applies

Attributes

final def isArray: Boolean

Checks whether this object rerpresents an array

Checks whether this object rerpresents an array

Attributes

final def isBoolean: Boolean

Checks whether this object represents a boolean

Checks whether this object represents a boolean

Attributes

final def isByteBuffer: Boolean

Checks whether this object represents a byte buffer

Checks whether this object represents a byte buffer

Attributes

final def isNull: Boolean

Checks whether this object represents the null object

Checks whether this object represents the null object

Attributes

final def isNumber: Boolean

Checks whether this object represents a number

Checks whether this object represents a number

Attributes

final def isObject: Boolean

Checks whether this object rerpresents a composite object

Checks whether this object rerpresents a composite object

Attributes

final def isString: Boolean

Checks whether this object represents a string

Checks whether this object represents a string

Attributes

final def orElse(that: DynamoValue): DynamoValue

Returns this value if it isn't null, the provided one otherwise (which may be null too), this allows expressions like: v1 orElse v2 orElse v3 ... or even vs.foldLeft(nil)(_ orElse _)

Returns this value if it isn't null, the provided one otherwise (which may be null too), this allows expressions like: v1 orElse v2 orElse v3 ... or even vs.foldLeft(nil)(_ orElse _)

Attributes

def toAttributeValue: AttributeValue

Produces the AttributeValue isomorphic to this DynamoValue

Produces the AttributeValue isomorphic to this DynamoValue

Attributes

Transforms into a new value if this one is an array

Transforms into a new value if this one is an array

Attributes

Transforms into a new value if this one is a boolean

Transforms into a new value if this one is a boolean

Attributes

final def withByteBuffer(f: ByteBuffer => DynamoValue): DynamoValue

Transforms into a new value if this one is a byte buffer

Transforms into a new value if this one is a byte buffer

Attributes

final def withNull(f: => DynamoValue): DynamoValue

Transforms into a new value if this one is null

Transforms into a new value if this one is null

Attributes

Transforms into a new value if this one is a number

Transforms into a new value if this one is a number

Attributes

Transforms into a new value if this one is a map

Transforms into a new value if this one is a map

Attributes

Transforms into a new value if this one is a string

Transforms into a new value if this one is a string

Attributes

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product