Class TypedAttributeValue

    • Method Detail

      • stringValue

        public final String stringValue()

        A string data value.

        Returns:
        A string data value.
      • binaryValue

        public final SdkBytes binaryValue()

        A binary data value.

        Returns:
        A binary data value.
      • booleanValue

        public final Boolean booleanValue()

        A Boolean data value.

        Returns:
        A Boolean data value.
      • numberValue

        public final String numberValue()

        A number data value.

        Returns:
        A number data value.
      • datetimeValue

        public final Instant datetimeValue()

        A date and time value.

        Returns:
        A date and time value.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromStringValue

        public static TypedAttributeValue fromStringValue​(String stringValue)
        Create an instance of this class with stringValue() initialized to the given value.

        A string data value.

        Parameters:
        stringValue - A string data value.
      • fromBinaryValue

        public static TypedAttributeValue fromBinaryValue​(SdkBytes binaryValue)
        Create an instance of this class with binaryValue() initialized to the given value.

        A binary data value.

        Parameters:
        binaryValue - A binary data value.
      • fromBooleanValue

        public static TypedAttributeValue fromBooleanValue​(Boolean booleanValue)
        Create an instance of this class with booleanValue() initialized to the given value.

        A Boolean data value.

        Parameters:
        booleanValue - A Boolean data value.
      • fromNumberValue

        public static TypedAttributeValue fromNumberValue​(String numberValue)
        Create an instance of this class with numberValue() initialized to the given value.

        A number data value.

        Parameters:
        numberValue - A number data value.
      • fromDatetimeValue

        public static TypedAttributeValue fromDatetimeValue​(Instant datetimeValue)
        Create an instance of this class with datetimeValue() initialized to the given value.

        A date and time value.

        Parameters:
        datetimeValue - A date and time value.