Class Import


  • public class Import
    extends java.lang.Object
    • Constructor Detail

      • Import

        public Import()
    • Method Detail

      • createImportUrl

        @NotNull
        public static Import.CreateImportUrlRequestData.CreateImportUrlRequest createImportUrl​(@NotNull
                                                                                               @NotNull java.lang.String fileName)
        Creates a create import url request
        Parameters:
        fileName - the name of the file to be imported
        Returns:
        the created request
      • createImport

        @NotNull
        public static Import.CreateImportRequestData.CreateImportRequest createImport​(@NotNull
                                                                                      @NotNull java.lang.String path,
                                                                                      @Nullable
                                                                                      @Nullable Import.ImportMode mode)
        Creates a create import request
        Parameters:
        path - the path returned by createImportUrl endpoint
        mode - the import mode
        Returns:
        the created request
      • getImport

        @NotNull
        public static @NotNull Import.GetImportRequest getImport​(@NotNull
                                                                 @NotNull java.lang.String id)
        Creates a get import request
        Parameters:
        id - the id of the import
        Returns:
        the created request
      • listImports

        @NotNull
        public static @NotNull Import.ListImportsRequest listImports​(@Nullable
                                                                     @Nullable java.lang.Integer limit,
                                                                     @Nullable
                                                                     @Nullable java.lang.Integer offset)
        Creates a list import request
        Parameters:
        limit - how many records to return
        offset - how many records to skip during pagination
        Returns:
        the created request