Class MainRule

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

public class MainRule extends Object
MainRule
  • Field Details

  • Constructor Details

    • MainRule

      public MainRule()
  • Method Details

    • condition

      public MainRule condition(@Nullable MainRuleConditionResponse condition)
    • getCondition

      @Nullable public MainRuleConditionResponse getCondition()
      Selected rule condition
      Returns:
      condition
    • setCondition

      public void setCondition(@Nullable MainRuleConditionResponse condition)
    • createdAt

      public MainRule createdAt(@Nullable String createdAt)
    • getCreatedAt

      @Nullable public String getCreatedAt()
      Timestamp when the rule was created
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable String createdAt)
    • description

      public MainRule description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Description of the rule
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • event

      public MainRule event(@Nullable MainRuleEventResponse event)
    • getEvent

      @Nullable public MainRuleEventResponse getEvent()
      Selected event in the rule
      Returns:
      event
    • setEvent

      public void setEvent(@Nullable MainRuleEventResponse event)
    • isInternal

      public MainRule isInternal(@Nullable Boolean isInternal)
    • getIsInternal

      @Nullable public Boolean getIsInternal()
      Metric to identify if it's an internal rule or not
      Returns:
      isInternal
    • setIsInternal

      public void setIsInternal(@Nullable Boolean isInternal)
    • loyaltyProgramId

      public MainRule loyaltyProgramId(@Nullable String loyaltyProgramId)
    • getLoyaltyProgramId

      @Nullable public String getLoyaltyProgramId()
      Loyalty Program id to which current rule is associated
      Returns:
      loyaltyProgramId
    • setLoyaltyProgramId

      public void setLoyaltyProgramId(@Nullable String loyaltyProgramId)
    • loyaltyVersionId

      public MainRule loyaltyVersionId(@Nullable Integer loyaltyVersionId)
    • getLoyaltyVersionId

      @Nullable public Integer getLoyaltyVersionId()
      Loyalty Version id to which current rule is associated
      Returns:
      loyaltyVersionId
    • setLoyaltyVersionId

      public void setLoyaltyVersionId(@Nullable Integer loyaltyVersionId)
    • meta

      public MainRule meta(@Nullable Map<String,Object> meta)
    • putMetaItem

      public MainRule putMetaItem(String key, Object metaItem)
    • getMeta

      @Nullable public Map<String,Object> getMeta()
      Additional data to define the rule
      Returns:
      meta
    • setMeta

      public void setMeta(@Nullable Map<String,Object> meta)
    • name

      public MainRule name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Rule name
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • results

      public MainRule results(@Nullable List<MainRuleResultResponse> results)
    • addResultsItem

      public MainRule addResultsItem(MainRuleResultResponse resultsItem)
    • getResults

      @Nullable public List<MainRuleResultResponse> getResults()
      Results of the rule definition
      Returns:
      results
    • setResults

      public void setResults(@Nullable List<MainRuleResultResponse> results)
    • ruleId

      public MainRule ruleId(@Nullable String ruleId)
    • getRuleId

      @Nullable public String getRuleId()
      Unique identifier for the rule
      Returns:
      ruleId
    • setRuleId

      public void setRuleId(@Nullable String ruleId)
    • ruleType

      public MainRule ruleType(@Nullable String ruleType)
    • getRuleType

      @Nullable public String getRuleType()
      Type of the rule
      Returns:
      ruleType
    • setRuleType

      public void setRuleType(@Nullable String ruleType)
    • updatedAt

      public MainRule updatedAt(@Nullable String updatedAt)
    • getUpdatedAt

      @Nullable public String getUpdatedAt()
      Timestamp when the rule was updated
      Returns:
      updatedAt
    • setUpdatedAt

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