Class FileUploadResponse

java.lang.Object
ai.vectros.types.FileUploadResponse

public final class FileUploadResponse extends Object
  • Method Details

    • getId

      public Optional<String> getId()
      Returns:
      Document ID assigned to this upload. Poll GET /v1/documents/{id} to track indexing status after the upload completes.
    • getUploadUrl

      public Optional<String> getUploadUrl()
      Returns:
      Presigned upload URL. Upload the raw file bytes directly to this URL with an HTTP PUT request, setting the Content-Type header to the fileType you provided. No Authorization header is needed — the URL is self-authenticating.
    • getExpiresAt

      public Optional<String> getExpiresAt()
      Returns:
      ISO-8601 UTC timestamp at which the presigned URL expires. The upload must complete before this time. Default expiry is 60 minutes.
    • getExternalId

      public Optional<String> getExternalId()
      Returns:
      The stable identifier you supplied on the request, echoed back. Immutable, and unique within your account and context. Null when you did not supply one.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static FileUploadResponse.Builder builder()