Class SaveCategory

java.lang.Object
cm.xd.genapi.ynab.model.SaveCategory

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-04-13T16:11:17.024752+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class SaveCategory extends Object
SaveCategory
  • Field Details

  • Constructor Details

    • SaveCategory

      public SaveCategory()
  • Method Details

    • name

      public SaveCategory name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • note

      public SaveCategory note(@Nullable String note)
    • getNote

      @Nullable public String getNote()
      Get note
      Returns:
      note
    • setNote

      public void setNote(@Nullable String note)
    • categoryGroupId

      public SaveCategory categoryGroupId(@Nullable UUID categoryGroupId)
    • getCategoryGroupId

      @Nullable public UUID getCategoryGroupId()
      Get categoryGroupId
      Returns:
      categoryGroupId
    • setCategoryGroupId

      public void setCategoryGroupId(@Nullable UUID categoryGroupId)
    • goalTarget

      public SaveCategory goalTarget(@Nullable Long goalTarget)
    • getGoalTarget

      @Nullable public Long getGoalTarget()
      The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly 'Needed for Spending' goal will be created for the category with this target amount.
      Returns:
      goalTarget
    • setGoalTarget

      public void setGoalTarget(@Nullable Long goalTarget)
    • goalTargetDate

      public SaveCategory goalTargetDate(@Nullable LocalDate goalTargetDate)
    • getGoalTargetDate

      @Nullable public LocalDate getGoalTargetDate()
      The goal target date in ISO format (e.g. 2016-12-01).
      Returns:
      goalTargetDate
    • setGoalTargetDate

      public void setGoalTargetDate(@Nullable LocalDate goalTargetDate)
    • 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 SaveCategory
    • fromJson

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

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