Class CampaignTemplate

java.lang.Object
io.voucherify.client.model.CampaignTemplate

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CampaignTemplate extends Object
CampaignTemplate
  • Field Details

  • Constructor Details

    • CampaignTemplate

      public CampaignTemplate()
  • Method Details

    • id

      public CampaignTemplate id(String id)
    • getId

      @Nullable public String getId()
      Unique identifier of the campaign template. It is assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • name

      public CampaignTemplate name(String name)
    • getName

      @Nullable public String getName()
      User-defined name of the campaign template.
      Returns:
      name
    • setName

      public void setName(String name)
    • description

      public CampaignTemplate description(String description)
    • getDescription

      @Nullable public String getDescription()
      User-defined description of the campaign template.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • campaignType

      public CampaignTemplate campaignType(CampaignTemplate.CampaignTypeEnum campaignType)
    • getCampaignType

      @Nullable public CampaignTemplate.CampaignTypeEnum 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(CampaignTemplate.CampaignTypeEnum campaignType)
    • createdAt

      public CampaignTemplate createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime 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

      public void setCreatedAt(OffsetDateTime createdAt)
    • _object

    • getObject

      @Nullable public CampaignTemplate.ObjectEnum getObject()
      The type of the object represented by JSON.
      Returns:
      _object
    • setObject

      public void setObject(CampaignTemplate.ObjectEnum _object)
    • updatedAt

      public CampaignTemplate updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime 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

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static CampaignTemplate fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of CampaignTemplate to an JSON string
      Returns:
      JSON string