Package io.lakefs.clients.sdk.model
Class ImportStatus
- java.lang.Object
-
- io.lakefs.clients.sdk.model.ImportStatus
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ImportStatus extends Object
ImportStatus
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImportStatus.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMMITstatic StringSERIALIZED_NAME_COMPLETEDstatic StringSERIALIZED_NAME_ERRORstatic StringSERIALIZED_NAME_INGESTED_OBJECTSstatic StringSERIALIZED_NAME_METARANGE_IDstatic StringSERIALIZED_NAME_UPDATE_TIME
-
Constructor Summary
Constructors Constructor Description ImportStatus()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportStatuscommit(Commit commit)ImportStatuscompleted(Boolean completed)booleanequals(Object o)ImportStatuserror(Error error)static ImportStatusfromJson(String jsonString)Create an instance of ImportStatus given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.CommitgetCommit()Get commitBooleangetCompleted()Get completedErrorgetError()Get errorLonggetIngestedObjects()Number of objects processed so farStringgetMetarangeId()Get metarangeIdOffsetDateTimegetUpdateTime()Get updateTimeinthashCode()ImportStatusingestedObjects(Long ingestedObjects)ImportStatusmetarangeId(String metarangeId)ImportStatusputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetCommit(Commit commit)voidsetCompleted(Boolean completed)voidsetError(Error error)voidsetIngestedObjects(Long ingestedObjects)voidsetMetarangeId(String metarangeId)voidsetUpdateTime(OffsetDateTime updateTime)StringtoJson()Convert an instance of ImportStatus to an JSON stringStringtoString()ImportStatusupdateTime(OffsetDateTime updateTime)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COMPLETED
public static final String SERIALIZED_NAME_COMPLETED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATE_TIME
public static final String SERIALIZED_NAME_UPDATE_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INGESTED_OBJECTS
public static final String SERIALIZED_NAME_INGESTED_OBJECTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METARANGE_ID
public static final String SERIALIZED_NAME_METARANGE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMMIT
public static final String SERIALIZED_NAME_COMMIT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR
public static final String SERIALIZED_NAME_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
completed
public ImportStatus completed(Boolean completed)
-
setCompleted
public void setCompleted(Boolean completed)
-
updateTime
public ImportStatus updateTime(OffsetDateTime updateTime)
-
getUpdateTime
@Nonnull public OffsetDateTime getUpdateTime()
Get updateTime- Returns:
- updateTime
-
setUpdateTime
public void setUpdateTime(OffsetDateTime updateTime)
-
ingestedObjects
public ImportStatus ingestedObjects(Long ingestedObjects)
-
getIngestedObjects
@Nullable public Long getIngestedObjects()
Number of objects processed so far- Returns:
- ingestedObjects
-
setIngestedObjects
public void setIngestedObjects(Long ingestedObjects)
-
metarangeId
public ImportStatus metarangeId(String metarangeId)
-
setMetarangeId
public void setMetarangeId(String metarangeId)
-
commit
public ImportStatus commit(Commit commit)
-
setCommit
public void setCommit(Commit commit)
-
error
public ImportStatus error(Error error)
-
setError
public void setError(Error error)
-
putAdditionalProperty
public ImportStatus putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the ImportStatus instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ImportStatus
-
fromJson
public static ImportStatus fromJson(String jsonString) throws IOException
Create an instance of ImportStatus given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ImportStatus
- Throws:
IOException- if the JSON string is invalid with respect to ImportStatus
-
toJson
public String toJson()
Convert an instance of ImportStatus to an JSON string- Returns:
- JSON string
-
-