Class File.Builder

  • Enclosing class:
    File

    public static final class File.Builder
    extends java.lang.Object
    • Method Detail

      • id

        public File.Builder id​(java.lang.String id)
        Unique identifier
      • id

        public File.Builder id​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)
        Unique identifier
      • remoteId

        public File.Builder remoteId​(java.lang.String remoteId)
        Provider's unique identifier
      • remoteId

        public File.Builder remoteId​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId)
        Provider's unique identifier
      • name

        public File.Builder name​(java.lang.String name)
        The name of the file
      • name

        public File.Builder name​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> name)
        The name of the file
      • category

        public File.Builder category​(org.openapitools.jackson.nullable.JsonNullable<? extends FileCategory> category)
        The category of the file
      • contents

        @Deprecated
        public File.Builder contents​(java.util.List<Content> contents)
        Deprecated.
        field: This will be removed in a future release, please migrate away from it as soon as possible.
        The content of the file. Deprecated, use `url` and `file_format` one level up instead
      • contents

        @Deprecated
        public File.Builder contents​(org.openapitools.jackson.nullable.JsonNullable<? extends java.util.List<Content>> contents)
        Deprecated.
        field: This will be removed in a future release, please migrate away from it as soon as possible.
        The content of the file. Deprecated, use `url` and `file_format` one level up instead
      • categoryId

        public File.Builder categoryId​(java.lang.String categoryId)
        The categoryId of the documents
      • categoryId

        public File.Builder categoryId​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> categoryId)
        The categoryId of the documents
      • createdAt

        public File.Builder createdAt​(java.time.OffsetDateTime createdAt)
        The creation date of the file
      • createdAt

        public File.Builder createdAt​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdAt)
        The creation date of the file
      • updatedAt

        public File.Builder updatedAt​(java.time.OffsetDateTime updatedAt)
        The update date of the file
      • updatedAt

        public File.Builder updatedAt​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedAt)
        The update date of the file
      • remoteUrl

        public File.Builder remoteUrl​(java.lang.String remoteUrl)
        URL where the file content is located
      • remoteUrl

        public File.Builder remoteUrl​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteUrl)
        URL where the file content is located
      • fileFormat

        public File.Builder fileFormat​(org.openapitools.jackson.nullable.JsonNullable<? extends FileFileFormat> fileFormat)
        The file format of the file
      • build

        public File build()