Package io.voucherify.client.model
Class ManagementProjectsTemplatesCampaignsListResponseBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsTemplatesCampaignsListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsTemplatesCampaignsListResponseBody
extends Object
Response body schema for **GET** `/management/v1/projects/{projectId}/templates/campaigns`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIdentifies the name of the JSON property that contains the array of campaign templates.static enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(CampaignTemplate dataItem) data(List<CampaignTemplate> data) booleanCreate an instance of ManagementProjectsTemplatesCampaignsListResponseBody given an JSON stringgetData()Dictionary that contains an array of campaign templates.Identifies the name of the JSON property that contains the array of campaign templates.As query results are always limited (by the limit parameter), the `has_more` flag indicates if there are more records for given filter parameters.Returns an ID that can be used to return another page of results.The type of the object represented by JSON.getTotal()Total number of templates, regardless of the applied query parameters.inthashCode()moreStartingAfter(String moreStartingAfter) voidsetData(List<CampaignTemplate> data) voidvoidsetHasMore(Boolean hasMore) voidsetMoreStartingAfter(String moreStartingAfter) voidvoidtoJson()Convert an instance of ManagementProjectsTemplatesCampaignsListResponseBody 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:
-
SERIALIZED_NAME_HAS_MORE
- See Also:
-
SERIALIZED_NAME_MORE_STARTING_AFTER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsTemplatesCampaignsListResponseBody
public ManagementProjectsTemplatesCampaignsListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about campaign templates.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the JSON property that contains the array of campaign templates.- Returns:
- dataRef
-
setDataRef
-
data
-
addDataItem
-
getData
Dictionary that contains an array of campaign templates.- Returns:
- data
-
setData
-
total
-
getTotal
Total number of templates, regardless of the applied query parameters. Displayed only if the `include_total` query paremeter is set to `true`.- Returns:
- total
-
setTotal
-
hasMore
-
getHasMore
As query results are always limited (by the limit parameter), the `has_more` flag indicates if there are more records for given filter parameters. This lets you know if you can run another request to get more records returned in the results.- Returns:
- hasMore
-
setHasMore
-
moreStartingAfter
public ManagementProjectsTemplatesCampaignsListResponseBody moreStartingAfter(String moreStartingAfter) -
getMoreStartingAfter
Returns an ID that can be used to return another page of results. Use the template ID in the `starting_after_id` query parameter to display another page of the results starting after the template with that ID.- Returns:
- moreStartingAfter
-
setMoreStartingAfter
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsTemplatesCampaignsListResponseBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsTemplatesCampaignsListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsTemplatesCampaignsListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsTemplatesCampaignsListResponseBody
-
toJson
Convert an instance of ManagementProjectsTemplatesCampaignsListResponseBody to an JSON string- Returns:
- JSON string
-