Package com.adyen.model.balanceplatform
Class ListAssociationsResponse
- java.lang.Object
-
- com.adyen.model.balanceplatform.ListAssociationsResponse
-
public class ListAssociationsResponse extends Object
ListAssociationsResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_ITEMS_TOTALstatic StringJSON_PROPERTY_LINKSstatic StringJSON_PROPERTY_PAGES_TOTAL
-
Constructor Summary
Constructors Constructor Description ListAssociationsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListAssociationsResponseaddDataItem(AssociationListing dataItem)ListAssociationsResponsedata(List<AssociationListing> data)Contains a list of associations and their corresponding details.booleanequals(Object o)Return true if this ListAssociationsResponse object is equal to o.static ListAssociationsResponsefromJson(String jsonString)Create an instance of ListAssociationsResponse given an JSON stringList<AssociationListing>getData()Contains a list of associations and their corresponding details.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.IntegergetItemsTotal()The total number of items available.LinkgetLinks()Get linksIntegergetPagesTotal()The total number of pages available.inthashCode()ListAssociationsResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.ListAssociationsResponseitemsTotal(Integer itemsTotal)The total number of items available.ListAssociationsResponselinks(Link links)linksListAssociationsResponsepagesTotal(Integer pagesTotal)The total number of pages available.voidsetData(List<AssociationListing> data)Contains a list of associations and their corresponding details.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetItemsTotal(Integer itemsTotal)The total number of items available.voidsetLinks(Link links)linksvoidsetPagesTotal(Integer pagesTotal)The total number of pages available.StringtoJson()Convert an instance of ListAssociationsResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LINKS
public static final String JSON_PROPERTY_LINKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DATA
public static final String JSON_PROPERTY_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ITEMS_TOTAL
public static final String JSON_PROPERTY_ITEMS_TOTAL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGES_TOTAL
public static final String JSON_PROPERTY_PAGES_TOTAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public ListAssociationsResponse links(Link links)
links- Parameters:
links-- Returns:
- the current
ListAssociationsResponseinstance, allowing for method chaining
-
getLinks
public Link getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(Link links)
links- Parameters:
links-
-
data
public ListAssociationsResponse data(List<AssociationListing> data)
Contains a list of associations and their corresponding details.- Parameters:
data- Contains a list of associations and their corresponding details.- Returns:
- the current
ListAssociationsResponseinstance, allowing for method chaining
-
addDataItem
public ListAssociationsResponse addDataItem(AssociationListing dataItem)
-
getData
public List<AssociationListing> getData()
Contains a list of associations and their corresponding details.- Returns:
- data Contains a list of associations and their corresponding details.
-
setData
public void setData(List<AssociationListing> data)
Contains a list of associations and their corresponding details.- Parameters:
data- Contains a list of associations and their corresponding details.
-
itemsTotal
public ListAssociationsResponse itemsTotal(Integer itemsTotal)
The total number of items available.- Parameters:
itemsTotal- The total number of items available.- Returns:
- the current
ListAssociationsResponseinstance, allowing for method chaining
-
getItemsTotal
public Integer getItemsTotal()
The total number of items available.- Returns:
- itemsTotal The total number of items available.
-
setItemsTotal
public void setItemsTotal(Integer itemsTotal)
The total number of items available.- Parameters:
itemsTotal- The total number of items available.
-
pagesTotal
public ListAssociationsResponse pagesTotal(Integer pagesTotal)
The total number of pages available.- Parameters:
pagesTotal- The total number of pages available.- Returns:
- the current
ListAssociationsResponseinstance, allowing for method chaining
-
getPagesTotal
public Integer getPagesTotal()
The total number of pages available.- Returns:
- pagesTotal The total number of pages available.
-
setPagesTotal
public void setPagesTotal(Integer pagesTotal)
The total number of pages available.- Parameters:
pagesTotal- The total number of pages available.
-
includeNullValues
public ListAssociationsResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this ListAssociationsResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static ListAssociationsResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ListAssociationsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListAssociationsResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ListAssociationsResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ListAssociationsResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-