Package io.voucherify.client.model
Class TemplatesCampaignsUpdateResponseBody
java.lang.Object
io.voucherify.client.model.TemplatesCampaignsUpdateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TemplatesCampaignsUpdateResponseBody
extends Object
Request body schema for **PUT** `/templates/campaign/{campaignTemplateId}`.
-
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 TemplatesCampaignsUpdateResponseBody 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()voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetDescription(String description) voidvoidvoidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of TemplatesCampaignsUpdateResponseBody 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
-
TemplatesCampaignsUpdateResponseBody
public TemplatesCampaignsUpdateResponseBody()
-
-
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 TemplatesCampaignsUpdateResponseBody campaignType(TemplatesCampaignsUpdateResponseBody.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
-
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 TemplatesCampaignsUpdateResponseBody _object(TemplatesCampaignsUpdateResponseBody.ObjectEnum _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 TemplatesCampaignsUpdateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TemplatesCampaignsUpdateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to TemplatesCampaignsUpdateResponseBody
-
toJson
Convert an instance of TemplatesCampaignsUpdateResponseBody to an JSON string- Returns:
- JSON string
-