Class MarkupOption

java.lang.Object
build.cursed.genapi.forgejo.model.MarkupOption

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class MarkupOption extends Object
MarkupOption markup options
  • Field Details

  • Constructor Details

    • MarkupOption

      public MarkupOption()
  • Method Details

    • branchPath

      public MarkupOption branchPath(@Nullable String branchPath)
    • getBranchPath

      @Nullable public String getBranchPath()
      The current branch path where the form gets posted in: body
      Returns:
      branchPath
    • setBranchPath

      public void setBranchPath(@Nullable String branchPath)
    • context

      public MarkupOption context(@Nullable String context)
    • getContext

      @Nullable public String getContext()
      Context to render in: body
      Returns:
      context
    • setContext

      public void setContext(@Nullable String context)
    • filePath

      public MarkupOption filePath(@Nullable String filePath)
    • getFilePath

      @Nullable public String getFilePath()
      File path for detecting extension in file mode in: body
      Returns:
      filePath
    • setFilePath

      public void setFilePath(@Nullable String filePath)
    • mode

      public MarkupOption mode(@Nullable String mode)
    • getMode

      @Nullable public String getMode()
      Mode to render (comment, gfm, markdown, file) in: body
      Returns:
      mode
    • setMode

      public void setMode(@Nullable String mode)
    • text

      public MarkupOption text(@Nullable String text)
    • getText

      @Nullable public String getText()
      Text markup to render in: body
      Returns:
      text
    • setText

      public void setText(@Nullable String text)
    • wiki

      public MarkupOption wiki(@Nullable Boolean wiki)
    • getWiki

      @Nullable public Boolean getWiki()
      Is it a wiki page ? in: body
      Returns:
      wiki
    • setWiki

      public void setWiki(@Nullable Boolean wiki)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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 MarkupOption
    • fromJson

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

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