Package io.voucherify.client.model
Class TemplatesCampaignsGetResponseBody
java.lang.Object
io.voucherify.client.model.TemplatesCampaignsGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TemplatesCampaignsGetResponseBody
extends Object
Response body schema for **GET** `/v1/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 TemplatesCampaignsGetResponseBody 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 TemplatesCampaignsGetResponseBody 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
-
TemplatesCampaignsGetResponseBody
public TemplatesCampaignsGetResponseBody()
-
-
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 TemplatesCampaignsGetResponseBody campaignType(TemplatesCampaignsGetResponseBody.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 TemplatesCampaignsGetResponseBody _object(TemplatesCampaignsGetResponseBody.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 TemplatesCampaignsGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TemplatesCampaignsGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to TemplatesCampaignsGetResponseBody
-
toJson
Convert an instance of TemplatesCampaignsGetResponseBody to an JSON string- Returns:
- JSON string
-