Package io.voucherify.client.model
Class TemplatesCampaignsCreateRequestBody
java.lang.Object
io.voucherify.client.model.TemplatesCampaignsCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TemplatesCampaignsCreateRequestBody
extends Object
Request body schema for **POST** `/templates/campaign`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncampaignId(String campaignId) description(String description) booleanCreate an instance of TemplatesCampaignsCreateRequestBody given an JSON stringUnique identifier of the campaign that will create a template.User-defined description of the campaign template.getName()User-defined name of the campaign template.Unique identifier of the promotion tier that will create a template.inthashCode()promotionTierId(String promotionTierId) voidsetCampaignId(String campaignId) voidsetDescription(String description) voidvoidsetPromotionTierId(String promotionTierId) toJson()Convert an instance of TemplatesCampaignsCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_PROMOTION_TIER_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TemplatesCampaignsCreateRequestBody
public TemplatesCampaignsCreateRequestBody()
-
-
Method Details
-
campaignId
-
getCampaignId
Unique identifier of the campaign that will create a template. It must be an ID of an existing discount or gift card campaign. It cannot be passed when `promotion_tier_id` has value. Required when the `promotion_tier_id` is not passed or it is `null`.- Returns:
- campaignId
-
setCampaignId
-
promotionTierId
-
getPromotionTierId
Unique identifier of the promotion tier that will create a template. It cannot be passed when `campaign_id` has value. Required when the `campaign_id` is not passed or it is `null`.- Returns:
- promotionTierId
-
setPromotionTierId
-
name
-
getName
User-defined name of the campaign template. It must be unique.- Returns:
- name
-
setName
-
description
-
getDescription
User-defined description of the campaign template.- Returns:
- description
-
setDescription
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of TemplatesCampaignsCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TemplatesCampaignsCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to TemplatesCampaignsCreateRequestBody
-
toJson
Convert an instance of TemplatesCampaignsCreateRequestBody to an JSON string- Returns:
- JSON string
-