Package software.xdev.brevo.model
Class MainRule
java.lang.Object
software.xdev.brevo.model.MainRule
MainRule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResultsItem(MainRuleResultResponse resultsItem) condition(MainRuleConditionResponse condition) description(String description) booleanevent(MainRuleEventResponse event) Selected rule conditionTimestamp when the rule was createdDescription of the rulegetEvent()Selected event in the ruleMetric to identify if it's an internal rule or notLoyalty Program id to which current rule is associatedLoyalty Version id to which current rule is associatedgetMeta()Additional data to define the rulegetName()Rule nameResults of the rule definitionUnique identifier for the ruleType of the ruleTimestamp when the rule was updatedinthashCode()isInternal(Boolean isInternal) loyaltyProgramId(String loyaltyProgramId) loyaltyVersionId(Integer loyaltyVersionId) putMetaItem(String key, Object metaItem) results(List<MainRuleResultResponse> results) voidsetCondition(MainRuleConditionResponse condition) voidsetCreatedAt(String createdAt) voidsetDescription(String description) voidsetEvent(MainRuleEventResponse event) voidsetIsInternal(Boolean isInternal) voidsetLoyaltyProgramId(String loyaltyProgramId) voidsetLoyaltyVersionId(Integer loyaltyVersionId) voidvoidvoidsetResults(List<MainRuleResultResponse> results) voidvoidsetRuleType(String ruleType) voidsetUpdatedAt(String updatedAt) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_CONDITION
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_EVENT
- See Also:
-
JSON_PROPERTY_IS_INTERNAL
- See Also:
-
JSON_PROPERTY_LOYALTY_PROGRAM_ID
- See Also:
-
JSON_PROPERTY_LOYALTY_VERSION_ID
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RESULTS
- See Also:
-
JSON_PROPERTY_RULE_ID
- See Also:
-
JSON_PROPERTY_RULE_TYPE
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
-
Constructor Details
-
MainRule
public MainRule()
-
-
Method Details
-
condition
-
getCondition
Selected rule condition- Returns:
- condition
-
setCondition
-
createdAt
-
getCreatedAt
Timestamp when the rule was created- Returns:
- createdAt
-
setCreatedAt
-
description
-
getDescription
Description of the rule- Returns:
- description
-
setDescription
-
event
-
getEvent
Selected event in the rule- Returns:
- event
-
setEvent
-
isInternal
-
getIsInternal
Metric to identify if it's an internal rule or not- Returns:
- isInternal
-
setIsInternal
-
loyaltyProgramId
-
getLoyaltyProgramId
Loyalty Program id to which current rule is associated- Returns:
- loyaltyProgramId
-
setLoyaltyProgramId
-
loyaltyVersionId
-
getLoyaltyVersionId
Loyalty Version id to which current rule is associated- Returns:
- loyaltyVersionId
-
setLoyaltyVersionId
-
meta
-
putMetaItem
-
getMeta
Additional data to define the rule- Returns:
- meta
-
setMeta
-
name
-
getName
Rule name- Returns:
- name
-
setName
-
results
-
addResultsItem
-
getResults
Results of the rule definition- Returns:
- results
-
setResults
-
ruleId
-
getRuleId
Unique identifier for the rule- Returns:
- ruleId
-
setRuleId
-
ruleType
-
getRuleType
Type of the rule- Returns:
- ruleType
-
setRuleType
-
updatedAt
-
getUpdatedAt
Timestamp when the rule was updated- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-