Class UsageNotifications

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

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

  • Constructor Details

    • UsageNotifications

      public UsageNotifications()
  • Method Details

    • enabled

      public UsageNotifications enabled(Boolean enabled)
    • getEnabled

      @Nullable public Boolean getEnabled()
      Enables the notification.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • value

      public UsageNotifications value(Integer value)
    • getValue

      @Nullable public Integer getValue()
      The percent value of the limit which, when reached, triggers the notification. minimum: 10 maximum: 90
      Returns:
      value
    • setValue

      public void setValue(Integer value)
    • inApp

      public UsageNotifications inApp(Boolean inApp)
    • getInApp

      @Nullable public Boolean getInApp()
      Enables the notification in the application.
      Returns:
      inApp
    • setInApp

      public void setInApp(Boolean inApp)
    • emails

      public UsageNotifications emails(List<String> emails)
    • addEmailsItem

      public UsageNotifications addEmailsItem(String emailsItem)
    • getEmails

      @Nullable public List<String> getEmails()
      An array of email addresses which will receive the notification.
      Returns:
      emails
    • setEmails

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

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