Package io.voucherify.client.model
Class LoyaltiesListCampaignsResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesListCampaignsResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesListCampaignsResponseBody
extends Object
Response body schema for **Get** `/loyalties`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIdentifies the name of the attribute that contains the array of loyalty campaign objects. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCampaignsItem(LoyaltyCampaign campaignsItem) campaigns(List<LoyaltyCampaign> campaigns) booleanCreate an instance of LoyaltiesListCampaignsResponseBody given an JSON stringContains an array of loyalty campaign objects.Identifies the name of the attribute that contains the array of loyalty campaign objects.The type of the object represented by JSON.getTotal()Total number of loyalty campaign objects.inthashCode()voidsetCampaigns(List<LoyaltyCampaign> campaigns) voidvoidvoidtoJson()Convert an instance of LoyaltiesListCampaignsResponseBody 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
-
LoyaltiesListCampaignsResponseBody
public LoyaltiesListCampaignsResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about loyalty campaigns in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
public LoyaltiesListCampaignsResponseBody dataRef(LoyaltiesListCampaignsResponseBody.DataRefEnum dataRef) -
getDataRef
Identifies the name of the attribute that contains the array of loyalty campaign objects.- Returns:
- dataRef
-
setDataRef
-
campaigns
-
addCampaignsItem
-
getCampaigns
Contains an array of loyalty campaign objects.- Returns:
- campaigns
-
setCampaigns
-
total
-
getTotal
Total number of loyalty campaign objects.- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltiesListCampaignsResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesListCampaignsResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesListCampaignsResponseBody
-
toJson
Convert an instance of LoyaltiesListCampaignsResponseBody to an JSON string- Returns:
- JSON string
-