Package io.voucherify.client.model
Class CampaignsListResponseBody
java.lang.Object
io.voucherify.client.model.CampaignsListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignsListResponseBody
extends Object
Schema model for **GET** `v1/campaigns`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCampaignsItem(CampaignBase campaignsItem) campaigns(List<CampaignBase> campaigns) booleanstatic CampaignsListResponseBodyCreate an instance of CampaignsListResponseBody given an JSON stringContains array of campaign objects.Identifies the name of the attribute that contains the array of campaign objects.The type of the object represented by JSON.getTotal()Total number of campaigns.inthashCode()voidsetCampaigns(List<CampaignBase> campaigns) voidsetDataRef(String dataRef) voidvoidtoJson()Convert an instance of CampaignsListResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_CAMPAIGNS
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CampaignsListResponseBody
public CampaignsListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about campaigns in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the attribute that contains the array of campaign objects.- Returns:
- dataRef
-
setDataRef
-
campaigns
-
addCampaignsItem
-
getCampaigns
Contains array of campaign objects.- Returns:
- campaigns
-
setCampaigns
-
total
-
getTotal
Total number of campaigns.- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CampaignsListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CampaignsListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to CampaignsListResponseBody
-
toJson
Convert an instance of CampaignsListResponseBody to an JSON string- Returns:
- JSON string
-