implicit class RichReadAttributeValue extends AnyRef
Provide extension method(s) to read from a Java AttributeValue
- Alphabetic
- By Inheritance
- RichReadAttributeValue
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RichReadAttributeValue(av: AttributeValue)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def as[A](implicit arg0: Decoder[A]): Either[DecoderError, A]
Attempt to read the AttributeValue as a value of type A or DecoderError
Attempt to read the AttributeValue as a value of type A or DecoderError
Note: if the value of the AttributeValue is nullable, use
asOpt
instead.- returns
either a value of type A or DecoderError
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asOpt[A](implicit arg0: Decoder[A]): Either[DecoderError, Option[A]]
Attempt to read the AttributeValue as an optional value of type A or DecoderError.
Attempt to read the AttributeValue as an optional value of type A or DecoderError. This should be used when AttributeValue can be NULL.
- returns
either an optional value of type A or DecoderError
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def get(key: String): Either[DecoderError, AttributeValue]
Attempt to treat the AttributeValue as of type M, retrieve value by a given key as an AttributeValue.
Attempt to treat the AttributeValue as of type M, retrieve value by a given key as an AttributeValue.
- key
the key whose associated value is to be returned
- returns
either a value as AttributeValue type or DecoderError
- def getAs[A](key: String)(implicit arg0: Decoder[A]): Either[DecoderError, A]
Attempt to treat the AttributeValue as of type M, retrieve AttributeValue that associated to a given key and attempt reading it to a value of type A.
Attempt to treat the AttributeValue as of type M, retrieve AttributeValue that associated to a given key and attempt reading it to a value of type A.
Note: if the returning AttributeValue is nullable, use
getOpt
instead.- key
the key whose associated value is to be returned
- returns
either a value of type A type or DecoderError
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getOpt[A](key: String)(implicit arg0: Decoder[A]): Either[DecoderError, Option[A]]
Attempt to treat the AttributeValue as of type M, retrieve AttributeValue that associated to a given key and attempt reading it to an optional value of type A.
Attempt to treat the AttributeValue as of type M, retrieve AttributeValue that associated to a given key and attempt reading it to an optional value of type A. This should be used when the returning AttributeValue can be NULL.
- key
the key whose associated value is to be returned
- returns
either a value of type A type or DecoderError
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)