Package io.voucherify.client.model
Class CampaignTemplate
java.lang.Object
io.voucherify.client.model.CampaignTemplate
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignTemplate
extends Object
CampaignTemplate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of the campaign used to create the campaign template.static classstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(CampaignTemplate.ObjectEnum _object) campaignType(CampaignTemplate.CampaignTypeEnum campaignType) createdAt(OffsetDateTime createdAt) description(String description) booleanstatic CampaignTemplateCreate an instance of CampaignTemplate given an JSON stringType of the campaign used to create the campaign template.Timestamp representing the date and time when the campaign template was created.User-defined description of the campaign template.getId()Unique identifier of the campaign template.getName()User-defined name of the campaign template.The type of the object represented by JSON.Timestamp representing the date and time when the campaign template was last updated.inthashCode()voidsetCampaignType(CampaignTemplate.CampaignTypeEnum campaignType) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDescription(String description) voidvoidvoidsetObject(CampaignTemplate.ObjectEnum _object) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of CampaignTemplate to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_TYPE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CampaignTemplate
public CampaignTemplate()
-
-
Method Details
-
id
-
getId
Unique identifier of the campaign template. It is assigned by Voucherify.- Returns:
- id
-
setId
-
name
-
getName
User-defined name of the campaign template.- Returns:
- name
-
setName
-
description
-
getDescription
User-defined description of the campaign template.- Returns:
- description
-
setDescription
-
campaignType
-
getCampaignType
Type of the campaign used to create the campaign template. Templates created from a promotion tier are converted to `DISCOUNT_COUPONS`.- Returns:
- campaignType
-
setCampaignType
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the campaign template was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
_object
-
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the campaign template was last updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CampaignTemplate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CampaignTemplate
- Throws:
IOException- if the JSON string is invalid with respect to CampaignTemplate
-
toJson
Convert an instance of CampaignTemplate to an JSON string- Returns:
- JSON string
-