Package com.adyen.model.management
Class ListWebhooksResponse
- java.lang.Object
-
- com.adyen.model.management.ListWebhooksResponse
-
public class ListWebhooksResponse extends Object
ListWebhooksResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListWebhooksResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_REFERENCEstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ITEMS_TOTALstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_PAGES_TOTAL
-
Constructor Summary
Constructors Constructor Description ListWebhooksResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListWebhooksResponseaccountReference(String accountReference)ListWebhooksResponseaddDataItem(Webhook dataItem)ListWebhooksResponsedata(List<Webhook> data)booleanequals(Object o)static ListWebhooksResponsefromJson(String jsonString)Create an instance of ListWebhooksResponse given an JSON stringStringgetAccountReference()Reference to the account.List<Webhook>getData()The list of webhooks configured for this account.IntegergetItemsTotal()Total number of items.PaginationLinksgetLinks()Get linksIntegergetPagesTotal()Total number of pages.inthashCode()ListWebhooksResponseitemsTotal(Integer itemsTotal)ListWebhooksResponselinks(PaginationLinks links)ListWebhooksResponsepagesTotal(Integer pagesTotal)voidsetAccountReference(String accountReference)voidsetData(List<Webhook> data)voidsetItemsTotal(Integer itemsTotal)voidsetLinks(PaginationLinks links)voidsetPagesTotal(Integer pagesTotal)StringtoJson()Convert an instance of ListWebhooksResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_REFERENCE
public static final String SERIALIZED_NAME_ACCOUNT_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ITEMS_TOTAL
public static final String SERIALIZED_NAME_ITEMS_TOTAL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAGES_TOTAL
public static final String SERIALIZED_NAME_PAGES_TOTAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public ListWebhooksResponse links(PaginationLinks links)
-
getLinks
public PaginationLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(PaginationLinks links)
-
accountReference
public ListWebhooksResponse accountReference(String accountReference)
-
getAccountReference
public String getAccountReference()
Reference to the account.- Returns:
- accountReference
-
setAccountReference
public void setAccountReference(String accountReference)
-
data
public ListWebhooksResponse data(List<Webhook> data)
-
addDataItem
public ListWebhooksResponse addDataItem(Webhook dataItem)
-
getData
public List<Webhook> getData()
The list of webhooks configured for this account.- Returns:
- data
-
itemsTotal
public ListWebhooksResponse itemsTotal(Integer itemsTotal)
-
getItemsTotal
public Integer getItemsTotal()
Total number of items.- Returns:
- itemsTotal
-
setItemsTotal
public void setItemsTotal(Integer itemsTotal)
-
pagesTotal
public ListWebhooksResponse pagesTotal(Integer pagesTotal)
-
getPagesTotal
public Integer getPagesTotal()
Total number of pages.- Returns:
- pagesTotal
-
setPagesTotal
public void setPagesTotal(Integer pagesTotal)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ListWebhooksResponse
-
fromJson
public static ListWebhooksResponse fromJson(String jsonString) throws IOException
Create an instance of ListWebhooksResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListWebhooksResponse
- Throws:
IOException- if the JSON string is invalid with respect to ListWebhooksResponse
-
toJson
public String toJson()
Convert an instance of ListWebhooksResponse to an JSON string- Returns:
- JSON string
-
-