Package cm.xd.genapi.ynab.model
Class NewCategory
java.lang.Object
cm.xd.genapi.ynab.model.NewCategory
@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 NewCategory
extends Object
NewCategory
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategoryGroupId(UUID categoryGroupId) booleanstatic NewCategoryCreate an instance of NewCategory given an JSON stringGet categoryGroupIdThe goal target amount in milliunits format.The goal target date in ISO format (e.g.getName()Get namegetNote()Get notegoalTarget(Long goalTarget) goalTargetDate(LocalDate goalTargetDate) inthashCode()voidsetCategoryGroupId(UUID categoryGroupId) voidsetGoalTarget(Long goalTarget) voidsetGoalTargetDate(LocalDate goalTargetDate) voidvoidtoJson()Convert an instance of NewCategory 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NewCategory
public NewCategory()
-
-
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 'Needed for Spending' goal will be created for the category with this target amount.- Returns:
- goalTarget
-
setGoalTarget
-
goalTargetDate
-
getGoalTargetDate
The goal target date in ISO format (e.g. 2016-12-01).- Returns:
- goalTargetDate
-
setGoalTargetDate
-
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 NewCategory
-
fromJson
Create an instance of NewCategory given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NewCategory
- Throws:
IOException- if the JSON string is invalid with respect to NewCategory
-
toJson
Convert an instance of NewCategory to an JSON string- Returns:
- JSON string
-