Class File.Builder

    • Method Detail

      • object

        public File.IdStage object​(@NotNull
                                   java.lang.String object)

        The type of response. In this case, it will always be "file".

        The type of response. In this case, it will always be "file".

        Specified by:
        object in interface File.ObjectStage
        Returns:
        Reference to this so that method calls can be chained together.
      • id

        public File.NameStage id​(@NotNull
                                 java.lang.String id)

        Extend's internal ID for the file. It will always start with "file_".

        Example: "file_xK9mLPqRtN3vS8wF5hB2cQ"

        Extend's internal ID for the file. It will always start with "file_".

        Example: "file_xK9mLPqRtN3vS8wF5hB2cQ"

        Specified by:
        id in interface File.IdStage
        Returns:
        Reference to this so that method calls can be chained together.
      • name

        public File.MetadataStage name​(@NotNull
                                       java.lang.String name)

        The name of the file

        Example: "Invoices.pdf"

        The name of the file

        Example: "Invoices.pdf"

        Specified by:
        name in interface File.NameStage
        Returns:
        Reference to this so that method calls can be chained together.
      • createdAt

        public File.UpdatedAtStage createdAt​(@NotNull
                                             java.time.OffsetDateTime createdAt)

        The time (in UTC) at which the file was created. Will follow the RFC 3339 format.

        Example: "2024-03-21T15:30:00Z"

        The time (in UTC) at which the file was created. Will follow the RFC 3339 format.

        Example: "2024-03-21T15:30:00Z"

        Specified by:
        createdAt in interface File.CreatedAtStage
        Returns:
        Reference to this so that method calls can be chained together.
      • updatedAt

        public File._FinalStage updatedAt​(@NotNull
                                          java.time.OffsetDateTime updatedAt)

        The time (in UTC) at which the file was last updated. Will follow the RFC 3339 format.

        Example: "2024-03-21T16:45:00Z"

        The time (in UTC) at which the file was last updated. Will follow the RFC 3339 format.

        Example: "2024-03-21T16:45:00Z"

        Specified by:
        updatedAt in interface File.UpdatedAtStage
        Returns:
        Reference to this so that method calls can be chained together.
      • parentFileId

        public File._FinalStage parentFileId​(java.lang.String parentFileId)

        The ID of the parent file. Only included if this file is a derivative of another file, for instance if it was created via a Splitter in a workflow.

        Specified by:
        parentFileId in interface File._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • parentFileId

        public File._FinalStage parentFileId​(java.util.Optional<java.lang.String> parentFileId)

        The ID of the parent file. Only included if this file is a derivative of another file, for instance if it was created via a Splitter in a workflow.

        Specified by:
        parentFileId in interface File._FinalStage
      • presignedUrl

        public File._FinalStage presignedUrl​(java.lang.String presignedUrl)

        A presigned URL to download the file. Expires after 15 minutes.

        Specified by:
        presignedUrl in interface File._FinalStage
        Returns:
        Reference to this so that method calls can be chained together.
      • presignedUrl

        public File._FinalStage presignedUrl​(java.util.Optional<java.lang.String> presignedUrl)

        A presigned URL to download the file. Expires after 15 minutes.

        Specified by:
        presignedUrl in interface File._FinalStage