Class CreatePublicationCampaign

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreatePublicationCampaign extends Object
Create publication with campaign.
  • Field Details

  • Constructor Details

    • CreatePublicationCampaign

      public CreatePublicationCampaign()
  • Method Details

    • name

      public CreatePublicationCampaign name(String name)
    • getName

      @Nullable public String getName()
      Name of voucher's parent campaign or unique campaign ID that was assigned by Voucherify.
      Returns:
      name
    • setName

      public void setName(String name)
    • count

      public CreatePublicationCampaign count(Integer count)
    • getCount

      @Nullable public Integer getCount()
      Number of vouchers to be published to customer. minimum: 1 maximum: 20
      Returns:
      count
    • setCount

      public void setCount(Integer count)
    • 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 CreatePublicationCampaign fromJson(String jsonString) throws IOException
      Create an instance of CreatePublicationCampaign given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CreatePublicationCampaign
      Throws:
      IOException - if the JSON string is invalid with respect to CreatePublicationCampaign
    • toJson

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