Package com.adyen.model.balanceplatform
Class PaginatedAccountHoldersResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.PaginatedAccountHoldersResponse
-
public class PaginatedAccountHoldersResponse extends Object
PaginatedAccountHoldersResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaginatedAccountHoldersResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_HOLDERSstatic StringSERIALIZED_NAME_HAS_NEXTstatic StringSERIALIZED_NAME_HAS_PREVIOUS
-
Constructor Summary
Constructors Constructor Description PaginatedAccountHoldersResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaginatedAccountHoldersResponseaccountHolders(List<AccountHolder> accountHolders)PaginatedAccountHoldersResponseaddAccountHoldersItem(AccountHolder accountHoldersItem)booleanequals(Object o)static PaginatedAccountHoldersResponsefromJson(String jsonString)Create an instance of PaginatedAccountHoldersResponse given an JSON stringList<AccountHolder>getAccountHolders()List of account holders.BooleangetHasNext()Indicates whether there are more items on the next page.BooleangetHasPrevious()Indicates whether there are more items on the previous page.inthashCode()PaginatedAccountHoldersResponsehasNext(Boolean hasNext)PaginatedAccountHoldersResponsehasPrevious(Boolean hasPrevious)voidsetAccountHolders(List<AccountHolder> accountHolders)voidsetHasNext(Boolean hasNext)voidsetHasPrevious(Boolean hasPrevious)StringtoJson()Convert an instance of PaginatedAccountHoldersResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ACCOUNT_HOLDERS
public static final String SERIALIZED_NAME_ACCOUNT_HOLDERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HAS_NEXT
public static final String SERIALIZED_NAME_HAS_NEXT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HAS_PREVIOUS
public static final String SERIALIZED_NAME_HAS_PREVIOUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolders
public PaginatedAccountHoldersResponse accountHolders(List<AccountHolder> accountHolders)
-
addAccountHoldersItem
public PaginatedAccountHoldersResponse addAccountHoldersItem(AccountHolder accountHoldersItem)
-
getAccountHolders
public List<AccountHolder> getAccountHolders()
List of account holders.- Returns:
- accountHolders
-
setAccountHolders
public void setAccountHolders(List<AccountHolder> accountHolders)
-
hasNext
public PaginatedAccountHoldersResponse hasNext(Boolean hasNext)
-
getHasNext
public Boolean getHasNext()
Indicates whether there are more items on the next page.- Returns:
- hasNext
-
setHasNext
public void setHasNext(Boolean hasNext)
-
hasPrevious
public PaginatedAccountHoldersResponse hasPrevious(Boolean hasPrevious)
-
getHasPrevious
public Boolean getHasPrevious()
Indicates whether there are more items on the previous page.- Returns:
- hasPrevious
-
setHasPrevious
public void setHasPrevious(Boolean hasPrevious)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to PaginatedAccountHoldersResponse
-
fromJson
public static PaginatedAccountHoldersResponse fromJson(String jsonString) throws IOException
Create an instance of PaginatedAccountHoldersResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaginatedAccountHoldersResponse
- Throws:
IOException- if the JSON string is invalid with respect to PaginatedAccountHoldersResponse
-
toJson
public String toJson()
Convert an instance of PaginatedAccountHoldersResponse to an JSON string- Returns:
- JSON string
-
-