Class DocumentSource

    • Method Detail

      • bytes

        public final SdkBytes bytes()

        A base64-encoded string of a UTF-8 encoded file, that is the document to include in the message.

        Returns:
        A base64-encoded string of a UTF-8 encoded file, that is the document to include in the message.
      • 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)
      • fromBytes

        public static DocumentSource fromBytes​(SdkBytes bytes)
        Create an instance of this class with bytes() initialized to the given value.

        A base64-encoded string of a UTF-8 encoded file, that is the document to include in the message.

        Parameters:
        bytes - A base64-encoded string of a UTF-8 encoded file, that is the document to include in the message.