Package cm.xd.genapi.ynab.model
Class SaveCategory
java.lang.Object
cm.xd.genapi.ynab.model.SaveCategory
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-26T18:05:30.720340+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class SaveCategory
extends Object
SaveCategory
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategoryGroupId(UUID categoryGroupId) booleanstatic SaveCategoryCreate an instance of SaveCategory given an JSON stringGet categoryGroupIdWhether the goal requires the full target amount each period.The goal target amount in milliunits format.The goal target date in ISO format (e.g.getName()Get namegetNote()Get notegoalNeedsWholeAmount(Boolean goalNeedsWholeAmount) goalTarget(Long goalTarget) goalTargetDate(LocalDate goalTargetDate) inthashCode()voidsetCategoryGroupId(UUID categoryGroupId) voidsetGoalNeedsWholeAmount(Boolean goalNeedsWholeAmount) voidsetGoalTarget(Long goalTarget) voidsetGoalTargetDate(LocalDate goalTargetDate) voidvoidtoJson()Convert an instance of SaveCategory to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NOTE
- See Also:
-
SERIALIZED_NAME_CATEGORY_GROUP_ID
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET
- See Also:
-
SERIALIZED_NAME_GOAL_TARGET_DATE
- See Also:
-
SERIALIZED_NAME_GOAL_NEEDS_WHOLE_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SaveCategory
public SaveCategory()
-
-
Method Details
-
name
-
getName
Get name- Returns:
- name
-
setName
-
note
-
getNote
Get note- Returns:
- note
-
setNote
-
categoryGroupId
-
getCategoryGroupId
Get categoryGroupId- Returns:
- categoryGroupId
-
setCategoryGroupId
-
goalTarget
-
getGoalTarget
The goal target amount in milliunits format. If value is specified and goal has not already been configured for category, a monthly goal will be created for the category with this target amount. If goal_type is not specified, it will default to 'NEED' or 'MF' for Credit Card Payment categories.- Returns:
- goalTarget
-
setGoalTarget
-
goalTargetDate
-
getGoalTargetDate
The goal target date in ISO format (e.g. 2016-12-01).- Returns:
- goalTargetDate
-
setGoalTargetDate
-
goalNeedsWholeAmount
-
getGoalNeedsWholeAmount
Whether the goal requires the full target amount each period. Only supported for 'NEED' goals. When true, the goal is configured as 'Set aside another...'. When false, the goal is configured as 'Refill up to...'.- Returns:
- goalNeedsWholeAmount
-
setGoalNeedsWholeAmount
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of SaveCategory to an JSON string- Returns:
- JSON string
-