Class DocumentSource

    • Method Detail

      • bytes

        public final SdkBytes bytes()

        The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.

        Returns:
        The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.
      • 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.

        The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.

        Parameters:
        bytes - The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.