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
      • getId

        @Nullable
        public @Nullable java.lang.String getId()
      • getPath

        @Nullable
        public @Nullable java.lang.String getPath()
      • getCreatedAt

        @Nullable
        public @Nullable java.util.Date getCreatedAt()
      • getUpdatedAt

        @Nullable
        public @Nullable java.util.Date getUpdatedAt()
      • setId

        public void setId​(@Nullable
                          @Nullable java.lang.String id)
      • setPath

        public void setPath​(@Nullable
                            @Nullable java.lang.String path)
      • setCreatedAt

        public void setCreatedAt​(@Nullable
                                 @Nullable java.util.Date createdAt)
      • setUpdatedAt

        public void setUpdatedAt​(@Nullable
                                 @Nullable java.util.Date updatedAt)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object