Package io.voucherify.client.model
Class AccessSettingsCampaignAssignmentsList
java.lang.Object
io.voucherify.client.model.AccessSettingsCampaignAssignmentsList
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class AccessSettingsCampaignAssignmentsList
extends Object
Lists all assignments of the campaign to areas and stores. For [GET List Campaigns](ref:list-campaigns), this is returned if the `expand=access_settings_assignments` query parameter is passed in the request. **NOTE**: This object is returned only if the Areas and Stores enterprise feature is enabled. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIdentifies the name of the attribute that contains the array of campaign assignments.static enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(AreaStoreCampaignAssignment dataItem) data(List<AreaStoreCampaignAssignment> data) booleanCreate an instance of AccessSettingsCampaignAssignmentsList given an JSON stringgetData()Contains an array of campaign assignments.Identifies the name of the attribute that contains the array of campaign assignments.The type of the object represented by JSON.getTotal()Total number of areas and stores to which the campaign is assigned.inthashCode()voidvoidvoidvoidtoJson()Convert an instance of AccessSettingsCampaignAssignmentsList 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
-
AccessSettingsCampaignAssignmentsList
public AccessSettingsCampaignAssignmentsList()
-
-
Method Details
-
_object
public AccessSettingsCampaignAssignmentsList _object(AccessSettingsCampaignAssignmentsList.ObjectEnum _object) -
getObject
The type of the object represented by JSON. Default is `list`. This object stores information about campaign assignments to areas and stores- Returns:
- _object
-
setObject
-
dataRef
public AccessSettingsCampaignAssignmentsList dataRef(AccessSettingsCampaignAssignmentsList.DataRefEnum dataRef) -
getDataRef
Identifies the name of the attribute that contains the array of campaign assignments.- Returns:
- dataRef
-
setDataRef
-
data
-
addDataItem
-
getData
Contains an array of campaign assignments.- Returns:
- data
-
setData
-
total
-
getTotal
Total number of areas and stores to which the campaign is assigned. minimum: 0- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of AccessSettingsCampaignAssignmentsList given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccessSettingsCampaignAssignmentsList
- Throws:
IOException- if the JSON string is invalid with respect to AccessSettingsCampaignAssignmentsList
-
toJson
Convert an instance of AccessSettingsCampaignAssignmentsList to an JSON string- Returns:
- JSON string
-