Class CommitRecordCreation


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class CommitRecordCreation
    extends Object
    CommitRecordCreation
    • Constructor Detail

      • CommitRecordCreation

        public CommitRecordCreation()
    • Method Detail

      • getCommitId

        @Nonnull
        public String getCommitId()
        id of the commit record
        Returns:
        commitId
      • setCommitId

        public void setCommitId​(String commitId)
      • getVersion

        @Nonnull
        public Integer getVersion()
        version of the commit record minimum: 0 maximum: 1
        Returns:
        version
      • setVersion

        public void setVersion​(Integer version)
      • getCommitter

        @Nonnull
        public String getCommitter()
        committer of the commit record
        Returns:
        committer
      • setCommitter

        public void setCommitter​(String committer)
      • getMessage

        @Nonnull
        public String getMessage()
        message of the commit record
        Returns:
        message
      • setMessage

        public void setMessage​(String message)
      • getMetarangeId

        @Nonnull
        public String getMetarangeId()
        metarange_id of the commit record
        Returns:
        metarangeId
      • setMetarangeId

        public void setMetarangeId​(String metarangeId)
      • getCreationDate

        @Nonnull
        public Long getCreationDate()
        Unix Epoch in seconds
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(Long creationDate)
      • getParents

        @Nonnull
        public List<String> getParents()
        parents of the commit record
        Returns:
        parents
      • setParents

        public void setParents​(List<String> parents)
      • setMetadata

        public void setMetadata​(Map<String,​String> metadata)
      • getGeneration

        @Nonnull
        public Long getGeneration()
        generation of the commit record
        Returns:
        generation
      • setGeneration

        public void setGeneration​(Long generation)
      • 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 property
        value - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates 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