Package io.lakefs.clients.sdk.model
Class CommitRecordCreation
- java.lang.Object
-
- io.lakefs.clients.sdk.model.CommitRecordCreation
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CommitRecordCreation extends Object
CommitRecordCreation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommitRecordCreation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMMIT_IDstatic StringSERIALIZED_NAME_COMMITTERstatic StringSERIALIZED_NAME_CREATION_DATEstatic StringSERIALIZED_NAME_FORCEstatic StringSERIALIZED_NAME_GENERATIONstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_METARANGE_IDstatic StringSERIALIZED_NAME_PARENTSstatic StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description CommitRecordCreation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitRecordCreationaddParentsItem(String parentsItem)CommitRecordCreationcommitId(String commitId)CommitRecordCreationcommitter(String committer)CommitRecordCreationcreationDate(Long creationDate)booleanequals(Object o)CommitRecordCreationforce(Boolean force)static CommitRecordCreationfromJson(String jsonString)Create an instance of CommitRecordCreation given an JSON stringCommitRecordCreationgeneration(Long generation)Map<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetCommitId()id of the commit recordStringgetCommitter()committer of the commit recordLonggetCreationDate()Unix Epoch in secondsBooleangetForce()Get forceLonggetGeneration()generation of the commit recordStringgetMessage()message of the commit recordMap<String,String>getMetadata()metadata of the commit recordStringgetMetarangeId()metarange_id of the commit recordList<String>getParents()parents of the commit recordIntegergetVersion()version of the commit record minimum: 0 maximum: 1inthashCode()CommitRecordCreationmessage(String message)CommitRecordCreationmetadata(Map<String,String> metadata)CommitRecordCreationmetarangeId(String metarangeId)CommitRecordCreationparents(List<String> parents)CommitRecordCreationputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.CommitRecordCreationputMetadataItem(String key, String metadataItem)voidsetCommitId(String commitId)voidsetCommitter(String committer)voidsetCreationDate(Long creationDate)voidsetForce(Boolean force)voidsetGeneration(Long generation)voidsetMessage(String message)voidsetMetadata(Map<String,String> metadata)voidsetMetarangeId(String metarangeId)voidsetParents(List<String> parents)voidsetVersion(Integer version)StringtoJson()Convert an instance of CommitRecordCreation to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundCommitRecordCreationversion(Integer version)
-
-
-
Field Detail
-
SERIALIZED_NAME_COMMIT_ID
public static final String SERIALIZED_NAME_COMMIT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VERSION
public static final String SERIALIZED_NAME_VERSION
- 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_METARANGE_ID
public static final String SERIALIZED_NAME_METARANGE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATION_DATE
public static final String SERIALIZED_NAME_CREATION_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PARENTS
public static final String SERIALIZED_NAME_PARENTS
- 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_FORCE
public static final String SERIALIZED_NAME_FORCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
commitId
public CommitRecordCreation commitId(String commitId)
-
setCommitId
public void setCommitId(String commitId)
-
version
public CommitRecordCreation version(Integer version)
-
getVersion
@Nonnull public Integer getVersion()
version of the commit record minimum: 0 maximum: 1- Returns:
- version
-
setVersion
public void setVersion(Integer version)
-
committer
public CommitRecordCreation committer(String committer)
-
getCommitter
@Nonnull public String getCommitter()
committer of the commit record- Returns:
- committer
-
setCommitter
public void setCommitter(String committer)
-
message
public CommitRecordCreation message(String message)
-
setMessage
public void setMessage(String message)
-
metarangeId
public CommitRecordCreation metarangeId(String metarangeId)
-
getMetarangeId
@Nonnull public String getMetarangeId()
metarange_id of the commit record- Returns:
- metarangeId
-
setMetarangeId
public void setMetarangeId(String metarangeId)
-
creationDate
public CommitRecordCreation creationDate(Long creationDate)
-
setCreationDate
public void setCreationDate(Long creationDate)
-
parents
public CommitRecordCreation parents(List<String> parents)
-
addParentsItem
public CommitRecordCreation addParentsItem(String parentsItem)
-
metadata
public CommitRecordCreation metadata(Map<String,String> metadata)
-
putMetadataItem
public CommitRecordCreation putMetadataItem(String key, String metadataItem)
-
getMetadata
@Nullable public Map<String,String> getMetadata()
metadata of the commit record- Returns:
- metadata
-
generation
public CommitRecordCreation generation(Long generation)
-
getGeneration
@Nonnull public Long getGeneration()
generation of the commit record- Returns:
- generation
-
setGeneration
public void setGeneration(Long generation)
-
force
public CommitRecordCreation force(Boolean force)
-
setForce
public void setForce(Boolean force)
-
putAdditionalProperty
public CommitRecordCreation 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 CommitRecordCreation 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 CommitRecordCreation
-
fromJson
public static CommitRecordCreation fromJson(String jsonString) throws IOException
Create an instance of CommitRecordCreation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CommitRecordCreation
- Throws:
IOException- if the JSON string is invalid with respect to CommitRecordCreation
-
toJson
public String toJson()
Convert an instance of CommitRecordCreation to an JSON string- Returns:
- JSON string
-
-