Package io.voucherify.client.model
Class TemplatesCampaignsCreateTemplateResponseBody
java.lang.Object
io.voucherify.client.model.TemplatesCampaignsCreateTemplateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TemplatesCampaignsCreateTemplateResponseBody
extends Object
Response body schema for **POST** `/v1/templates/campaigns`.
-
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 TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) description(String description) booleanCreate an instance of TemplatesCampaignsCreateTemplateResponseBody 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.inthashCode()voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetDescription(String description) voidvoidvoidtoJson()Convert an instance of TemplatesCampaignsCreateTemplateResponseBody to an JSON stringtoString()
-
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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TemplatesCampaignsCreateTemplateResponseBody
public TemplatesCampaignsCreateTemplateResponseBody()
-
-
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
public TemplatesCampaignsCreateTemplateResponseBody campaignType(TemplatesCampaignsCreateTemplateResponseBody.CampaignTypeEnum 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
public void setCampaignType(TemplatesCampaignsCreateTemplateResponseBody.CampaignTypeEnum campaignType) -
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
public TemplatesCampaignsCreateTemplateResponseBody _object(TemplatesCampaignsCreateTemplateResponseBody.ObjectEnum _object) -
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static TemplatesCampaignsCreateTemplateResponseBody fromJson(String jsonString) throws IOException Create an instance of TemplatesCampaignsCreateTemplateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TemplatesCampaignsCreateTemplateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to TemplatesCampaignsCreateTemplateResponseBody
-
toJson
Convert an instance of TemplatesCampaignsCreateTemplateResponseBody to an JSON string- Returns:
- JSON string
-