Class MainLimit

java.lang.Object
software.xdev.brevo.model.MainLimit

public class MainLimit extends Object
MainLimit
  • Field Details

  • Constructor Details

    • MainLimit

      public MainLimit()
  • Method Details

    • createdAt

      public MainLimit createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp when the reward limit was created
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • durationUnit

      public MainLimit durationUnit(@Nullable String durationUnit)
    • getDurationUnit

      @Nullable public String getDurationUnit()
      Unit of time for the reward limit's availability (e.g., day/week/month/year).
      Returns:
      durationUnit
    • setDurationUnit

      public void setDurationUnit(@Nullable String durationUnit)
    • durationValue

      public MainLimit durationValue(@Nullable Integer durationValue)
    • getDurationValue

      @Nullable public Integer getDurationValue()
      Number of days/weeks/month/year for reward limit
      Returns:
      durationValue
    • setDurationValue

      public void setDurationValue(@Nullable Integer durationValue)
    • limitValue

      public MainLimit limitValue(@Nullable Integer limitValue)
    • getLimitValue

      @Nullable public Integer getLimitValue()
      Value of the limit
      Returns:
      limitValue
    • setLimitValue

      public void setLimitValue(@Nullable Integer limitValue)
    • rewardLimitId

      public MainLimit rewardLimitId(@Nullable String rewardLimitId)
    • getRewardLimitId

      @Nullable public String getRewardLimitId()
      Unique identifier for the reward limit
      Returns:
      rewardLimitId
    • setRewardLimitId

      public void setRewardLimitId(@Nullable String rewardLimitId)
    • slidingSchedule

      public MainLimit slidingSchedule(@Nullable Boolean slidingSchedule)
    • getSlidingSchedule

      @Nullable public Boolean getSlidingSchedule()
      Select true to calculate all redeems/attributions from the previous value of selected durationUnit to the current time
      Returns:
      slidingSchedule
    • setSlidingSchedule

      public void setSlidingSchedule(@Nullable Boolean slidingSchedule)
    • type

      public MainLimit type(@Nullable String type)
    • getType

      @Nullable public String getType()
      Type of reward
      Returns:
      type
    • setType

      public void setType(@Nullable String type)
    • updatedAt

      public MainLimit updatedAt(@Nullable OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp when the reward limit was created
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nullable 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
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string