Class CommitCreation


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

      • CommitCreation

        public CommitCreation()
    • Method Detail

      • getMessage

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

        public void setMessage​(String message)
      • setMetadata

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

        @Nullable
        public Long getDate()
        set date to override creation date in the commit (Unix Epoch in seconds)
        Returns:
        date
      • setDate

        public void setDate​(Long date)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to CommitCreation
      • fromJson

        public static CommitCreation fromJson​(String jsonString)
                                       throws IOException
        Create an instance of CommitCreation given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CommitCreation
        Throws:
        IOException - if the JSON string is invalid with respect to CommitCreation
      • toJson

        public String toJson()
        Convert an instance of CommitCreation to an JSON string
        Returns:
        JSON string