Class Commit


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

      • Commit

        public Commit()
    • Method Detail

      • setId

        public void setId​(String id)
      • addParentsItem

        public Commit addParentsItem​(String parentsItem)
      • setParents

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

        @Nonnull
        public String getCommitter()
        Get committer
        Returns:
        committer
      • setCommitter

        public void setCommitter​(String committer)
      • getMessage

        @Nonnull
        public String getMessage()
        Get message
        Returns:
        message
      • setMessage

        public void setMessage​(String message)
      • creationDate

        public Commit creationDate​(Long creationDate)
      • getCreationDate

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

        public void setCreationDate​(Long creationDate)
      • metaRangeId

        public Commit metaRangeId​(String metaRangeId)
      • getMetaRangeId

        @Nonnull
        public String getMetaRangeId()
        Get metaRangeId
        Returns:
        metaRangeId
      • setMetaRangeId

        public void setMetaRangeId​(String metaRangeId)
      • setMetadata

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

        public Commit generation​(Long generation)
      • getGeneration

        @Nullable
        public Long getGeneration()
        Get generation
        Returns:
        generation
      • setGeneration

        public void setGeneration​(Long generation)
      • getVersion

        @Nullable
        public Integer getVersion()
        Get version minimum: 0 maximum: 1
        Returns:
        version
      • 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 property
        value - 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
      • 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 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