Package io.getstream.chat.java.models
Class Import
- java.lang.Object
-
- io.getstream.chat.java.models.Import
-
public class Import extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Import.CreateImportRequestData
static class
Import.CreateImportResponse
static class
Import.CreateImportUrlRequestData
static class
Import.CreateImportUrlResponse
static class
Import.GetImportRequest
static class
Import.GetImportResponse
static class
Import.ImportHistoryItem
static class
Import.ImportMode
static class
Import.ImportState
static class
Import.ListImportsRequest
static class
Import.ListImportsResponse
-
Constructor Summary
Constructors Constructor Description Import()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
static Import.CreateImportRequestData.CreateImportRequest
createImport(@NotNull java.lang.String path, @Nullable Import.ImportMode mode)
Creates a create import requeststatic Import.CreateImportUrlRequestData.CreateImportUrlRequest
createImportUrl(@NotNull java.lang.String fileName)
Creates a create import url requestboolean
equals(java.lang.Object o)
@Nullable java.util.Date
getCreatedAt()
@Nullable java.util.List<Import.ImportHistoryItem>
getHistory()
@Nullable java.lang.String
getId()
static @NotNull Import.GetImportRequest
getImport(@NotNull java.lang.String id)
Creates a get import request@Nullable Import.ImportMode
getMode()
@Nullable java.lang.String
getPath()
@Nullable Import.ImportState
getState()
@Nullable java.util.Date
getUpdatedAt()
int
hashCode()
static @NotNull Import.ListImportsRequest
listImports(@Nullable java.lang.Integer limit, @Nullable java.lang.Integer offset)
Creates a list import requestvoid
setCreatedAt(@Nullable java.util.Date createdAt)
void
setHistory(@Nullable java.util.List<Import.ImportHistoryItem> history)
void
setId(@Nullable java.lang.String id)
void
setMode(@Nullable Import.ImportMode mode)
void
setPath(@Nullable java.lang.String path)
void
setState(@Nullable Import.ImportState state)
void
setUpdatedAt(@Nullable java.util.Date updatedAt)
java.lang.String
toString()
-
-
-
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 endpointmode
- 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 returnoffset
- 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()
-
getMode
@Nullable public @Nullable Import.ImportMode getMode()
-
getState
@Nullable public @Nullable Import.ImportState getState()
-
getHistory
@Nullable public @Nullable java.util.List<Import.ImportHistoryItem> getHistory()
-
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)
-
setMode
public void setMode(@Nullable @Nullable Import.ImportMode mode)
-
setState
public void setState(@Nullable @Nullable Import.ImportState state)
-
setHistory
public void setHistory(@Nullable @Nullable java.util.List<Import.ImportHistoryItem> history)
-
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 classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-