Class DocumentUrl.Builder

  • Enclosing class:
    DocumentUrl

    public static class DocumentUrl.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • url

        public DocumentUrl.Builder url​(String url)
        The base64 encoded document data or a document uri if it’s supported.

        Example for a pdf document: { "type": "DOCUMENT", "documentUrl": { "url": "data:application/pdf;base64," } }

        Example with a document uri: { "type": "DOCUMENT", "videoUrl": { "url": "data:application/pdf;uri," } }

        Parameters:
        url - the value to set
        Returns:
        this builder
      • detail

        public DocumentUrl.Builder detail​(DocumentUrl.Detail detail)
        The default value is AUTO and only AUTO is supported.

        This option controls how to convert the base64 encoded document to tokens.

        Parameters:
        detail - the value to set
        Returns:
        this builder