Package io.lakefs.clients.sdk.model
Class Diff
- java.lang.Object
-
- io.lakefs.clients.sdk.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 stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetPath()Get pathDiff.PathTypeEnumgetPathType()Get pathTypeLonggetSizeBytes()represents the size of the added/changed/deleted entryDiff.TypeEnumgetType()Get typeinthashCode()Diffpath(String path)DiffpathType(Diff.PathTypeEnum pathType)DiffputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element 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)
-
putAdditionalProperty
public Diff 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 Diff 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 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
-
-