Package io.voucherify.client.model
Class PromotionsStacksListResponseBody
java.lang.Object
io.voucherify.client.model.PromotionsStacksListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionsStacksListResponseBody
extends Object
Response body schema for **GET** `v1/promotions/stacks` and for **GET** `v1/promotions/{campaignId}/stacks`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIdentifies the name of the attribute that contains the array of promotion stack objects.static enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(PromotionStack dataItem) data(List<PromotionStack> data) booleanCreate an instance of PromotionsStacksListResponseBody given an JSON stringgetData()Contains array of promotion stack objects.Identifies the name of the attribute that contains the array of promotion stack objects.The type of the object represented by JSON.getTotal()Total number of promotion stacks.inthashCode()voidsetData(List<PromotionStack> data) voidvoidvoidtoJson()Convert an instance of PromotionsStacksListResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_DATA
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PromotionsStacksListResponseBody
public PromotionsStacksListResponseBody()
-
-
Method Details
-
_object
public PromotionsStacksListResponseBody _object(PromotionsStacksListResponseBody.ObjectEnum _object) -
getObject
The type of the object represented by JSON. This object stores information about promotion stacks in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
public PromotionsStacksListResponseBody dataRef(PromotionsStacksListResponseBody.DataRefEnum dataRef) -
getDataRef
Identifies the name of the attribute that contains the array of promotion stack objects.- Returns:
- dataRef
-
setDataRef
-
data
-
addDataItem
-
getData
Contains array of promotion stack objects.- Returns:
- data
-
setData
-
total
-
getTotal
Total number of promotion stacks. minimum: 0- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of PromotionsStacksListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionsStacksListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to PromotionsStacksListResponseBody
-
toJson
Convert an instance of PromotionsStacksListResponseBody to an JSON string- Returns:
- JSON string
-