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
- All
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): 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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
- @native() @HotSpotIntrinsicCandidate()
-
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
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated