Package cm.xd.genapi.ynab.model
Class SaveAccount
java.lang.Object
cm.xd.genapi.ynab.model.SaveAccount
@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 SaveAccount
extends Object
SaveAccount
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SaveAccountCreate an instance of SaveAccount given an JSON stringThe current balance of the account in milliunits formatgetName()The name of the accountgetType()Get typeinthashCode()voidsetBalance(Long balance) voidvoidsetType(SaveAccountType type) toJson()Convert an instance of SaveAccount to an JSON stringtoString()type(SaveAccountType type) 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_TYPE
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SaveAccount
public SaveAccount()
-
-
Method Details
-
name
-
getName
The name of the account- Returns:
- name
-
setName
-
type
-
getType
Get type- Returns:
- type
-
setType
-
balance
-
getBalance
The current balance of the account in milliunits format- Returns:
- balance
-
setBalance
-
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 SaveAccount
-
fromJson
Create an instance of SaveAccount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SaveAccount
- Throws:
IOException- if the JSON string is invalid with respect to SaveAccount
-
toJson
Convert an instance of SaveAccount to an JSON string- Returns:
- JSON string
-