Package io.lakefs.clients.api.model
Class Diff
- java.lang.Object
-
- io.lakefs.clients.api.model.Diff
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Diff extends Object
Diff
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiff.CustomTypeAdapterFactorystatic classDiff.PathTypeEnumGets or Sets pathTypestatic classDiff.TypeEnumGets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PATHstatic StringSERIALIZED_NAME_PATH_TYPEstatic StringSERIALIZED_NAME_SIZE_BYTESstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description Diff()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static DifffromJson(String jsonString)Create an instance of Diff given an JSON stringStringgetPath()Get pathDiff.PathTypeEnumgetPathType()Get pathTypeLonggetSizeBytes()represents the size of the added/changed/deleted entryDiff.TypeEnumgetType()Get typeinthashCode()Diffpath(String path)DiffpathType(Diff.PathTypeEnum pathType)voidsetPath(String path)voidsetPathType(Diff.PathTypeEnum pathType)voidsetSizeBytes(Long sizeBytes)voidsetType(Diff.TypeEnum type)DiffsizeBytes(Long sizeBytes)StringtoJson()Convert an instance of Diff to an JSON stringStringtoString()Difftype(Diff.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PATH
public static final String SERIALIZED_NAME_PATH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PATH_TYPE
public static final String SERIALIZED_NAME_PATH_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIZE_BYTES
public static final String SERIALIZED_NAME_SIZE_BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public Diff type(Diff.TypeEnum type)
-
getType
@Nonnull public Diff.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(Diff.TypeEnum type)
-
setPath
public void setPath(String path)
-
pathType
public Diff pathType(Diff.PathTypeEnum pathType)
-
getPathType
@Nonnull public Diff.PathTypeEnum getPathType()
Get pathType- Returns:
- pathType
-
setPathType
public void setPathType(Diff.PathTypeEnum pathType)
-
getSizeBytes
@Nullable public Long getSizeBytes()
represents the size of the added/changed/deleted entry- Returns:
- sizeBytes
-
setSizeBytes
public void setSizeBytes(Long sizeBytes)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Diff
-
fromJson
public static Diff fromJson(String jsonString) throws IOException
Create an instance of Diff given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Diff
- Throws:
IOException- if the JSON string is invalid with respect to Diff
-
toJson
public String toJson()
Convert an instance of Diff to an JSON string- Returns:
- JSON string
-
-