Package io.lakefs.clients.sdk.model
Class Commit
- java.lang.Object
-
- io.lakefs.clients.sdk.model.Commit
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Commit extends Object
Commit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommit.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMMITTERstatic StringSERIALIZED_NAME_CREATION_DATEstatic StringSERIALIZED_NAME_GENERATIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_META_RANGE_IDstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_PARENTSstatic StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description Commit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitaddParentsItem(String parentsItem)Commitcommitter(String committer)CommitcreationDate(Long creationDate)booleanequals(Object o)static CommitfromJson(String jsonString)Create an instance of Commit given an JSON stringCommitgeneration(Long generation)Map<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetCommitter()Get committerLonggetCreationDate()Unix Epoch in secondsLonggetGeneration()Get generationStringgetId()Get idStringgetMessage()Get messageMap<String,String>getMetadata()Get metadataStringgetMetaRangeId()Get metaRangeIdList<String>getParents()Get parentsIntegergetVersion()Get version minimum: 0 maximum: 1inthashCode()Commitid(String id)Commitmessage(String message)Commitmetadata(Map<String,String> metadata)CommitmetaRangeId(String metaRangeId)Commitparents(List<String> parents)CommitputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.CommitputMetadataItem(String key, String metadataItem)voidsetCommitter(String committer)voidsetCreationDate(Long creationDate)voidsetGeneration(Long generation)voidsetId(String id)voidsetMessage(String message)voidsetMetadata(Map<String,String> metadata)voidsetMetaRangeId(String metaRangeId)voidsetParents(List<String> parents)voidsetVersion(Integer version)StringtoJson()Convert an instance of Commit to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundCommitversion(Integer version)
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PARENTS
public static final String SERIALIZED_NAME_PARENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMMITTER
public static final String SERIALIZED_NAME_COMMITTER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATION_DATE
public static final String SERIALIZED_NAME_CREATION_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_META_RANGE_ID
public static final String SERIALIZED_NAME_META_RANGE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GENERATION
public static final String SERIALIZED_NAME_GENERATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(String id)
-
setCommitter
public void setCommitter(String committer)
-
setMessage
public void setMessage(String message)
-
setCreationDate
public void setCreationDate(Long creationDate)
-
setMetaRangeId
public void setMetaRangeId(String metaRangeId)
-
setGeneration
public void setGeneration(Long generation)
-
setVersion
public void setVersion(Integer version)
-
putAdditionalProperty
public Commit 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 Commit 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 Commit
-
fromJson
public static Commit fromJson(String jsonString) throws IOException
Create an instance of Commit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Commit
- Throws:
IOException- if the JSON string is invalid with respect to Commit
-
toJson
public String toJson()
Convert an instance of Commit to an JSON string- Returns:
- JSON string
-
-